From owner-freebsd-ports-bugs@freebsd.org Thu Nov 19 04:44:10 2020 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2203D47EF35 for ; Thu, 19 Nov 2020 04:44:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4Cc6XB0GLjz3hDx for ; Thu, 19 Nov 2020 04:44:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 074E647EF34; Thu, 19 Nov 2020 04:44:10 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 05D8C47F0B8 for ; Thu, 19 Nov 2020 04:44:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Cc6X96P4tz3hBn for ; Thu, 19 Nov 2020 04:44:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CE8611E33A for ; Thu, 19 Nov 2020 04:44:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 0AJ4i9QJ095565 for ; Thu, 19 Nov 2020 04:44:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0AJ4i98c095564 for ports-bugs@FreeBSD.org; Thu, 19 Nov 2020 04:44:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 250439] check leftovers phase fails if @sample is a symlink with pkg 1.15.7+ Date: Thu, 19 Nov 2020 04:44:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: vvd@unislabs.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2020 04:44:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250439 --- Comment #5 from VVD --- This diff look like source of this bug: diff -urN pkg-1.15.8/NEWS pkg-1.15.9/NEWS --- pkg-1.15.8/NEWS +++ pkg-1.15.9/NEWS @@ -1,3 +1,6 @@ +Changes from 1.15.8 to 1.15.9 +- Fix lua_pkg_copy when copying a symlink + Changes from 1.15.7 to 1.15.8 - Fix a typo making the detection of lua scripts in manifest unreliable in certain circumpstances diff -urN pkg-1.15.8/auto.def pkg-1.15.9/auto.def --- pkg-1.15.8/auto.def +++ pkg-1.15.9/auto.def @@ -5,7 +5,7 @@ set maj_ver 1 set med_ver 15 -set min_ver 8 +set min_ver 9 set dev_ver 0 define PKG_API [expr $maj_ver * 1000000 + $med_ver * 1000 + $min_ver] define VERSION $maj_ver.$med_ver.$min_ver[expr {$dev_ver ? ".$dev_ver" : "= "}] diff -urN pkg-1.15.8/libpkg/lua_scripts.c pkg-1.15.9/libpkg/lua_scripts.c --- pkg-1.15.8/libpkg/lua_scripts.c +++ pkg-1.15.9/libpkg/lua_scripts.c @@ -122,7 +122,7 @@ lua_getglobal(L, "package"); struct pkg *pkg =3D lua_touserdata(L, -1); - if (fstatat(pkg->rootfd, RELATIVE_PATH(src), &s1, AT_SYMLINK_NOFOLL= OW) =3D=3D -1) { + if (fstatat(pkg->rootfd, RELATIVE_PATH(src), &s1, 0) =3D=3D -1) { lua_pushinteger(L, 2); return (1); } Will test it now. --=20 You are receiving this mail because: You are on the CC list for the bug.=