[om-qa-alerts] [Bug 2051] unpack fails in Octave

issues.openmandriva bugzilla-daemon at openmandriva.net
Mon Feb 20 16:32:52 EST 2017


https://issues.openmandriva.org/show_bug.cgi?id=2051

--- Comment #1 from mandian <mandian at openmailbox.org> ---
Created attachment 1373
  --> https://issues.openmandriva.org/attachment.cgi?id=1373&action=edit
patch for octave RPM macro

I received the update on cooker and this bug has been fixed. However I still
had some problems in packaging octave package and in particular with
%octave_pkg_build macro:

Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.43442
+ umask 022
+ cd /home/mandian/rpmbuild/BUILD
+ cd octave-io-2.4.5
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ octave -H -q --no-window-system --no-site-file --eval 'pkg build
'\''-verbose'\'' '\''-nodeps'\'' /var/tmp/octave-io-2.4.5-0.x86_64
/home/mandian/rpmbuild/BUILD/octave-io-2.4.5'
error: unpack: FILETYPE must be given for a directory
error: unhandled execution exception -- eval failed
+ exit 1
error: Bad exit status from /var/tmp/rpm-tmp.43442 (%build)

It seems 'pkg build' command needs the full path of the source package and not
only the directory. I changed it as in the attached patch (working for me) but
then I've still a problem at the following stage:

Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.53201
+ umask 022
+ cd /home/mandian/rpmbuild/BUILD
+ cd octave-io-2.4.5
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ octave -H -q --no-window-system --no-site-file --eval 'pkg build
'\''-verbose'\'' '\''-nodeps'\'' /var/tmp/octave-io-2.4.5-0.x86_64
/home/mandian/rpmbuild/SOURCES/io-2.4.5.tar.gz'
make: Entering directory '/var/tmp/octave-io-2.4.5-0.x86_64/io/src'
/usr/bin/mkoctfile-4.2.0 --verbose csvexplode.cc
g++ -c -Os -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security
-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4  -fPIC 
-DH5_USE_16_API -fPIC -I/usr/include/octave-4.2.0/octave/..
-I/usr/include/octave-4.2.0/octave  -pthread -Os -gdwarf-4 -Wstrict-aliasing=2
-pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4  -fPIC     csvexplode.cc -o csvexplode.o
/usr/bin/mkoctfile-4.2.0 --verbose csv2cell.cc
g++ -c -Os -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security
-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4  -fPIC 
-DH5_USE_16_API -fPIC -I/usr/include/octave-4.2.0/octave/..
-I/usr/include/octave-4.2.0/octave  -pthread -Os -gdwarf-4 -Wstrict-aliasing=2
-pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4  -fPIC     csv2cell.cc -o csv2cell.o
g++ -I/usr/include/octave-4.2.0/octave/.. -I/usr/include/octave-4.2.0/octave 
-pthread -Os -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4  -fPIC  -shared -Wl,-Bsymbolic  -o csvexplode.oct 
csvexplode.o   -L/usr/lib64/octave/4.2.0 -L/usr/lib64 -loctinterp -loctave -Os
-gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security
-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4  -fPIC  -Wl,-O2
 -Wl,--no-undefined                               -lfreetype   -lhdf5
