<html>
<head>
<base href="https://issues.openmandriva.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - unpack fails in Octave"
href="https://issues.openmandriva.org/show_bug.cgi?id=2051#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - unpack fails in Octave"
href="https://issues.openmandriva.org/show_bug.cgi?id=2051">bug 2051</a>
from <span class="vcard"><a class="email" href="mailto:mandian@openmailbox.org" title="mandian <mandian@openmailbox.org>"> <span class="fn">mandian</span></a>
</span></b>
<pre>Created <span class=""><a href="attachment.cgi?id=1373&action=diff" name="attach_1373" title="patch for octave RPM macro">attachment 1373</a> <a href="attachment.cgi?id=1373&action=edit" title="patch for octave RPM macro">[details]</a></span>
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 <a href="https://downloads.sourceforge.net/io-2.4.5.tar.gz">https://downloads.sourceforge.net/io-2.4.5.tar.gz</a>
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'</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>