Bug 191145 - Staging package build can't find info
Summary: Staging package build can't find info
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-18 02:59 UTC by dewayne
Modified: 2014-06-25 02:03 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dewayne 2014-06-18 02:59:00 UTC
FreeBSD 9.3-BETA3.  Ports svn updated within the hour.

PREFIX=/usr

cd /usr/ports/security/heimdal 
make -DBATCH clean deinstall package || make -DBATCH clean deinstall install package
  security_heimdal_SET=CRACKLIB
  security_heimdal_UNSET=BDB KCM KX509 LDAP SQLITE X11

Creating bzip'd tar ball in '/var/ports/usr/ports/security/heimdal/work/pkg/heimdal-1.5.2_5.tbz'
tar: share/info/heimdal.info: Cannot stat: No such file or directory
tar: share/info/hx509.info: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
pkg_create: make_dist: tar command failed with code 256
*** [do-package] Error code 1

Stop in /usr/ports/security/heimdal.


# ls /usr/staging/usr/share/info
dir             heimdal.info    hx509.info


Workaround to build successfully
svn update -r "{20140607}" /usr/ports/Mk
Comment 1 dewayne 2014-06-19 03:08:01 UTC
Please close this port.  The solution is to use pkgng. 

Building net/samba41 and security/heimdal (heimdal uses PREFIX!=/usr/local) using pkg_* tools on both i386 and amd64 based systems using FreeBSD 9.3-Beta3, results in:

Failure for net/samba41 (PREFIX=/usr/local)
===> Staging rc.d startup script(s)
*** [pre-build] Error code 71 (ignored)
... (11 of the above error code 71)

===>  Building package for samba41-4.1.7
tar: lib/python2.7/site-packages/samba/external/dns/__init__.py: Cannot stat: No such file or directory
tar: lib/python2.7/site-packages/samba/external/dns/dnssec.py: Cannot stat: No such file or directory
...

Failure for security/heimdal (PREFIX=/usr)
Creating bzip'd tar ball in '/var/ports/usr/ports/security/heimdal/work/pkg/heimdal-1.5.2_5.tbz'
tar: share/info/heimdal.info: Cannot stat: No such file or directory
tar: share/info/hx509.info: Cannot stat: No such file or directory

Clearly there's a pattern. After days of struggling with this and similar problems that are not attributable to the application's port, the solution is to:

cd /usr/ports/ports-mgmt/pkg && make install
echo "WITH_PKGNG=yes" >> /etc/make.conf
pkg2ng

and then your package failures magically disappear, along with the illusion that pkg_* is supported.

Aside: Packages which are build with pkg_* do not work with pkg, and vice versa.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2014-06-25 02:03:25 UTC
Closed by submitter's request.