Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509574 - gnome-extra/gnome-commander-1.4.1 with dev-lang/python-3.3 - configure: checking for headers required to compile python extensions... print ... -//- SyntaxError: invalid syntax
Summary: gnome-extra/gnome-commander-1.4.1 with dev-lang/python-3.3 - configure: check...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Uwe Scholz
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-04 20:15 UTC by Markus Rathgeb
Modified: 2014-05-05 10:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.log,7.27 KB, text/plain)
2014-05-04 20:31 UTC, Markus Rathgeb
Details
build.log (build.log,12.21 KB, text/plain)
2014-05-04 20:32 UTC, Markus Rathgeb
Details
gnome-commander-1.4.1.ebuild (gnome-commander-1.4.1.ebuild,1.24 KB, text/plain)
2014-05-05 09:31 UTC, Uwe Scholz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rathgeb 2014-05-04 20:15:37 UTC
Additionally to https://bugs.gentoo.org/show_bug.cgi?id=231885#c50 it fails with system interpreter python3.3 on my system.

=== 

localhost portage # emerge -va1 gnome-commander

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] gnome-extra/gnome-commander-1.4.1  USE="chm exif pdf python taglib -debug -doc -gsf" PYTHON_TARGETS="python2_7 (-python2_6)" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] 

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) gnome-extra/gnome-commander-1.4.1::gentoo
 * gnome-commander-1.4.1.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                        [ ok ]
>>> Unpacking source...
>>> Unpacking gnome-commander-1.4.1.tar.xz to /var/tmp/portage/gnome-extra/gnome-commander-1.4.1/work
>>> Source unpacked in /var/tmp/portage/gnome-extra/gnome-commander-1.4.1/work
>>> Preparing source in /var/tmp/portage/gnome-extra/gnome-commander-1.4.1/work/gnome-commander-1.4.1 ...
 * Fixing OMF Makefiles ...                                                                                                                                                                                 [ ok ]
 * Disabling deprecation warnings ...                                                                                                                                                                       [ ok ]
 * Running elibtoolize in: gnome-commander-1.4.1/
 *   Applying portage/1.2.0 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.4.2 patch ...
 *   Applying target-nm/2.4.2 patch ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/gnome-extra/gnome-commander-1.4.1/work/gnome-commander-1.4.1 ...
 * econf: updating gnome-commander-1.4.1/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating gnome-commander-1.4.1/config.guess with /usr/share/gnuconfig/config.guess
