Bug 183669 - net/rsync 3.1.0 package build failure using non-default PREFIX
Summary: net/rsync 3.1.0 package build failure using non-default PREFIX
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: Emanuel Haupt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-05 04:00 UTC by dewayne
Modified: 2014-01-20 15:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dewayne 2013-11-05 04:00:00 UTC
Using 
make PREFIX=/usr -DBATCH -DNOPORTDOCS -DNO_DOC -DNO_MAN package
compilation is successful, documentation is created but isn't found when creating the package.  (I actually want the documentation, but resorted to the above make command to create the package, seems that something is incomplete from rev 331355) 

Tail of build log:
[clip]
/bin/mkdir -p /usr/staging/usr/bin
/usr/bin/install -c -o root -g wheel  -m 755 rsync /usr/staging/usr/bin
/bin/mkdir -p /usr/staging/usr/share/man/man1
/bin/mkdir -p /usr/staging/usr/share/man/man5
if test -f rsync.1; then /usr/bin/install -c -o root -g wheel -m 644 rsync.1 /usr/staging/usr/share/man/man1; fi
if test -f rsyncd.conf.5; then /usr/bin/install -c -o root -g wheel -m 644 rsyncd.conf.5 /usr/staging/usr/share/man/man5; fi
====> Compressing man pages (compress-man)
===> Staging rc.d startup script(s)
===>  Building package for rsync-3.1.0_1
Creating package /var/ports/usr/ports/net/rsync/work/rsync-3.1.0_1.tbz
Registering depends:.
Creating bzip'd tar ball in '/var/ports/usr/ports/net/rsync/work/rsync-3.1.0_1.tbz'
tar: man/man1/rsync.1.gz: Cannot stat: No such file or directory
tar: man/man5/rsyncd.conf.5.gz: 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/net/rsync.

Fix: 

Looking at other ports that succeed, probably need to apply something like
${STAGEDIR}${MANPREFIX} in the Makefile.
How-To-Repeat: cd /usr/ports && make PREFIX=/usr -DBATCH package
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-11-05 04:00:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ehaupt

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Emanuel Haupt freebsd_committer freebsd_triage 2014-01-20 15:29:23 UTC
State Changed
From-To: open->closed

I just discussed this with mat - /usr as PREFIX is not supported. Every other PREFIX works (eg. /opt).