Date: Fri, 7 Feb 2014 20:20:00 GMT From: Dan Nelson <dnelson@allantgroup.com> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/186540: audio/sox installs symlink with non-existent target Message-ID: <201402072020.s17KK0It039286@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/186540; it has been noted by GNATS. From: Dan Nelson <dnelson@allantgroup.com> To: bug-followup@FreeBSD.org, turutani@scphys.kyoto-u.ac.jp Cc: Subject: Re: ports/186540: audio/sox installs symlink with non-existent target Date: Fri, 7 Feb 2014 14:12:25 -0600 --Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Unfortunately, your patch doesn't fix the underlying problem, which is that the "compress-man" target of bsd.port.mk strips off the path of any symlink that is created. It can't handle the case where you want to symlink a manpage from a different category. The old-style MLINKS make variable did this correctly, which is why this problem only popped up after the switch to a staged buld. Modifying your patch to simply copy the file instead of symlink it (attached) works around the bug. --Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="patch-Makefile.am" Work around a ports bug wrt symlinking manpages in different categories, by copying the manpage instead. --- Makefile.am.orig 2013-01-30 11:40:06.000000000 +0900 +++ Makefile.am 2014-02-08 01:46:11.000000000 +0900 @@ -118,7 +118,7 @@ install-data-hook: cd $(DESTDIR)$(mandir)/man1 && $(RM) play.1 && $(LN_S) sox.1 play.1 cd $(DESTDIR)$(mandir)/man1 && $(RM) rec.1 && $(LN_S) sox.1 rec.1 - cd $(DESTDIR)$(mandir)/man7 && $(RM) soxeffect.7 && $(LN_S) ../man1/sox.1 soxeffect.7 + cd $(DESTDIR)$(mandir)/man7 && $(RM) soxeffect.7 && cp ../man1/sox.1 soxeffect.7 uninstall-hook: $(RM) $(DESTDIR)$(mandir)/man1/play.1 --Qxx1br4bt0+wmkIi--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402072020.s17KK0It039286>