Bug 193359 - dns/bind99: Creates package in WRKDIRPREFIX, not in PACKAGES
Summary: dns/bind99: Creates package in WRKDIRPREFIX, not in PACKAGES
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Mathieu Arnold
Keywords: needs-patch
Depends on:
Reported: 2014-09-06 04:17 UTC by Dirk Meyer
Modified: 2014-09-30 20:23 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Meyer freebsd_committer 2014-09-06 04:17:15 UTC
dns/bind99 creates package in WRKDIRPREFIX, not in PACKAGES

FreeBSD 9.3-RELEASE pkg-1.3.7


cd /usr/ports/dns/bind99/ && make clean package
====> Compressing man pages (compress-man)
===>  Building package for bind99-9.9.5P1_5

after build I use the workaround by hand:
mv /usr/obj/ports/usr/ports/dns/bind99/work/pkg/bind99-9.9.5P1_5.txz /usr/ports/packages-amd64/All/

Please fix.
Comment 1 Mathieu Arnold freebsd_committer 2014-09-06 07:57:14 UTC
Is that a problem with BIND specifically ?
Comment 2 Dirk Meyer freebsd_committer 2014-09-06 15:52:19 UTC
this happens only with the bind ports for some time.
same problem I have seen before with with the old pkg_create.

1590 other ports create the package in PACKAGES as expected.
Comment 3 Dirk Meyer freebsd_committer 2014-09-07 04:46:52 UTC
clean jail, nothing installed:

samples OK:

root@build:/usr/ports/dns/ldns # make -V PKGFILE

root@build:/usr/ports/dns/bind10 # make -V PKGFILE

samples fail:

root@build:/usr/ports/dns/bind99 # make -V PKGFILE

root@build:/usr/ports/dns/bind910 # make -V PKGFILE

root@build:/usr/ports/dns/bind97 # make -V PKGFILE


# grep -C1 PKGFILE.= /usr/ports/Mk/ -r
/usr/ports/Mk/bsd.port.mk-.if exists(${PACKAGES})
/usr/ports/Mk/bsd.port.mk:PKGFILE?=             ${PKGREPOSITORY}/${PKGNAME}${PKG_SUFX}
/usr/ports/Mk/bsd.port.mk:PKGFILE?=             ${.CURDIR}/${PKGNAME}${PKG_SUFX}

root@build:/usr/ports/dns/bind99 # make -V PKGREPOSITORY

This dir does not exist, so bsd.port.mk revert to ".CURDIR"

Another side effect is the loss of CFLAGS_amd64=

if defined(CFLAGS_${ARCH})
CFLAGS+=        ${CFLAGS_${ARCH}}

.if defined(CXXFLAGS_${ARCH})

instead of setting 
ARCH=            x86_64

it might be sufficient to set:
CONFIGURE_TARGET=      x86_64-portbld-${OPSYS:tl}${OSREL}
Comment 4 Mathieu Arnold freebsd_committer 2014-09-30 20:23:28 UTC
This was fixed in r367505.