Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 787305 - x11-libs/wxGTK-3.0.5.1 - rm: cannot remove /.../wxrc: No such file or directory
Summary: x11-libs/wxGTK-3.0.5.1 - rm: cannot remove /.../wxrc: No such file or directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-05-01 08:58 UTC by Toralf Förster
Modified: 2021-05-13 13:38 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.05 KB, text/plain)
2021-05-01 08:58 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,151.72 KB, text/plain)
2021-05-01 08:58 UTC, Toralf Förster
Details
environment (environment,77.75 KB, text/plain)
2021-05-01 08:58 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,18.94 KB, application/x-bzip)
2021-05-01 08:58 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,4.05 KB, application/x-bzip)
2021-05-01 08:58 UTC, Toralf Förster
Details
x11-libs:wxGTK-3.0.5.1:20210501-004312.log (x11-libs:wxGTK-3.0.5.1:20210501-004312.log,135.27 KB, text/plain)
2021-05-01 08:58 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 2021-05-01 08:58:46 UTC
 ------------------------------------------------------
 
rm: cannot remove '/var/tmp/portage/x11-libs/wxGTK-3.0.5.1/image/usr/bin/wxrc': No such file or directory
 * ERROR: x11-libs/wxGTK-3.0.5.1::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib_hardened-20210427-181545

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-11.1.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.8.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.51.0
  [2]   rust-1.51.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat May  1 00:07:02 UTC 2021

emerge -qpvO x11-libs/wxGTK
[ebuild  N    ] x11-libs/wxGTK-3.0.5.1  USE="sdl -X -debug -doc -gstreamer -libnotify -opengl -tiff -webkit"
Comment 1 Toralf Förster gentoo-dev 2021-05-01 08:58:47 UTC
Created attachment 704838 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-01 08:58:49 UTC
Created attachment 704841 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-05-01 08:58:50 UTC
Created attachment 704844 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-05-01 08:58:51 UTC
Created attachment 704847 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-05-01 08:58:52 UTC
Created attachment 704850 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-05-01 08:58:54 UTC
Created attachment 704853 [details]
x11-libs:wxGTK-3.0.5.1:20210501-004312.log
Comment 7 Mart Raudsepp gentoo-dev 2021-05-01 10:27:28 UTC
Sergey, maybe you could take a look at this?
Comment 8 Sergey Torokhov 2021-05-01 11:01:06 UTC
Mart, ok. I will try investigate this.
Comment 9 Sergey Torokhov 2021-05-01 13:24:36 UTC
(In reply to Mart Raudsepp from comment #7)
> Sergey, maybe you could take a look at this?

The file '/usr/bin/wxrc' doesn't exist if USE="-X".
So the command

> rm "${ED}"/usr/bin/wx{-config,rc} || die
could be replaced with smth. like

> rm "${ED}"/usr/bin/wx-config || die
> if use X ; then
> 	rm "${ED}"/usr/bin/wxrc || die
> fi
or with shorter

> rm "${ED}"/usr/bin/wx-config || die
> use X && { rm "${ED}"/usr/bin/wxrc || die; } 

'x11-libs/wxGTK-3.0.4-r303' is affected this issue too due to there is "|| die" was appended after removing command.

'x11-libs/wxGTK-3.0.4-r302' isn't affected.
Comment 10 Larry the Git Cow gentoo-dev 2021-05-13 13:38:37 UTC
The bug has been closed via the following commit(s):

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

commit 22006ad103f2ac936c3bae11d70f6f8a3205a8b7
Author:     Sergey Torokhov <torokhov-s-a@yandex.ru>
AuthorDate: 2021-05-13 13:38:20 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-05-13 13:38:20 +0000

    x11-libs/wxGTK: fix USE="-X" removing of '/usr/bin/wxrc'
    
    Closes: https://github.com/gentoo/gentoo/pull/20627
    Closes: https://bugs.gentoo.org/787305
    Acked-by: Mart Raudsepp <leio@gentoo.org>
    Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
    Signed-off-by: David Seifert <soap@gentoo.org>

 x11-libs/wxGTK/wxGTK-3.0.4-r303.ebuild | 3 ++-
 x11-libs/wxGTK/wxGTK-3.0.5.1.ebuild    | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)