pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/50606: lang/python35: depends on textproc/gsed



>Number:         50606
>Category:       pkg
>Synopsis:       lang/python35: depends on textproc/gsed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 02 05:05:00 +0000 2016
>Originator:     yegle
>Release:        
>Organization:
>Environment:
Darwin yegle-laptop.local 15.2.0 Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015; root:xnu-3248.20.55~2/RELEASE_X86_64 x86_64
>Description:
Using pkgsrc on OS X 10.11. It looks like the installing of lang/python35 depends on textproc/gsed, and the default sed in OS X (/usr/bin/sed) will fail in trying to replace the interpreter:

+ for f in 'Lib/*.py' 'Lib/*/*.py' 'Lib/*/*/*.py' 'Lib/*/*/*/*.py'
+ '[' -f Lib/test/badsyntax_pep3120.py ']'
+ /usr/bin/sed -e '1s|^#![[:space:]]*\(/usr/bin/env[[:space:]][[:space:]]*\)\{0,1\}.*python[^ ]*|#!/Users/yegle/pkg/bin/python3.5|'
sed: RE error: illegal byte sequence
*** Error code 1

Stop.
bmake[1]: stopped in /Users/yegle/pkgsrc/lang/python35


Indeed if I run the following command over the file in question I get the same error:

$ /usr/bin/sed -e '1s|^#![[:space:]]*\(/usr/bin/env[[:space:]][[:space:]]*\)\{0,1\}.*python[^ ]*|#!/Users/yegle/pkg/bin/python3.5|' Lib/test/badsyntax_pep3120.py
sed: RE error: illegal byte sequence

But `gsed` works fine:

$ gsed -e '1s|^#![[:space:]]*\(/usr/bin/env[[:space:]][[:space:]]*\)\{0,1\}.*python[^ ]*|#!/Users/yegle/pkg/bin/python3.5|' Lib/test/badsyntax_pep3120.py
print("b�se")

I'm new to pkgsrc and have no idea how to specify the sed used during installing.
>How-To-Repeat:
1. cd $PKGSRCDIR/lang/python35
2. bmake install
>Fix:


Home | Main Index | Thread Index | Old Index