pkgsrc-Bugs archive

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

Re: pkg/54420



The following reply was made to PR pkg/54420; it has been noted by GNATS.

From: Patrick Welche <prlw1%cam.ac.uk@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/54420
Date: Tue, 21 Jan 2020 15:31:08 +0000

 A hopefully correctly unmunged version of Matthias' script:
 
 # crude workaround for PR pkg/54420 (clamav libunrar)
 function ____check_dlopen_L_libs_misorder ()
 {   local x y newargv
 
     for x in $(seq 0 $#); do
         # echo x: ${!x}
         y=$((x+1))  
         # echo y: ${!y}
         if [ "${!x}" = "-dlopen" -a "${!y}" = "-L./.libs" ]; then
             declare -a newargv
             # newargv indices are 0-based, $1..$
             # are 1-based; reposition index var y
             y=$((x-1))  
             newargv=( ${1+"$@"} )  
             newargv[$y]="-L./.libs"  
             newargv[$x]="-dlopen"  
             echo "# modified at pos. $x"
             sleep 1
             exec $0 ${newargv[@]} 
         fi 
     done
 }
 ____check_dlopen_L_libs_misorder ${1+"$@"}
 


Home | Main Index | Thread Index | Old Index