-lGraphicsMagick++ -lGraphicsMagick   -lz -lfftw3_threads -lfftw3  
-lfftw3f_threads -lfftw3f   -lGL -lGLU -lfontconfig -lfreetype    -L/usr/lib64
-lX11  -lgl2ps   -llapack              -lcurl -lcholmod -lumfpack -lamd
-lsuitesparseconfig -lcamd -lsuitesparseconfig -lcolamd -lsuitesparseconfig
-lccolamd -lsuitesparseconfig -lcxsparse -lsuitesparseconfig -larpack -lblas
-llapack   -lqrupdate -lfftw3_threads -lfftw3   -lfftw3f_threads -lfftw3f  
-llapack -lblas -lreadline -lncurses  -lpcre -ldl  
-L/usr/lib64/gcc/x86_64-mandriva-linux-gnu/6.3.1
-L/usr/lib64/gcc/x86_64-mandriva-linux-gnu/6.3.1/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64
-L/usr/lib64/gcc/x86_64-mandriva-linux-gnu/6.3.1/../../.. -lgfortran -lm
-lquadmath -lutil -lm  
/usr/bin/x86_64-mandriva-linux-gnu-ld: error: cannot find -lGraphicsMagick++
/usr/bin/x86_64-mandriva-linux-gnu-ld: error: cannot find -lGraphicsMagick
/usr/bin/x86_64-mandriva-linux-gnu-ld: error: cannot find -lgl2ps
/usr/bin/x86_64-mandriva-linux-gnu-ld: error: cannot find -larpack
/usr/bin/x86_64-mandriva-linux-gnu-ld: error: cannot find -lqrupdate
collect2: error: ld returned 1 exit status
make: *** [Makefile:6: csvexplode.oct] Error 1
make: *** Waiting for unfinished jobs....
g++ -I/usr/include/octave-4.2.0/octave/.. -I/usr/include/octave-4.2.0/octave 
-pthread -Os -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4  -fPIC  -shared -Wl,-Bsymbolic  -o csv2cell.oct 
csv2cell.o   -L/usr/lib64/octave/4.2.0 -L/usr/lib64 -loctinterp -loctave -Os
-gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security
-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4  -fPIC  -Wl,-O2
 -Wl,--no-undefined                               -lfreetype   -lhdf5
-lGraphicsMagick++ -lGraphicsMagick   -lz -lfftw3_threads -lfftw3  
-lfftw3f_threads -lfftw3f   -lGL -lGLU -lfontconfig -lfreetype    -L/usr/lib64
-lX11  -lgl2ps   -llapack              -lcurl -lcholmod -lumfpack -lamd
-lsuitesparseconfig -lcamd -lsuitesparseconfig -lcolamd -lsuitesparseconfig
-lccolamd -lsuitesparseconfig -lcxsparse -lsuitesparseconfig -larpack -lblas
-llapack   -lqrupdate -lfftw3_threads -lfftw3   -lfftw3f_threads -lfftw3f  
-llapack -lblas -lreadline -lncurses  -lpcre -ldl  
-L/usr/lib64/gcc/x86_64-mandriva-linux-gnu/6.3.1
-L/usr/lib64/gcc/x86_64-mandriva-linux-gnu/6.3.1/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64
-L/usr/lib64/gcc/x86_64-mandriva-linux-gnu/6.3.1/../../.. -lgfortran -lm
-lquadmath -lutil -lm  
/usr/bin/x86_64-mandriva-linux-gnu-ld: error: cannot find -lGraphicsMagick++
/usr/bin/x86_64-mandriva-linux-gnu-ld: error: cannot find -lGraphicsMagick
/usr/bin/x86_64-mandriva-linux-gnu-ld: error: cannot find -lgl2ps
/usr/bin/x86_64-mandriva-linux-gnu-ld: error: cannot find -larpack
/usr/bin/x86_64-mandriva-linux-gnu-ld: error: cannot find -lqrupdate
collect2: error: ld returned 1 exit status
make: *** [Makefile:6: csv2cell.oct] Error 1
make: Leaving directory '/var/tmp/octave-io-2.4.5-0.x86_64/io/src'
error: structure has no member 'dir'
error: unhandled execution exception -- eval failed
+ exit 1
error: Bad exit status from /var/tmp/rpm-tmp.53201 (%build)

Octave always tries to link some unneeded library (for instance gl2ps) even if
it is not required by the package (octave-io has not external dependences).

This can be reproduced as following:

wget https://downloads.sourceforge.net/io-2.4.5.tar.gz
octave -H -q --no-window-system --no-site-file --eval 'pkg build -verbose
-nodeps ./octave-io-2.4.5-0.x86_64 io-2.4.5.tar.gz'

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ml.openmandriva.org/pipermail/om-qa-alerts_ml.openmandriva.org/attachments/20170220/8872e780/attachment.html>


More information about the OM-QA-Alerts mailing list