Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 462532 - net-misc/electrum-1.7 - src_prepare(): rm: cannot remove ‘lib/gui.py’: No such file or directory
Summary: net-misc/electrum-1.7 - src_prepare(): rm: cannot remove ‘lib/gui.py’: No suc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-03-20 19:36 UTC by Miles Priestman
Modified: 2013-03-22 11:24 UTC (History)
3 users (show)

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


Attachments
Diff that fixes attempted removal (electrum-1.7.diff,543 bytes, patch)
2013-03-20 19:46 UTC, Miles Priestman
Details | Diff
Complete build.log (build.log,1.63 KB, text/plain)
2013-03-20 19:52 UTC, Miles Priestman
Details
Patch to fix electrum-1.7.ebuild when building with USE=-gtk or USE=-qt (electrum-1.7.ebuild.patch,605 bytes, patch)
2013-03-22 01:01 UTC, Maks Verver
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Miles Priestman 2013-03-20 19:36:23 UTC
Reproducibility:
Always

Steps to reproduce:
1. Attempt to emerge =net-misc/electrum-1.7

emerge --info '=net-misc/electrum-1.7'
http://sprunge.us/QQLi

emerge -pqv '=net-misc/electrum-1.7'
[ebuild  N    ] net-misc/electrum-1.7  USE="qt4 -gtk" LINGUAS="-br -cs -de -eo -es -fr -it -lv -nl -ru -sl -vi -zh" PYTHON_TARGETS="python2_7 -python2_6" 

complete build log:
http://sprunge.us/LiDU
Comment 1 Miles Priestman 2013-03-20 19:38:42 UTC
Portage 2.3.5-r7 (funtoo/1.0/linux-gnu/arch/x86-64bit, gcc-4.6.3, glibc-2.15-r3, 3.8.2-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.8.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-3517U_CPU_@_1.90GHz-with-gentoo-2.2.0
KiB Mem:     3888048 total,   1372388 free
KiB Swap:   18463232 total,  18463232 free
Timestamp of tree: Wed, 20 Mar 2013 05:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r1000, 3.2.3-r1000
dev-util/cmake:           2.8.10.2-r1
sys-apps/baselayout:      2.2.0-r4
sys-apps/openrc:          0.10.2-r7
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.5-r1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo last-hope hasufell
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=corei7 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="rsync://mirror.bytemark.co.uk/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LANG="en_GB.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="en_GB en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/last-hope /var/lib/layman/hasufell"
SYNC="rsync://rsync1.uk.gentoo.org/gentoo-portage"
SYNC_USER="root"
USE="X acl alsa amd64 apng berkdb bzip2 cdr colord cracklib crypt cups cxx dbus dri dvd dvdr dvdread eds evo flac gdbm gif gnome gnome-keyring gpm gstreamer gtk iconv icu introspection ipv6 jpeg lame mad mmx modules mp3 mpeg mudflap multilib nautilus ncurses nls nptl ogg opengl openmp pam pcre png policykit pppd pulseaudio python readline resolvconf sse sse2 ssl tcpd tiff truetype udev unicode vorbis wavpack xml zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias authn_core authz_core socache_shmcb unixd" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en" PHP_TARGETS="php5-3" PYTHON_ABIS="2.7 3.2" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="epson2" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK
Comment 2 Miles Priestman 2013-03-20 19:46:50 UTC
Created attachment 342780 [details, diff]
Diff that fixes attempted removal

Adds the -f flag to the rm command so that the deletion of lib/gui.py won't cause a fatal error if it doesn't exist
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-03-20 19:50:29 UTC
Please attach the entire build log to this bug report.
Comment 4 Miles Priestman 2013-03-20 19:50:58 UTC
Yes, net-misc/electrum-1.7

Sorry this is the first time I've submitted a bug to gentoo, so sorry for anything I haven't included
Comment 5 Miles Priestman 2013-03-20 19:52:28 UTC
Created attachment 342782 [details]
Complete build.log
Comment 6 Anthony Basile gentoo-dev 2013-03-21 17:11:22 UTC
(In reply to comment #2)
> Created attachment 342780 [details, diff] [details, diff]
> Diff that fixes attempted removal
> 
> Adds the -f flag to the rm command so that the deletion of lib/gui.py won't
> cause a fatal error if it doesn't exist

Thanks for the report Miles.  Adding -f isn't the right fix.  Its not finding the right file because upstream renamed stuff so I was too hasty in bumping the ebuild (I didn't test USE=qt).  The correct fix would be to find the files we do want to remove if !gtk or !qt.  In fact, not having the -f in rm caught the problem.

I'll fix this in a bit.
Comment 7 Miles Priestman 2013-03-21 17:15:44 UTC
(In reply to comment #6)
> (In reply to comment #2)
> > Created attachment 342780 [details, diff] [details, diff] [details, diff]
> > Diff that fixes attempted removal
> > 
> > Adds the -f flag to the rm command so that the deletion of lib/gui.py won't
> > cause a fatal error if it doesn't exist
> 
> Thanks for the report Miles.  Adding -f isn't the right fix.  Its not
> finding the right file because upstream renamed stuff so I was too hasty in
> bumping the ebuild (I didn't test USE=qt).  The correct fix would be to find
> the files we do want to remove if !gtk or !qt.  In fact, not having the -f
> in rm caught the problem.
> 
> I'll fix this in a bit.

Ah OK, thanks for looking at this.
Glad I could help in my tiny way even if in the wrong direction.
Comment 8 Maks Verver 2013-03-22 01:01:45 UTC
Created attachment 342874 [details, diff]
Patch to fix electrum-1.7.ebuild when building with USE=-gtk or USE=-qt
Comment 9 Anthony Basile gentoo-dev 2013-03-22 11:24:06 UTC
(In reply to comment #8)
> Created attachment 342874 [details, diff] [details, diff]
> Patch to fix electrum-1.7.ebuild when building with USE=-gtk or USE=-qt

+  22 Mar 2013; Anthony G. Basile <blueness@gentoo.org> electrum-1.7.ebuild:
+  Fix files deleted for USE=qt or gtk, thanks Maks Verver, bug #462532