Since upgrading perl to 5.12.2 and running perl-cleaner to rebuild all affected packages, Google-SafeBrowsing-UpdateRequest CRON job is failing every time with the following messages Use of uninitialized value $clientkey in concatenation (.) or string at /usr/lib/perl5/vendor_perl/5.12.2/Net/Google/SafeBrowsing/UpdateRequest.pm line 247. Use of uninitialized value $clientkey in concatenation (.) or string at /usr/lib/perl5/vendor_perl/5.12.2/Net/Google/SafeBrowsing/UpdateRequest.pm line 247. MAC does not match, digest: '1q+/kbnAHgewR7ELad6iUQ==', MAC: 'wxGodDWuLb/vsQ2qHyaCOA==' at /usr/lib/perl5/vendor_perl/5.12.2/Net/Google/SafeBrowsing/UpdateRequest.pm line 234. Update failed emerge --info =dev-perl/Net-Google-SafeBrowsing-UpdateRequest-1.06 Portage 2.2_rc79 (default/linux/x86/10.0/desktop, gcc-4.4.4, glibc-2.12.1-r1, 2.6.36-rc3-00396-gbe6200a i686) ================================================================= System Settings ================================================================= System uname: Linux-2.6.36-rc3-00396-gbe6200a-i686-Intel-R-_Core-TM-2_CPU_6700_@_2.66GHz-with-gentoo-2.0.1 Timestamp of tree: Sat, 11 Sep 2010 16:45:02 +0000 app-shells/bash: 4.1_p7 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.5-r3, 3.1.2-r4 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.3 sys-apps/sandbox: 2.3-r1 sys-devel/autoconf: 2.13, 2.67 sys-devel/automake: 1.6.3-r1, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.3.5, 4.4.4-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.35 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=native -mtune=native -pipe -ggdb" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/games/angband/edit/ /etc/gconf /etc/gentoo-release /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" CXXFLAGS="-O2 -march=native -mtune=native -pipe -ggdb" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y" FEATURES="assume-digests buildsyspkg distlocks fixlafiles fixpackages installsources news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.first-world.info/ http://de-mirror.org/distro/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.tiscali.nl/" LANG="en_GB.UTF-8" LC_ALL="en_GB.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en_GB en fr_FR fr" 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" PORTDIR_OVERLAY="/var/lib/layman/perl-experimental /var/lib/layman/sunrise /var/lib/layman/x11 /var/lib/layman/sping /var/lib/layman/x11 /var/lib/layman/kde /usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi aim alsa apache2 audiofile avi bash-completion berkdb bluetooth bonobo branding browserplugin bzip2 bzlib cairo caps cdda cddb cdparanoia cdr cjk cli consolekit cracklib crypt cups curl cvs cxx dbus directfb doc dri dts dv dvd dvdr dvdread eds emacs emboss encode esd ethereal examples exif expat fam fbcon ffmpeg fftw flac fontconfig foomaticdb fortran ftp gcj gd gdbm geoip gif glut gmp gnome gnome-keyring gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal htmlhandbook iconv icq icu idn imagemagick imlib ipv6 jabber jack java javascript jbig jce jpeg jpeg2k junit kde kdehiddenvisibility ladspa latex lcms ldap leim libgda libnotify libsamplerate libwww lm_sensors logrotate lua mad matroska mbox mikmod milter mime mmap mmx mng modplug modules mono mozilla mp3 mp4 mpeg mpi mplayer msn mtp mudflap musepack mysql ncurses nls nptl nptlonly nsplugin odbc offensive ogg oggvorbis openal opengl openmp oscar oss pam pango pcntl pcre pdf perl php plasma png policykit postgres ppds pppd profile pulseaudio python qt3support qt4 quicktime raw readline recode reflection ruby samba sasl sdl semantic-desktop session sharedmem sndfile snmp soap sockets sox speex spell sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification subversion svg sysfs sysvipc tcl tcltk tcpd theora threads tiff tk truetype unicode usb v4l v4l2 vim-syntax vorbis wavpack win32codecs wmf wxwindows x264 x86 xattr xcb xcomposite xface xft xine xml xml2 xorg xulrunner xv xvid yahoo zlib" ALSA_CARDS="hda-intel" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en fr_FR fr" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa fbdev vga v4l r300" 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, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= dev-perl/Net-Google-SafeBrowsing-UpdateRequest-1.06 was built with the following: USE="-test"
Seconded
I find this too. It looks like as soon as the variable $self->{tabledata_ref} is evaluated near line 228, the perl interpreter "loses" the value of $self->{db}->{$CLIENTKEY}. Could this be a perl bug?
I just did some more debugging. This error happens only while updating the list "goog-malware-hash"; it works fine when updating "goog-black-hash".
Created attachment 259856 [details, diff] Patch to disable MAC verification
I made the above patch to disable MAC verification, which should be applied to /usr/sbin/update_google_safebrowsing.sh in ebuild dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing-1.03-r1 as an interim fix.
Created attachment 259857 [details, diff] Updated patch to disable MAC verification ...but my patch was buggy. Here is one that is capable of patching the distributed version of that file.
Is anyone still interested in this?
# Andreas K. Hüttel <dilfridge@gentoo.org> (11 Mar 2017) # Fails since upgrade to dev-lang/perl-5.12 (!). # Removal in 30 days. Bug 336898. dev-perl/Net-Google-SafeBrowsing-UpdateRequest dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing
commit 1faace767603328ab172bf8ce80920ca2df3069c Author: Michał Górny <mgorny@gentoo.org> AuthorDate: Tue Apr 18 17:01:46 2017 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: Tue Apr 18 17:08:41 2017 dev-perl/Net-Google-SafeBrowsing-UpdateRequest: Remove last-rited pkg, #336898 commit 52c8ac4c90ed78a2aafba0e0da21e4c2dc33ef11 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: Tue Apr 18 17:00:38 2017 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: Tue Apr 18 17:08:39 2017 dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing: Remove last-rited pkg, #336898