./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 --disable-silent-rules --disable-dependency-tracking --docdir=/usr/share/doc/gnome-commander-1.4.1 --disable-scrollkeeper --disable-scrollkeeper --enable-python --with-libchm --with-exiv2 --without-libgsf --with-taglib --with-poppler
configure: WARNING: unrecognized options: --with-poppler
checking for a BSD-compatible install... /usr/lib64/portage/bin/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether ln -s works... yes
checking for x86_64-pc-linux-gnu-pkg-config... /usr/bin/x86_64-pc-linux-gnu-pkg-config
checking pkg-config is at least version 0.9.0... yes
checking gnome-doc-utils >= 0.3.2... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... (cached) yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking dependency style of x86_64-pc-linux-gnu-gcc... (cached) none
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes
checking dependency style of x86_64-pc-linux-gnu-g++... none
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/x86_64-pc-linux-gnu-nm -B
checking the name lister (/usr/bin/x86_64-pc-linux-gnu-nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for x86_64-pc-linux-gnu-objdump... x86_64-pc-linux-gnu-objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking for archiver @FILE support... @
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking command to parse /usr/bin/x86_64-pc-linux-gnu-nm -B output from x86_64-pc-linux-gnu-gcc object... ok
checking for sysroot... no
checking for x86_64-pc-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-pc-linux-gnu-gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... x86_64-pc-linux-gnu-g++ -E
checking for ld used by x86_64-pc-linux-gnu-g++... /usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the x86_64-pc-linux-gnu-g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for x86_64-pc-linux-gnu-g++ option to produce PIC... -fPIC -DPIC
checking if x86_64-pc-linux-gnu-g++ PIC flag -fPIC -DPIC works... yes
checking if x86_64-pc-linux-gnu-g++ static flag -static works... yes
checking if x86_64-pc-linux-gnu-g++ supports -c -o file.o... yes
checking if x86_64-pc-linux-gnu-g++ supports -c -o file.o... (cached) yes
checking whether the x86_64-pc-linux-gnu-g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether NLS is requested... yes
checking for intltool >= 0.35.0... 0.50.2 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.18.2
checking for XML::Parser... ok
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... (cached) /usr/bin/gmsgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking if glib >= 2.6.0 exists... yes
checking if gmodule >= 2.0.0 exists... yes
checking if gtk+ >= 2.8.0 exists... yes
checking if libgnome >= 2.0.0 exists... yes
checking if libgnomeui >= 2.4.0 exists... yes
checking if gnome-vfs >= 2.0.0 exists... yes
checking for GNOME_KEYRING... yes
checking for UNIQUE... yes
checking for EXIV2... yes
checking for TAGLIB... yes
checking for chm_open in -lchm... yes
checking for POPPLER... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether Python support is requested... yes
checking for a Python interpreter with version >= 2.5... python
checking for python... /usr/bin/python
checking for python version... 3.3
checking for python platform... linux
checking for python script directory... ${prefix}/lib64/python3.3/site-packages
checking for python extension module directory... ${exec_prefix}/lib64/python3.3/site-packages
checking for headers required to compile python extensions...   File "<string>", line 1
    import sys; print sys.prefix
                        ^
SyntaxError: invalid syntax
  File "<string>", line 1
    import sys; print sys.exec_prefix
                        ^
SyntaxError: invalid syntax
not found
configure: error: Python not found

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/gnome-extra/gnome-commander-1.4.1/work/gnome-commander-1.4.1/config.log
 * ERROR: gnome-extra/gnome-commander-1.4.1::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *          ebuild.sh, line   93:  Called src_configure
 *        environment, line 4023:  Called gnome2_src_configure
 *        environment, line 2477:  Called econf '--docdir=/usr/share/doc/gnome-commander-1.4.1' '--disable-scrollkeeper' '--disable-scrollkeeper' '--enable-python' '--with-libchm' '--with-exiv2' '--without-libgsf' '--with-taglib' '--with-poppler'
 *   phase-helpers.sh, line  584:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 * 
 * If you need support, post the output of `emerge --info '=gnome-extra/gnome-commander-1.4.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=gnome-extra/gnome-commander-1.4.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/gnome-extra/gnome-commander-1.4.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/gnome-extra/gnome-commander-1.4.1/temp/environment'.
 * Working directory: '/var/tmp/portage/gnome-extra/gnome-commander-1.4.1/work/gnome-commander-1.4.1'
 * S: '/var/tmp/portage/gnome-extra/gnome-commander-1.4.1/work/gnome-commander-1.4.1'

>>> Failed to emerge gnome-extra/gnome-commander-1.4.1, Log file:

>>>  '/var/tmp/portage/gnome-extra/gnome-commander-1.4.1/temp/build.log'


Reproducible: Always
Comment 1 Markus Rathgeb 2014-05-04 20:23:12 UTC
Don't know why, but I cannot add attachments.
I press 'Add an attachment', choose the file, add a description and a comment and press submit.
All I get is:
===
The webpage at https://bugs.gentoo.org/attachment.cgi might be temporarily down or it may have moved permanently to a new web address.
Error code: ERR_ACCESS_DENIED
===
Comment 2 Markus Rathgeb 2014-05-04 20:31:19 UTC
Created attachment 376370 [details]
emerge --info
Comment 3 Markus Rathgeb 2014-05-04 20:32:18 UTC
Created attachment 376372 [details]
build.log
Comment 4 Uwe Scholz 2014-05-05 09:31:50 UTC
Created attachment 376414 [details]
gnome-commander-1.4.1.ebuild

The solution is to switch from python-r1 to python-single-r1. The attached ebuild fixes that. 

After compiling, portage complains shows a warning about the unrecognized configure option "--with-poppler". This is an upstream bug and will be solved in v1.4.2 of Gnome Commander.
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2014-05-05 09:34:44 UTC
(In reply to Uwe Scholz from comment #4)
> Created attachment 376414 [details]
> gnome-commander-1.4.1.ebuild
> 
> The solution is to switch from python-r1 to python-single-r1. The attached
> ebuild fixes that. 
> 
> After compiling, portage complains shows a warning about the unrecognized
> configure option "--with-poppler". This is an upstream bug and will be
> solved in v1.4.2 of Gnome Commander.

Could you explain to me why this is the proposed solution? Does this package work with python-2 and python-3?

In the future, could you attach a diff from the current ebuild? It's easier for me to review the actual changes than reviewing the ebuild as a whole
Comment 6 Uwe Scholz 2014-05-05 10:06:19 UTC
(In reply to Markos Chandras from comment #5)
> Could you explain to me why this is the proposed solution? Does this package
> work with python-2 and python-3?

The package only works with python-2. The bug reporter had python-3 activated via make.conf and/or via "eselect python". Using the eclass python-r1 in the ebuild makes portage using python-3 for compiling the package, which lead to an error.

I by myself had python-2 selected in eselect till yesterday. I guess that's why the eclass python-r1 worked for me. Having python-3 activated via eselect today, I ran into the same error as the bug reporter.  

Using python-single-r1 as eclass the correct PYTHON_SINGLE_TARGET is requested for building the package (should be python-2.x).
 
> In the future, could you attach a diff from the current ebuild? It's easier
> for me to review the actual changes than reviewing the ebuild as a whole

Okay, I will do that in the future. I changed only line 9.
Comment 7 Markos Chandras (RETIRED) gentoo-dev 2014-05-05 10:25:50 UTC
+  05 May 2014; Markos Chandras <hwoarang@gentoo.org>
+  gnome-commander-1.4.1.ebuild:
+  Switch to python-single-r1 to avoid builds with python3. TThanks to Uwe Scholz
+  <u.scholz83@gmx.de> on bug #509574
+