Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 758770 - dev-util/gtk-doc: hardcodes temporary path into shebang (was: xfce-base/libxfce4util-4.15.5 : /.../sh: /.../gtkdoc-rebase: /.../python3: bad interpreter: No such file or directory)
Summary: dev-util/gtk-doc: hardcodes temporary path into shebang (was: xfce-base/libxf...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 758722 758731 758734 758773 758803 759106 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-12-06 10:15 UTC by Toralf Förster
Modified: 2021-11-22 15:46 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.17 KB, text/plain)
2020-12-06 10:15 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,155.63 KB, text/plain)
2020-12-06 10:15 UTC, Toralf Förster
Details
environment (environment,62.01 KB, text/plain)
2020-12-06 10:15 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,14.98 KB, application/x-bzip)
2020-12-06 10:15 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,11.88 KB, application/x-bzip)
2020-12-06 10:15 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,21.95 KB, application/x-bzip)
2020-12-06 10:15 UTC, Toralf Förster
Details
xfce-base:libxfce4util-4.15.5:20201206-075754.log (xfce-base:libxfce4util-4.15.5:20201206-075754.log,55.43 KB, text/plain)
2020-12-06 10:15 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-12-06 10:15:28 UTC
 /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 644 ./html/up-insensitive.png
 /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 644 ./html/up.png
/bin/sh: /usr/bin/gtkdoc-rebase: /var/tmp/portage/dev-util/gtk-doc-1.33.1/temp/python3.8/bin/python3: bad interpreter: No such file or directory
make[2]: *** [Makefile:798: install-data-local] Error 126
make[2]: Leaving directory '/var/tmp/portage/xfce-base/libxfce4util-4.15.5/work/libxfce4util-4.15.5/docs'
make[1]: *** [Makefile:541: install-am] Error 2

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-20201201-191728

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
/usr/lib/llvm/11
11.0.0
Available Python interpreters, in order of preference:
  [1]   python3.9
  [2]   python3.8 (fallback)
  [3]   python2.7 (fallback)
Available Rust versions:
  [1]   rust-1.48.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8 

The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sun Dec  6 06:35:34 AM UTC 2020

emerge -qpvO xfce-base/libxfce4util
[ebuild  N    ] xfce-base/libxfce4util-4.15.5  USE="-introspection -vala"
Comment 1 Toralf Förster gentoo-dev 2020-12-06 10:15:29 UTC
Created attachment 676960 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-12-06 10:15:31 UTC
Created attachment 676963 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-12-06 10:15:32 UTC
Created attachment 676966 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-12-06 10:15:33 UTC
Created attachment 676969 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-12-06 10:15:34 UTC
Created attachment 676972 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-12-06 10:15:36 UTC
Created attachment 676975 [details]
temp.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-12-06 10:15:37 UTC
Created attachment 676978 [details]
xfce-base:libxfce4util-4.15.5:20201206-075754.log
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-12-06 10:24:07 UTC
$ head -1 /usr/bin/gtkdoc-rebase
#!/tmp/portage/dev-util/gtk-doc-1.33.1/temp/python3.8/bin/python3
Comment 9 Larry the Git Cow gentoo-dev 2020-12-06 10:38:30 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d7ebf89e16ebd016b926b2df9f7dfd2254a35e5

commit 5d7ebf89e16ebd016b926b2df9f7dfd2254a35e5
Author:     Mart Raudsepp <leio@gentoo.org>
AuthorDate: 2020-12-06 10:34:13 +0000
Commit:     Mart Raudsepp <leio@gentoo.org>
CommitDate: 2020-12-06 10:34:13 +0000

    package.mask: Mask dev-util/gtk-doc-1.33.1 due to issues in meson port
    
    Python paths all messed up, so gtkdoc-scan, gtkdoc-rebase and so on all
    non-functional.
    
    Bug: https://bugs.gentoo.org/758770
    Bug: https://bugs.gentoo.org/758773
    Bug: https://bugs.gentoo.org/758722
    Bug: https://bugs.gentoo.org/758731
    Bug: https://bugs.gentoo.org/758734
    Signed-off-by: Mart Raudsepp <leio@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 10 Mart Raudsepp gentoo-dev 2020-12-06 10:42:15 UTC
