Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 505410

Summary: app-portage/g-octave-0.4.1-r4 with sci-mathematics/octave-3.8.1 - parse error near line 140 of file /usr/share/octave/3.8.1/m/pkg/private/install.m
Product: Portage Development Reporter: Juergen Rose <rose>
Component: ToolsAssignee: Rafael Martins (RETIRED) <rafaelmartins>
Status: RESOLVED DUPLICATE    
Severity: normal CC: misha, sci-mathematics
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: presumably corrected patch

Description Juergen Rose 2014-03-23 09:10:58 UTC
>>> Emerging (1 of 1) g-octave/miscellaneous-1.2.0::g-octave
 * miscellaneous-1.2.0.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                               [ ok ]
 * g-octave_Makefile SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                        [ ok ]
 * g-octave_configure SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                       [ ok ]
>>> Unpacking source...
>>> Unpacking miscellaneous-1.2.0.tar.gz to /var/tmp/portage/g-octave/miscellaneous-1.2.0/work
>>> Unpacking g-octave_Makefile to /var/tmp/portage/g-octave/miscellaneous-1.2.0/work
unpack g-octave_Makefile: file format not recognized. Ignoring.
>>> Unpacking g-octave_configure to /var/tmp/portage/g-octave/miscellaneous-1.2.0/work
unpack g-octave_configure: file format not recognized. Ignoring.
>>> Source unpacked in /var/tmp/portage/g-octave/miscellaneous-1.2.0/work
>>> Preparing source in /var/tmp/portage/g-octave/miscellaneous-1.2.0/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/g-octave/miscellaneous-1.2.0/work/miscellaneous ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64
>>> Source configured.
>>> Compiling source in /var/tmp/portage/g-octave/miscellaneous-1.2.0/work/miscellaneous ...
make -j3 
make[1]: Entering directory '/var/tmp/portage/g-octave/miscellaneous-1.2.0/work/miscellaneous/src'
mkoctfile -Wall cell2cell.cc
mkoctfile -Wall partint.cc
mkoctfile -Wall sample.cc
mkoctfile -Wall partarray.cc
mkoctfile -Wall text_waitbar.cc
make[1]: Leaving directory '/var/tmp/portage/g-octave/miscellaneous-1.2.0/work/miscellaneous/src'
>>> Source compiled.
>>> Test phase [not enabled]: g-octave/miscellaneous-1.2.0

>>> Install miscellaneous-1.2.0 into /var/tmp/portage/g-octave/miscellaneous-1.2.0/image/ category g-octave
make -j3 DESTDIR=/var/tmp/portage/g-octave/miscellaneous-1.2.0/image/ DISTPKG=Gentoo install 
parse error near line 140 of file /usr/share/octave/3.8.1/m/pkg/private/install.m

>>>     endfor
             ^

error: 'if' command matched by 'endfor' near line 140 column 5
error: parse error while reading file /usr/share/octave/3.8.1/m/pkg/private/install.m
error: called from:
error:   /usr/share/octave/3.8.1/m/pkg/pkg.m at line 394, column 9
error: a cs-list cannot be further indexed
error: evaluating argument list element number 1
/bin/sh: line 25: /packinfo/on_uninstall.m: No such file or directory
/bin/sh: line 26: /packinfo/on_uninstall.m: No such file or directory
/bin/sh: line 27: /packinfo/on_uninstall.m: No such file or directory
/bin/sh: line 28: /packinfo/dist_admin: No such file or directory
/bin/sh: line 29: /packinfo/dist_admin: No such file or directory
/bin/sh: line 30: /packinfo/dist_admin: No such file or directory
/bin/sh: line 31: /packinfo/dist_admin: No such file or directory
/bin/sh: line 32: /packinfo/dist_admin: No such file or directory
/bin/sh: line 33: /packinfo/dist_admin: No such file or directory
/bin/sh: line 34: /packinfo/dist_admin: No such file or directory
/bin/sh: line 35: /packinfo/dist_admin: No such file or directory
/bin/sh: line 36: /packinfo/dist_admin: No such file or directory
/bin/sh: line 37: /packinfo/dist_admin: No such file or directory
/bin/sh: line 38: /packinfo/dist_admin: No such file or directory
/bin/sh: line 39: /packinfo/dist_admin: No such file or directory
chmod: cannot access ‘/packinfo/dist_admin’: No such file or directory
Makefile:30: recipe for target 'install' failed
make: *** [install] Error 1
emake failed
>>> Completed installing miscellaneous-1.2.0 into /var/tmp/portage/g-octave/miscellaneous-1.2.0/image/


>>> Installing (1 of 1) g-octave/miscellaneous-1.2.0
 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at http://bugs.gentoo.org unless you report exactly which
 * two packages install the same file(s). See
 * http://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how to
 * solve the problem. And once again, please do NOT file a bug report
 * unless you have completely understood the above message.
 * 
 * Detected file collision(s):
 * 
 *      /usr/share/octave/octave_packages
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * g-octave/parallel-2.0.1:0::g-octave
 *      /usr/share/octave/octave_packages
 * 
 * Package 'g-octave/miscellaneous-1.2.0' NOT merged due to file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.

>>> Failed to install g-octave/miscellaneous-1.2.0, Log file:



The same happens for all other packages, which I tested, e.g.for: 
audio combinatoric general gsl optiminterp sockets
Comment 1 misdoro 2014-04-14 15:29:54 UTC
Created attachment 374914 [details, diff]
presumably corrected patch

This is in fact a bug in /usr/portage/sci-mathematics/octave/files/octave-3.8.0-pkgbuilddir.patch

It introduces an "if-elseif" condition to /usr/share/octave/3.8.1/m/pkg/private/install.m without removing the original if statement.

The (presumably) corrected patch is attached.
Comment 2 Sébastien Fabbro (RETIRED) gentoo-dev 2014-04-15 22:57:28 UTC

*** This bug has been marked as a duplicate of bug 504470 ***