Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Aug 2014 10:46:06 +0200
From:      olli hauer <ohauer@gmx.de>
To:        freebsd-ports <freebsd-ports@FreeBSD.org>
Cc:        portmgr@FreeBSD.org
Subject:   issue pkg-plist @exec lines and pkg-install scripts
Message-ID:  <53E1EB4E.1040906@gmx.de>

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

haven't found the culprit but it seems during package building the @exec lines from pkg-plist are running.

I found this the hard way since many ports where failing on my local pd system.


E.g from viewvc pkg-plist

@unexec if cmp -s %D/viewvc/cvsgraph.conf %D/viewvc/cvsgraph.conf.dist; then rm -f %D/viewvc/cvsgraph.conf; fi
@unexec if cmp -s %D/viewvc/mimetypes.conf %D/viewvc/mimetypes.conf.dist; then rm -f %D/viewvc/mimetypes.conf; fi
@unexec if cmp -s %D/viewvc/viewvc.conf %D/viewvc/viewvc.conf.dist; then rm -f %D/viewvc/viewvc.conf; fi
viewvc/cvsgraph.conf.dist
@exec [ -f %B/cvsgraph.conf ] || cp %B/%f %B/cvsgraph.conf
viewvc/mimetypes.conf.dist
@exec [ -f %B/mimetypes.conf ] || cp %B/%f %B/mimetypes.conf
viewvc/viewvc.conf.dist
@exec [ -f %B/viewvc.conf ] || cp %B/%f %B/viewvc.conf


$ make check-orphans
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: %%AP_NAME%%/cvsgraph.conf
Error: Orphaned: %%AP_NAME%%/mimetypes.conf
Error: Orphaned: %%AP_NAME%%/%%AP_NAME%%.conf
===> Checking for directories owned by MTREEs
===> Checking for directories handled by dependencies
===> Checking for items in pkg-plist which are not in STAGEDIR
===> Error: Plist issues found.
*** Error code 1


The finished package however has only the *.conf.dist files but many ports are broken now because @exec statements and pkg-install scripts are running now during package building ...

-- 
olli



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