After the install of backintime I got the following error: * The new Python eclasses expect the compiled Python files to * be controlled by the Package Manager. For this reason, * the python_optimize function can be used only during src_* phases * (src_install most commonly) and not during pkg_* phases. * ERROR: app-backup/backintime-1.0.24-r1 failed (postinst phase): * python_optimize is not to be used in pre/post* phases * Reproducible: Always Portage 2.2.0_alpha188 (default/linux/amd64/13.0/desktop/gnome, gcc-4.6.3, glibc-2.15-r3, 3.8.13-gentoo x86_64) ================================================================= System uname: Linux-3.8.13-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.2 KiB Mem: 8109664 total, 3065616 free KiB Swap: 0 total, 0 free Timestamp of tree: Sat, 13 Jul 2013 08:30:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 app-shells/bash: 4.2_p45 dev-java/java-config: 2.1.12-r1 dev-lang/python: 2.7.5, 3.2.5-r1 dev-util/cmake: 2.8.10.2-r2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.10.3, 1.11.6, 1.12.6 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.6.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.7 (virtual/os-headers) sys-libs/glibc: 2.15-r3 Repositories: gentoo local-repo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -fweb -ftracer" 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/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -fweb -ftracer" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=n" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/" LANG="de_DE@euro" LC_ALL="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 64bit 7zip X a52 aac acl acpi alsa amd64 apache2 apm apng applet aqua_theme asf async audio automount avahi bash-completion berkdb bonobo branding bzip2 c++ cairo calendar cdda cddb cdio cdr cdrom cgi cli colord consolekit cpudetection cracklib crypt css ctype cups custom-optimization cvs cvsgraph cxx dbus dhcp directfb divx divx4linux dpms dri dts dvb dvbplayer dvd dvdr eds emboss emerald emul-linux-x86 encode evo exif ext-png fam fat fbcon fbcondecor fbsplash ffmpeg firefox flac flash fortran fpx ftp g3dvl gaim gdbm gecko gedit gif gimp git glade glitz gnome gnome-keyring gnome-online-accounts gnome-print gnomecanvas gnomedb gnutls gpm gps graphviz grub gs gsl gstreamer gtk gtkhtml gzip h323 hddtemp hfs icons iconv icq id3 ieee1394 imap inkjar introspection ipsec ipv6 java jfs jpeg jpeg2k kvm lame lcms ldap libnotify libsecret libvisual live lm_sensors logitech-mouse mad math matroska ming mmx mmxext mng mod modules moonlight mouse mozbranding mozilla moznopango mp2 mp3 mp4 mp4live mpd-mad mpe mpeg mpeg2 mpeg4 mplayer mplayer-bin mudflap multilib musepack mysql nautilus ncurses net nfs nfsidmap nfsv4 nfsv41 nls no-seamonkey nptl nsplugin ntfs nvidia ogg openal opencl opengl openmp opus pam pango pcap pcapnav pcre pdf plotutils png policykit postscript ppds pulseaudio python qt3support qt4 rar readline real samba sblive scanner sdl sensord session sftp simplexml skins slang smp socialweb spell sql sqlite sse sse-filters sse2 ssl startup-notification stream svg svgz tcpd themes theora thesaurus threads thunderbird tidy tiff totem transcode truetype tv_check type1 udev udisks unicode upower usb userlocales utf8 vcd vdpau vdr vfat video vim vim-syntax vorbis wav webdav wifi winbind wireshark wma wmf wxwidgets x264 xcb xfs xine xinerama xml xmldoclet xmlreader xmlwriter xpm xprint xscreensaver xsettings xsl xslt xulrunner xv xvid zeroconf zip zlib" 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" 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="kexi words flow plan sheets stage tables krita karbon braindump author" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
ping
Index: backintime-1.0.24-r1.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/app-backup/backintime/backintime-1.0.24-r1.ebuild,v retrieving revision 1.2 diff -u -B -r1.2 backintime-1.0.24-r1.ebuild --- backintime-1.0.24-r1.ebuild 28 Jul 2013 08:12:45 -0000 1.2 +++ backintime-1.0.24-r1.ebuild 2 Jan 2014 15:43:56 -0000 @@ -61,17 +61,6 @@ -i gnome/backintime-gnome \ -i kde4/backintime-kde4 || die - backintime_variants="common $(usex gnome gnome "") $(usex kde kde4 '')" - backintime_run() { - local variant - for variant in ${backintime_variants} ; do - einfo "$variant: run \"$@\"" - pushd "${S}"/${variant} || die - "${@}" || die - popd - done - } - if [ -n ${LINGUAS+x} ] ; then cd common/po || die for po in *.po ; do @@ -82,18 +71,27 @@ fi } +backintime_run() { + local variant + for variant in ${backintime_variants} ; do + pushd "${S}"/${variant} || die + default ${@} + popd + done +} + src_configure() { - backintime_run econf + backintime_variants="common $(usex gnome gnome "") $(usex kde kde4 '')" + + backintime_run } src_compile() { - backintime_run emake + backintime_run } src_install() { - backintime_run emake DESTDIR="${D}" install -} - -pkg_postinst() { + backintime_run DESTDIR="${D}" install python_optimize "${D}" + python_fix_shebang "${D}" } This should likely fix the other fail bugs, too.
Created attachment 366782 [details, diff] backintime-1.0.24-r1-python.patch Copy paste fail
Created attachment 366868 [details, diff] backintime-1.0.24-r2.diff simply to resolve this error message. I was on IRC yesterday and offered to help a user named luyin to modify his ebuild so he could install to his. This patch allowed the ebuild to install without issue.
Created attachment 366870 [details, diff] backintime-1.0.24-r2.diff to patch runtime error After using the applying the previous patch, upon runtime, luyin received a runtime error that was traced to the version of dev-python/keyring installed. This forces <dev-python/keyring-3
*** Bug 508664 has been marked as a duplicate of this bug. ***
same problem now with the new version 1.0.34 now in the tree
+*backintime-1.0.36 (15 Aug 2014) + + 15 Aug 2014; Michael Weber <xmw@gentoo.org> +backintime-1.0.36.ebuild, + -backintime-1.0.34.ebuild, -backintime-1.0.8-r1.ebuild, + -backintime-1.0.8.ebuild, backintime-1.0.24-r1.ebuild: + Drop old, fix python_optimize invocation (bug 476776) and version bump (bug + 519810), thanks Christian Strahl. +
(In reply to NP-Hardass from comment #5) > Created attachment 366870 [details, diff] [details, diff] > backintime-1.0.24-r2.diff to patch runtime error > > After using the applying the previous patch, upon runtime, luyin received a > runtime error that was traced to the version of dev-python/keyring > installed. This forces <dev-python/keyring-3 I need some time with a gnome/kde box to test the keyring-3 issue, keepng this open
(In reply to Michael Weber from comment #9) > (In reply to NP-Hardass from comment #5) > > Created attachment 366870 [details, diff] [details, diff] [details, diff] > > backintime-1.0.24-r2.diff to patch runtime error > > > > After using the applying the previous patch, upon runtime, luyin received a > > runtime error that was traced to the version of dev-python/keyring > > installed. This forces <dev-python/keyring-3 > > I need some time with a gnome/kde box to test the keyring-3 issue, keepng > this open I cannot reproduce the problem, please open a new bug for this subject if the problem persists in 1.0.36.