*** Bug 758773 has been marked as a duplicate of this bug. ***
Comment 11 Mart Raudsepp gentoo-dev 2020-12-06 10:42:59 UTC
*** Bug 758722 has been marked as a duplicate of this bug. ***
Comment 12 Mart Raudsepp gentoo-dev 2020-12-06 10:43:05 UTC
*** Bug 758731 has been marked as a duplicate of this bug. ***
Comment 13 Mart Raudsepp gentoo-dev 2020-12-06 10:43:12 UTC
*** Bug 758734 has been marked as a duplicate of this bug. ***
Comment 14 Larry the Git Cow gentoo-dev 2020-12-06 11:22:07 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=107e8876cfe50dcd1ca12f24f3de119b7e6da7d5

commit 107e8876cfe50dcd1ca12f24f3de119b7e6da7d5
Author:     Mart Raudsepp <leio@gentoo.org>
AuthorDate: 2020-12-06 11:20:35 +0000
Commit:     Mart Raudsepp <leio@gentoo.org>
CommitDate: 2020-12-06 11:21:52 +0000

    profiles/base/package.use.mask: Mask dev-libs-2.66*/glib[gtk-doc]
    
    Bug: https://bugs.gentoo.org/754372
    Bug: https://bugs.gentoo.org/758770
    Signed-off-by: Mart Raudsepp <leio@gentoo.org>

 profiles/base/package.use.mask | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 15 Larry the Git Cow gentoo-dev 2020-12-06 17:52:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4db412b4dbb3cee5b343251bf8018c64b0f5199a

commit 4db412b4dbb3cee5b343251bf8018c64b0f5199a
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2020-12-06 17:33:04 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2020-12-06 17:51:59 +0000

    dev-util/gtk-doc: Fix python shebangs
    
    Closes: https://bugs.gentoo.org/758770
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 dev-util/gtk-doc/{gtk-doc-1.33.1.ebuild => gtk-doc-1.33.1-r1.ebuild} | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Comment 16 Maxim Britov 2020-12-08 09:09:55 UTC
(In reply to Larry the Git Cow from comment #15)
> The bug has been closed via the following commit(s):
> 
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=4db412b4dbb3cee5b343251bf8018c64b0f5199a

This change
sed -i -e 's:^#!.*:#!/usr/bin/env python3:' "${ED}"/usr/bin/* || die
fails /usr/bin/gtkdocize which not python script


File "/usr/bin/gtkdocize", line 3
    progname=`echo "$0" | sed 's%^.*/%%'`
             ^
SyntaxError: invalid syntax

$ head -1 /usr/bin/gtkdocize
#!/usr/bin/env python3.9
Comment 17 Larry the Git Cow gentoo-dev 2020-12-08 14:12:15 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4b5f6d3728cd58098c7cdbc062b30493f2d2987

commit d4b5f6d3728cd58098c7cdbc062b30493f2d2987
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2020-12-08 14:11:46 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2020-12-08 14:11:58 +0000

    dev-util/gtk-doc: More shebang fixing
    
    Bug: https://bugs.gentoo.org/758770
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 .../gtk-doc/{gtk-doc-1.33.1-r2.ebuild => gtk-doc-1.33.1-r3.ebuild}    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 18 Matt Turner gentoo-dev 2020-12-08 14:12:37 UTC
(In reply to Maxim Britov from comment #16)
> (In reply to Larry the Git Cow from comment #15)
> > The bug has been closed via the following commit(s):
> > 
> > https://gitweb.gentoo.org/repo/gentoo.git/commit/
> > ?id=4db412b4dbb3cee5b343251bf8018c64b0f5199a
> 
> This change
> sed -i -e 's:^#!.*:#!/usr/bin/env python3:' "${ED}"/usr/bin/* || die
> fails /usr/bin/gtkdocize which not python script
> 
> 
> File "/usr/bin/gtkdocize", line 3
>     progname=`echo "$0" | sed 's%^.*/%%'`
>              ^
> SyntaxError: invalid syntax
> 
> $ head -1 /usr/bin/gtkdocize
> #!/usr/bin/env python3.9

Thanks for letting me know. Fixed.
Comment 19 Matt Turner gentoo-dev 2020-12-11 19:30:19 UTC
*** Bug 759106 has been marked as a duplicate of this bug. ***
Comment 20 Akinori Hattori gentoo-dev 2021-11-22 15:46:11 UTC
*** Bug 758803 has been marked as a duplicate of this bug. ***