Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 555320 - app-text/asciidoc-8.6.9-r1 installs /usr/bin/asciidoc with python3.3 shebang (was sys-fs/btrfs-progs-4.1 fails to compile with SyntaxError: invalid syntax)
Summary: app-text/asciidoc-8.6.9-r1 installs /usr/bin/asciidoc with python3.3 shebang ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Marc Joliet
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-19 08:11 UTC by Sven Müller
Modified: 2017-06-27 21:53 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,112.21 KB, text/plain)
2015-07-19 08:13 UTC, Sven Müller
Details
emerge --info (emerge_info.txt,8.47 KB, text/plain)
2015-07-19 08:14 UTC, Sven Müller
Details
/usr/bin/asciidoc (asciidoc,248.25 KB, text/x-python)
2015-07-20 19:11 UTC, Sven Müller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Müller 2015-07-19 08:11:17 UTC
btrfs-progs fails when calling asciidoc:

x86_64-pc-linux-gnu-gcc -march=core-avx2 -mcx16 -msahf -mmovbe -maes -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mbmi2 -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mxsave -mxsaveopt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=core-avx2 -fstack-protector -include config.h -DBTRFS_FLAT_INCLUDES -D_XOPEN_SOURCE=700 -fno-strict-aliasing -fPIC -o btrfs-debug-tree ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o root-tree.o dir-item.o file-item.o inode-item.o inode-map.o extent-cache.o extent_io.o volumes.o utils.o repair.o qgroup.o raid6.o free-space-cache.o list_sort.o props.o ulist.o qgroup-verify.o backref.o string-table.o task-utils.o inode.o file.o find-root.o btrfs-debug-tree.o libbtrfs.a \
	-Wl,-O1 -Wl,--as-needed -rdynamic -luuid  -lblkid  -lz  -llzo2 -L. -pthread 
    [LD]     btrfs-map-logical
  File "/usr/bin/asciidoc", line 101
    except KeyError, k: raise AttributeError, k
                   ^
SyntaxError: invalid syntax
x86_64-pc-linux-gnu-gcc -march=core-avx2 -mcx16 -msahf -mmovbe -maes -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mbmi2 -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mxsave -mxsaveopt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=core-avx2 -fstack-protector -include config.h -DBTRFS_FLAT_INCLUDES -D_XOPEN_SOURCE=700 -fno-strict-aliasing -fPIC -o btrfs-map-logical ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o root-tree.o dir-item.o file-item.o inode-item.o inode-map.o extent-cache.o extent_io.o volumes.o utils.o repair.o qgroup.o raid6.o free-space-cache.o list_sort.o props.o ulist.o qgroup-verify.o backref.o string-table.o task-utils.o inode.o file.o find-root.o btrfs-map-logical.o libbtrfs.a \
	-Wl,-O1 -Wl,--as-needed -rdynamic -luuid  -lblkid  -lz  -llzo2 -L. -pthread 
Makefile:119: recipe for target 'btrfs-mount.xml' failed
make[1]: *** [btrfs-mount.xml] Error 1
Makefile:161: recipe for target 'build-Documentation' failed
make: *** [build-Documentation] Error 2
make: *** Waiting for unfinished jobs....
 * ERROR: sys-fs/btrfs-progs-4.1::gentoo failed (compile phase):
 *   emake failed


Reproducible: Always
Comment 1 Sven Müller 2015-07-19 08:13:05 UTC
Created attachment 407126 [details]
build.log
Comment 2 Sven Müller 2015-07-19 08:14:57 UTC
Created attachment 407128 [details]
emerge --info
Comment 3 Sven Müller 2015-07-19 08:23:38 UTC
Played around with some options: 

The source of the problem is:
PYTHON_SINGLE_TARGET="python3_3"

Setting this to python-2.7 works.
Comment 4 Mike Gilbert gentoo-dev 2015-07-19 22:27:57 UTC
What version of app-text/asciidoc do you have installed?
Comment 5 Sven Müller 2015-07-20 05:49:45 UTC
8.6.9-r1
Comment 6 Mike Gilbert gentoo-dev 2015-07-20 18:32:24 UTC
Can you attach /usr/bin/asciidoc to this bug? I'm mainly interested in the shebang on the first line.
Comment 7 Sven Müller 2015-07-20 19:11:17 UTC
Created attachment 407292 [details]
/usr/bin/asciidoc

The Shebang of /usr/bin/asciidoc

#!/usr/bin/env python3.3

The python version seems to be correct.
Comment 8 Mike Gilbert gentoo-dev 2015-07-20 20:32:52 UTC
(In reply to Sven Müller from comment #7)

Thanks.

asciidoc should never have a python3.3 shebang; it is only compatible with python2.
Comment 9 Mike Gilbert gentoo-dev 2015-07-20 20:36:34 UTC
It looks like this would occur if you had installed asciidoc between 12 Jul 2015 and 19 Jul 2015.

  19 Jul 2015; Dirkjan Ochtman <djc@gentoo.org> asciidoc-8.6.9-r1.ebuild:
  Remove python 3.3, 3.4 compatibility again (bug 554786)

  12 Jul 2015; Dirkjan Ochtman <djc@gentoo.org> asciidoc-8.6.9-r1.ebuild:
  Add python 3.3, 3.4 compatibility (fixes bug 546110)


djc: Please revbump asciidoc so people don't randomly run into it. Keeping stable keywords should be fine.
Comment 10 Sven Müller 2015-07-21 06:20:32 UTC
(In reply to Mike Gilbert from comment #9)
> It looks like this would occur if you had installed asciidoc between 12 Jul
> 2015 and 19 Jul 2015.

That's correct. 

Is it necessary to test anything else with a new portage sync? Otherwise I'll stay with PYTHON_SINGLE_TARGET="python2_7". There were some other packages with some trouble with Python 3.3.
Comment 11 Marc Joliet 2017-06-27 21:53:20 UTC
Probably could've done so earlier, but closing now that app-text/asciidoc-8.6.9-r1 is gone.