Bug 245324 - games/cowsay puts STAGEDIR in manpage
Summary: games/cowsay puts STAGEDIR in manpage
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Nikolai Lifanov
Depends on:
Reported: 2020-04-03 18:24 UTC by Adriaan de Groot
Modified: 2020-04-03 18:24 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (lifanov)


Note You need to log in before you can comment on or make changes to this bug.
Description Adriaan de Groot freebsd_committer 2020-04-03 18:24:03 UTC
I have built games/cowsay in my own poudriere. In the manpage, it says:

       /wrkdirs/usr/ports/games/cowsay/work/stage/usr/local/share/cows holds a
       sample set of cowfiles.  If your COWPATH is not explicitly set, it
       automatically contains this directory.

Notice that the stagedir from building has leaked into the manpage. And if I build the port as a user in /tmp/port, and look at the staged manpage at /tmp/port/work/stage/usr/local/man/man1/cowsay.1.gz, then I see this:

.B /tmp/port/work/stage/usr/local/share/cows
holds a sample set of cowfiles.  If your

.. and while the script explicitly handles a "normal" (or maybe "old-fashioned, before staging was a thing") prefix, it substitutes a full prefix (with staging, it seems) in to the intermediate perl scripts -- and onwards into the manpages:

echo s,%PREFIX%,$PREFIX,\; >> install.pl