Subject: pkg/25428: pkgsrc/lang/perl5/module.mk has one '\' too much; can cause loss of a character
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <geos@epost.de>
List: pkgsrc-bugs
Date: 05/02/2004 09:35:27
>Number:         25428
>Category:       pkg
>Synopsis:       pkgsrc/lang/perl5/module.mk has one '\' too much; can cause loss of a character
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 02 09:36:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Georg Schwarz
>Release:        current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
pkgsrc/lang/perl5/module.mk, which is also being used for perl58, has
...
${SED} -e "s,[        ].*,," -e "s,/\./,/,g" -e "s,${PREFIX}/,," \
                -e "s,^,@unexec \${RMDIR} -p %D/," \
                -e "s,/[^/]*$$, 2>/dev/null || \${TRUE}," \
...
to establish the CONTENT file of the package.
Now the above backslash in fron of the dollar sign is not needed, moreover with for example GNU sed it causes the loss of a character, leading to "rue" instead of "true" in the CONTENT file, sice \t is interpreted as a tab character.



>How-To-Repeat:
install, for example, perl58 with SED being set to the current version of GNU sed.
>Fix:
Remove the backslash in front of the dollar sign.
>Release-Note:
>Audit-Trail:
>Unformatted: