From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Dec 16 05:40:08 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E399106566B for ; Thu, 16 Dec 2010 05:40:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 58C2B8FC0C for ; Thu, 16 Dec 2010 05:40:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oBG5e8F9036793 for ; Thu, 16 Dec 2010 05:40:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oBG5e8oN036792; Thu, 16 Dec 2010 05:40:08 GMT (envelope-from gnats) Resent-Date: Thu, 16 Dec 2010 05:40:08 GMT Resent-Message-Id: <201012160540.oBG5e8oN036792@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Robert Archer Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 59F5E106566C for ; Thu, 16 Dec 2010 05:30:09 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 413D98FC15 for ; Thu, 16 Dec 2010 05:30:09 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oBG5U8gg088119 for ; Thu, 16 Dec 2010 05:30:08 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id oBG5U8FI088118; Thu, 16 Dec 2010 05:30:08 GMT (envelope-from nobody) Message-Id: <201012160530.oBG5U8FI088118@red.freebsd.org> Date: Thu, 16 Dec 2010 05:30:08 GMT From: Robert Archer To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/153201: [patch] sysutils/libsunacl fails to create package with NO_PROFILE=1 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Dec 2010 05:40:08 -0000 >Number: 153201 >Category: ports >Synopsis: [patch] sysutils/libsunacl fails to create package with NO_PROFILE=1 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 16 05:40:08 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Robert Archer >Release: 8.1-RELEASE-p1 >Organization: >Environment: Base: FreeBSD cis-freebsd.ml.unisa.edu.au 8.1-RELEASE-p1 FreeBSD 8.1-RELEASE-p1 #0: Sat Oct 9 13:33:03 CST 2010 root@cis-freebsd.ml.unisa.edu.au:/export/build/obj/export/build/src/sys/VMWARE amd64 Port: libsunacl-1.0 >Description: With NO_PROFILE defined in /etc/make.conf... # cd sysutils/libsunacl # make package-recursive ===> Vulnerability check disabled, database not found ===> License check disabled, port has not defined LICENSE => libsunacl-1.0.tar.gz doesn't seem to exist in /tmp/distfiles/. => Attempting to fetch from http://heanet.dl.sourceforge.net/project/libsunacl/libsunacl/1.0/. libsunacl-1.0.tar.gz 3980 B 18 MBps ===> Extracting for libsunacl-1.0 => SHA256 Checksum OK for libsunacl-1.0.tar.gz. ===> Patching for libsunacl-1.0 ===> Configuring for libsunacl-1.0 ===> Building for libsunacl-1.0 Warning: Object directory not changed from original /tmp/export/build/ports/sysutils/libsunacl/work/libsunacl-1.0 cc -O2 -pipe -fno-strict-aliasing -D_ACL_PRIVATE -std=gnu99 -fstack-protector -c libsunacl.c cc -O2 -pipe -fno-strict-aliasing -D_ACL_PRIVATE -std=gnu99 -fstack-protector -c opensolaris_acl.c building static sunacl library ranlib libsunacl.a cc -fpic -DPIC -O2 -pipe -fno-strict-aliasing -D_ACL_PRIVATE -std=gnu99 -fstack-protector -c libsunacl.c -o libsunacl.So cc -fpic -DPIC -O2 -pipe -fno-strict-aliasing -D_ACL_PRIVATE -std=gnu99 -fstack-protector -c opensolaris_acl.c -o opensolaris_acl.So building shared library libsunacl.so.1 ===> Installing for libsunacl-1.0 ===> Generating temporary packing list ===> Checking if sysutils/libsunacl already installed install -C -o root -g wheel -m 444 libsunacl.a /usr/local/lib install -s -o root -g wheel -m 444 libsunacl.so.1 /usr/local/lib ln -fs libsunacl.so.1 /usr/local/lib/libsunacl.so install -C -o root -g wheel -m 444 sunacl.h /usr/local/include ===> Running ldconfig /sbin/ldconfig -m /usr/local/lib ===> Registering installation for libsunacl-1.0 ===> Building package for libsunacl-1.0 tar: lib/libsunacl_p.a: Cannot stat: No such file or directory tar: Error exit delayed from previous errors. pkg_create: make_dist: tar command failed with code 256 *** Error code 1 Stop in /export/build/ports/sysutils/libsunacl. This occurs because sysutils/libsunacl/Makefile adds lib/libsunacl_p.a to PLIST_FILES, but the library is not built when NO_PROFILE is defined. With patch installed, and NO_PROFILE defined... # cd sysutils/libsunacl # make package-recursive ===> Vulnerability check disabled, database not found ===> License check disabled, port has not defined LICENSE => libsunacl-1.0.tar.gz doesn't seem to exist in /tmp/distfiles/. => Attempting to fetch from http://heanet.dl.sourceforge.net/project/libsunacl/libsunacl/1.0/. libsunacl-1.0.tar.gz 3980 B 21 MBps ===> Extracting for libsunacl-1.0 => SHA256 Checksum OK for libsunacl-1.0.tar.gz. ===> Patching for libsunacl-1.0 ===> Configuring for libsunacl-1.0 ===> Building for libsunacl-1.0 Warning: Object directory not changed from original /tmp/export/build/ports/sysutils/libsunacl/work/libsunacl-1.0 cc -O2 -pipe -fno-strict-aliasing -D_ACL_PRIVATE -std=gnu99 -fstack-protector -c libsunacl.c cc -O2 -pipe -fno-strict-aliasing -D_ACL_PRIVATE -std=gnu99 -fstack-protector -c opensolaris_acl.c building static sunacl library ranlib libsunacl.a cc -fpic -DPIC -O2 -pipe -fno-strict-aliasing -D_ACL_PRIVATE -std=gnu99 -fstack-protector -c libsunacl.c -o libsunacl.So cc -fpic -DPIC -O2 -pipe -fno-strict-aliasing -D_ACL_PRIVATE -std=gnu99 -fstack-protector -c opensolaris_acl.c -o opensolaris_acl.So building shared library libsunacl.so.1 ===> Installing for libsunacl-1.0 ===> Generating temporary packing list ===> Checking if sysutils/libsunacl already installed install -C -o root -g wheel -m 444 libsunacl.a /usr/local/lib install -s -o root -g wheel -m 444 libsunacl.so.1 /usr/local/lib ln -fs libsunacl.so.1 /usr/local/lib/libsunacl.so install -C -o root -g wheel -m 444 sunacl.h /usr/local/include ===> Running ldconfig /sbin/ldconfig -m /usr/local/lib ===> Registering installation for libsunacl-1.0 ===> Building package for libsunacl-1.0 # tar -tvf /export/packages/libsunacl-1.0.tbz -rw-r--r-- 0 root wheel 422 Dec 16 13:50 +CONTENTS -rw-r--r-- 0 root wheel 38 Dec 16 13:50 +COMMENT -rw-r--r-- 0 root wheel 236 Dec 16 13:50 +DESC -rw-r--r-- 0 root wheel 17550 Dec 16 13:50 +MTREE_DIRS -r--r--r-- 0 root wheel 3997 Dec 16 13:50 include/sunacl.h -r--r--r-- 0 root wheel 6842 Dec 16 13:50 lib/libsunacl.a -r--r--r-- 0 root wheel 8072 Dec 16 13:50 lib/libsunacl.so.1 lrwxr-xr-x 0 root wheel 0 Dec 16 13:50 lib/libsunacl.so -> libsunacl.so.1 With patch installed, and NO_PROFILE not defined... # cd sysutils/libsunacl # make package-recursive ===> Vulnerability check disabled, database not found ===> License check disabled, port has not defined LICENSE => libsunacl-1.0.tar.gz doesn't seem to exist in /tmp/distfiles/. => Attempting to fetch from http://heanet.dl.sourceforge.net/project/libsunacl/libsunacl/1.0/. libsunacl-1.0.tar.gz 3980 B 20 MBps ===> Extracting for libsunacl-1.0 => SHA256 Checksum OK for libsunacl-1.0.tar.gz. ===> Patching for libsunacl-1.0 ===> Configuring for libsunacl-1.0 ===> Building for libsunacl-1.0 Warning: Object directory not changed from original /tmp/export/build/ports/sysutils/libsunacl/work/libsunacl-1.0 cc -O2 -pipe -fno-strict-aliasing -D_ACL_PRIVATE -std=gnu99 -fstack-protector -c libsunacl.c cc -O2 -pipe -fno-strict-aliasing -D_ACL_PRIVATE -std=gnu99 -fstack-protector -c opensolaris_acl.c building static sunacl library ranlib libsunacl.a cc -pg -O2 -pipe -fno-strict-aliasing -D_ACL_PRIVATE -std=gnu99 -fstack-protector -c libsunacl.c -o libsunacl.po cc -pg -O2 -pipe -fno-strict-aliasing -D_ACL_PRIVATE -std=gnu99 -fstack-protector -c opensolaris_acl.c -o opensolaris_acl.po building profiled sunacl library ranlib libsunacl_p.a cc -fpic -DPIC -O2 -pipe -fno-strict-aliasing -D_ACL_PRIVATE -std=gnu99 -fstack-protector -c libsunacl.c -o libsunacl.So cc -fpic -DPIC -O2 -pipe -fno-strict-aliasing -D_ACL_PRIVATE -std=gnu99 -fstack-protector -c opensolaris_acl.c -o opensolaris_acl.So building shared library libsunacl.so.1 ===> Installing for libsunacl-1.0 ===> Generating temporary packing list ===> Checking if sysutils/libsunacl already installed install -C -o root -g wheel -m 444 libsunacl.a /usr/local/lib install -C -o root -g wheel -m 444 libsunacl_p.a /usr/local/lib install -s -o root -g wheel -m 444 libsunacl.so.1 /usr/local/lib ln -fs libsunacl.so.1 /usr/local/lib/libsunacl.so install -C -o root -g wheel -m 444 sunacl.h /usr/local/include ===> Running ldconfig /sbin/ldconfig -m /usr/local/lib ===> Registering installation for libsunacl-1.0 ===> Building package for libsunacl-1.0 # tar -tvf /export/packages/libsunacl-1.0.tbz -rw-r--r-- 0 root wheel 486 Dec 16 13:45 +CONTENTS -rw-r--r-- 0 root wheel 38 Dec 16 13:45 +COMMENT -rw-r--r-- 0 root wheel 236 Dec 16 13:45 +DESC -rw-r--r-- 0 root wheel 17550 Dec 16 13:45 +MTREE_DIRS -r--r--r-- 0 root wheel 3997 Dec 16 13:45 include/sunacl.h -r--r--r-- 0 root wheel 6842 Dec 16 13:45 lib/libsunacl.a -r--r--r-- 0 root wheel 8072 Dec 16 13:45 lib/libsunacl.so.1 lrwxr-xr-x 0 root wheel 0 Dec 16 13:45 lib/libsunacl.so -> libsunacl.so.1 -r--r--r-- 0 root wheel 7194 Dec 16 13:45 lib/libsunacl_p.a >How-To-Repeat: echo "NO_PROFILE=1" >> /etc/make.conf cd sysutils/libsunacl make package >Fix: --- sysutils/libsunacl/Makefile.orig 2010-12-16 04:22:22.000000000 +1030 +++ sysutils/libsunacl/Makefile 2010-12-16 13:40:51.000000000 +1030 @@ -14,7 +14,7 @@ COMMENT= Wrapper providing SunOS NFSv4 ACL API USE_LDCONFIG= yes -PLIST_FILES= include/sunacl.h lib/libsunacl.a lib/libsunacl_p.a lib/libsunacl.so.1 lib/libsunacl.so +PLIST_FILES= include/sunacl.h lib/libsunacl.a lib/libsunacl.so.1 lib/libsunacl.so .include @@ -22,4 +22,8 @@ IGNORE= no NFSv4 ACL support before FreeBSD 8.0 .endif +.if !defined(NO_PROFILE) +PLIST_FILES+= lib/libsunacl_p.a +.endif + .include >Release-Note: >Audit-Trail: >Unformatted: