Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Dec 2010 05:30:08 GMT
From:      Robert Archer <freebsd@deathbeforedecaf.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/153201: [patch] sysutils/libsunacl fails to create package with NO_PROFILE=1
Message-ID:  <201012160530.oBG5U8FI088118@red.freebsd.org>
Resent-Message-ID: <201012160540.oBG5e8oN036792@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <bsd.port.pre.mk>
 
@@ -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 <bsd.port.post.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012160530.oBG5U8FI088118>