Summary: | app-backup/rdiff-backup-1.2.8 outputs DeprecationWarning with python 2.6 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jim Faulkner <dogshu> |
Component: | Current packages | Assignee: | App-Backup Team <app-backup> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexh, karsten.renhak, mike, mina |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Patch for the os.popen2 DeprecationWarning
Modified ebuild to apply patch |
Description
Jim Faulkner
2009-11-02 23:43:34 UTC
can confirm this behavior on a x86 system here's the rdiff-backup output when I backing up on an remote machine via SSH: /usr/lib/python2.6/site-packages/rdiff_backup/SetConnections.py:148: DeprecationWarning: os.popen2 is deprecated. Use the subprocess module. stdin, stdout = os.popen2(remote_cmd) emerge --info Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r8 i686) ================================================================= System uname: Linux-2.6.30-gentoo-r8-i686-Intel-R-_Core-TM-2_CPU_6300_@_1.86GHz-with-gentoo-1.12.13 Timestamp of tree: Mon, 09 Nov 2009 06:45:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.6.2-r1 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.tu-ilmenau.de/mirror/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://pandemonium.tiscali.de/pub/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo/" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1" LINGUAS="de en en_GB" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="7zip X a52 aac acl acpi activefilter additions adns alsa bash-completion berkdb bluetooth branding bzip2 cairo cdaudio cdda cdparanoia cdr chm cli connectionstatus consolekit cracklib crypt css cups custom-optimization dahdi dbus directfb divx dri dts dvd dvdnav dvdr dvdread ebook emboss emf enca encode evo exif extra fam fastcgi fbcon ffmpeg firefox flac foomaticdb fortran fping fpx ftp gammu gd gdbm geoip gif git glitz gmedia gpm graphics graphviz gs gstreamer gzip h323 hal handbook history humanities iconv idn imagemagick inotify ipv6 jabber java java5 java6 jbig jce jingle jpeg jpeg2k kde kdehiddenvisibility kerberos kipi kpathsea lame lastfm latex lcms libnotify lm_sensors logrotate mad matroska mbox md5sum midi mikmod mmx mmxext mng modules mp2 mp3 mp4 mpeg mplayer msn mudflap musepack musicbrainz mysql mysqli ncurses nls nodrm nptl nptlonly nsplugin ntfs obex ogg omega opengl openmp oscar pam pcre pdf perl plotutils png postscript ppds pppd publishers python qt3support qt4 quicktime quotas rar rdesktop rdp readline realmedia reflection samba science scrobbler sdl session sip slang slp smbclient speex spell spl sql sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification subversion svg symlink sysfs syslog taglib tcpd templates tex4ht theora threadsafe thunar tiff tk truetype type1 unicode usb vim-syntax vorbis wav webkit win32codecs wma wmf wmp x264 x86 xattr xcomposite xetex xface xine xinerama xml xorg xosd xscreensaver xterm xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_GB" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY I'll second this, I have a few hundred rdiff-backup jobs and this is clogging up the mailbox takingcare of the crontabs. Created attachment 216585 [details, diff]
Patch for the os.popen2 DeprecationWarning
This is the patch I've been using to keep rdiff-backup-1.2.8 quiet.
Created attachment 216587 [details, diff]
Modified ebuild to apply patch
And this is the modification I made to the ebuild to apply it.
Just wanted to add a "me too", the patches work just fine for me. :) It's been half a year, is there no way to get this patch rolled into a -r1 realease? InCVS. |