pkgsrc-Bugs archive

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

pkg/47282: security/otptool: portability issue with sed (sed -r)

>Number:         47282
>Category:       pkg
>Synopsis:       security/otptool: portability issue with sed (sed -r)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 04 08:20:01 +0000 2012
>Originator:     John Marino
otptool uses the gnu option "-r" which is analogous to "-E" on BSD.  If sed 
doesn't support -r (as seen with DragonFly), then otptool is fails to build:

--- module ---
if test "." != "."; then /bin/cp ./mod_authn_otp.c .; fi
/usr/pkg/sbin/apxs -c -D_REENTRANT `echo -Wall -Waggregate-return -Wcast-align 
-Wchar-subscripts -Wcomment -Wformat         -Wimplicit -Wmissing-declarations 
-Wmissing-prototypes -Wnested-externs -Wno-long-long         -Wparentheses 
-Wpointer-arith -Wredundant-decls -Wreturn-type -Wswitch -Wtrigraphs         
-Wuninitialized -Wunused -Wwrite-strings -Wshadow -Wstrict-prototypes 
-Wcast-qual | sed -r 's/ -/ -Wc,-/g'` -l crypto mod_authn_otp.c
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file 

full build log:
Attempt to build it on any release of DragonFly
Likely the fix is to replace "-r" with "-E" but I don't know offhand how Linux 
or SunOS will react.

Home | Main Index | Thread Index | Old Index