Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 677954

Summary: app-portage/mirrorselect-2.2.4 - patch -p1 failed with /etc/portage/patches/app-portage/mirrorselect/mirrorselect.patch
Product: Portage Development Reporter: André Terpstra <andre>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description André Terpstra 2019-02-14 03:59:08 UTC
>>> Emerging (1 of 1) app-portage/mirrorselect-2.2.4::gentoo
 * mirrorselect-2.2.4.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                      [ ok ]
 * mirrorselect-test BLAKE2B SHA512 size ;-) ...                                                                                                                                                              [ ok ]
>>> Unpacking source...
>>> Unpacking mirrorselect-2.2.4.tar.gz to /var/tmp/portage/app-portage/mirrorselect-2.2.4/work
>>> Unpacking mirrorselect-test to /var/tmp/portage/app-portage/mirrorselect-2.2.4/work
unpack mirrorselect-test: file format not recognized. Ignoring.
>>> Source unpacked in /var/tmp/portage/app-portage/mirrorselect-2.2.4/work
>>> Preparing source in /var/tmp/portage/app-portage/mirrorselect-2.2.4/work/mirrorselect-2.2.4 ...
 * Adjusting to prefix /
 *   setup.py ...                                                                                                                                                                                             [ ok ]
 *   main.py ...                                                                                                                                                                                              [ ok ]
Now setting version... VERSION=2.2.4 /usr/bin/python3.7 setup.py set_version
running set_version
Setting version to 2.2.4
/var/tmp/portage/app-portage/mirrorselect-2.2.4/work/mirrorselect-2.2.4/mirrorselect/version.py: version = "2.2.4"

 * Applying mirrorselect.patch ...
2 out of 2 hunks FAILED -- saving rejects to file mirrorselect/selectors.py.rej                                                                                                                               [ !! ]
 * ERROR: app-portage/mirrorselect-2.2.4::gentoo failed (prepare phase):
 *   patch -p1  failed with /etc/portage/patches/app-portage/mirrorselect/mirrorselect.patch
 * 
 * Call stack:
 *               ebuild.sh, line  124:  Called src_prepare
 *             environment, line 2908:  Called distutils-r1_src_prepare
 *             environment, line  960:  Called python_prepare_all
 *             environment, line 2745:  Called distutils-r1_python_prepare_all
 *             environment, line  865:  Called default
 *      phase-functions.sh, line  868:  Called default_src_prepare
 *      phase-functions.sh, line  933:  Called __eapi6_src_prepare
 *             environment, line  225:  Called eapply_user
 *             environment, line 1133:  Called eapply '/etc/portage/patches/app-portage/mirrorselect/mirrorselect.patch'
 *             environment, line 1103:  Called _eapply_patch '/etc/portage/patches/app-portage/mirrorselect/mirrorselect.patch'
 *             environment, line 1041:  Called __helpers_die 'patch -p1  failed with /etc/portage/patches/app-portage/mirrorselect/mirrorselect.patch'
 *   isolated-functions.sh, line  119:  Called die
 * The specific snippet of code:
 *              die "$@"
 * 


My environment:

Portage 2.3.60 (python 3.7.0-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-8.2.0, glibc-2.28-r5, 4.20.8-gentoo-APT-2019 x86_64)
=================================================================
System uname: Linux-4.20.8-gentoo-APT-2019-x86_64-Intel-R-_Core-TM-_i5-4570_CPU_@_3.20GHz-with-gentoo-2.6
KiB Mem:    16267228 total,  12781572 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Thu, 14 Feb 2019 03:30:01 +0000
Head commit of repository gentoo: 9fc0369bddd013bf5392923a9fec2af887d7112b
sh bash 5.0_p2
ld GNU ld (Gentoo 2.31.1 p5) 2.31.1
app-shells/bash:          5.0_p2::gentoo
dev-lang/perl:            5.28.0::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.5-r1::gentoo, 3.6.6::gentoo, 3.7.0::gentoo
dev-util/cmake:           3.13.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.40.3::gentoo
sys-apps/sandbox:         2.15::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r4::gentoo
sys-devel/gcc:            8.2.0-r6::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.20::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="nl_NL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa alsa-plugin amd64 berkdb branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif glamor gpm gtk iconv icu ipv6 jpeg kde kipi kwallet lcms ldap libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio python qml qt5 readline sdl seccomp semantic-desktop spell sqlite ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_5 python3_6 python3_7" RUBY_TARGETS="ruby24 ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="intel i965 radeon radeonsi amdgpu" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-02-14 09:24:31 UTC
/etc/portage/patches/app-portage/mirrorselect/mirrorselect.patch

That's your local patch.
Comment 2 André Terpstra 2019-02-14 20:23:11 UTC
Oh well I am sorry not having looked well enough :)

Have removed it of course; can't remember where it came from.