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
>Release:        
>Organization:
>Environment:
>Description:
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:
http://leaf.dragonflybsd.org/~marino/masterbulk/20121121.1619/otptool-1.1.4/build.log
>How-To-Repeat:
Attempt to build it on any release of DragonFly
>Fix:
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