Bug 153201 - [patch] sysutils/libsunacl fails to create package with NO_PROFILE=1
Summary: [patch] sysutils/libsunacl fails to create package with NO_PROFILE=1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Edward Tomasz Napierala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-16 05:40 UTC by Robert Archer
Modified: 2010-12-23 11:20 UTC (History)
0 users

See Also:


Attachments
file.diff (619 bytes, patch)
2010-12-16 05:40 UTC, Robert Archer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Archer 2010-12-16 05:40:08 UTC
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-12-16 05:40:14 UTC
Responsible Changed
From-To: freebsd-ports-bugs->trasz

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2010-12-23 11:16:48 UTC
trasz       2010-12-23 11:16:43 UTC

  FreeBSD ports repository

  Modified files:
    sysutils/libsunacl   Makefile distinfo 
  Log:
  Fix plist when NO_PROFILE=1.  While here, remove MD5 from distinfo.
  
  PR:             ports/153201
  Submitted by:   Robert Archer <freebsd at deathbeforedecaf dot net>
  
  Revision  Changes    Path
  1.2       +5 -1      ports/sysutils/libsunacl/Makefile
  1.2       +0 -1      ports/sysutils/libsunacl/distinfo
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Edward Tomasz Napierala freebsd_committer freebsd_triage 2010-12-23 11:17:21 UTC
State Changed
From-To: open->closed

Committed. Thanks!