>>> Emerging (4 of 27) net-analyzer/net-snmp-5.4.2.1-r3 * net-snmp-5.4.2.1.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * CPV: net-analyzer/net-snmp-5.4.2.1-r3 * REPO: gentoo * USE: X amd64 bzip2 elibc_glibc ipv6 kernel_linux lm_sensors multilib perl python ssl tcpd userland_GNU zlib >>> Unpacking source... >>> Unpacking net-snmp-5.4.2.1.tar.gz to /var/tmp/portage/net-analyzer/net-snmp-5.4.2.1-r3/work >>> Source unpacked in /var/tmp/portage/net-analyzer/net-snmp-5.4.2.1-r3/work >>> Preparing source in /var/tmp/portage/net-analyzer/net-snmp-5.4.2.1-r3/work/net-snmp-5.4.2.1 ... * Applying CVE-2008-6123.patch ... [ ok ] * Applying net-snmp-5.4.1-sensors3.patch ... [ ok ] * Applying net-snmp-5.4.1-sensors3-version_detect.patch ... [ ok ] * Deprecation Warning: python_version() is deprecated and will be banned on 2010-07-01. * Use PYTHON() instead of python variable. Use python_get_*() instead of PYVER* variables. * The ebuild needs to be fixed. Please report a bug, if it has not been already reported. * Running eautoreconf in '/var/tmp/portage/net-analyzer/net-snmp-5.4.2.1-r3/work/net-snmp-5.4.2.1' ...
Created attachment 229709 [details, diff] ebuild patch to stop the deprecation warning? @python: Please review this patch.
You should use $(python_get_sitedir) instead of: /usr/$(get_libdir)/python$(python_get_version)/site-packages But PYTHON_DIR seems to be not used anywhere in >=net-analyzer/net-snmp-5.4.2.1-r2, so you probably should remove it.
Also please remove calls to python_version() in all ebuilds.
I just ran emerge --sync and I had an update to net-snmp-5.4.2.1-r4. It still has this bug: >>> Emerging (7 of 9) net-analyzer/net-snmp-5.4.2.1-r4 * net-snmp-5.4.2.1.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * CPV: net-analyzer/net-snmp-5.4.2.1-r4 * REPO: gentoo * USE: X amd64 bzip2 elibc_glibc ipv6 kernel_linux multilib perl python ssl tcpd userland_GNU zlib >>> Unpacking source... >>> Unpacking net-snmp-5.4.2.1.tar.gz to /var/tmp/portage/net-analyzer/net-snmp-5.4.2.1-r4/work >>> Source unpacked in /var/tmp/portage/net-analyzer/net-snmp-5.4.2.1-r4/work >>> Preparing source in /var/tmp/portage/net-analyzer/net-snmp-5.4.2.1-r4/work/net-snmp-5.4.2.1 ... * Applying CVE-2008-6123.patch ... [ ok ] * Deprecation Warning: python_version() is deprecated and will be banned on 2010-07-01. * Use PYTHON() instead of python variable. Use python_get_*() instead of PYVER* variables. * The ebuild needs to be fixed. Please report a bug, if it has not been already reported. * Running eautoreconf in '/var/tmp/portage/net-analyzer/net-snmp-5.4.2.1-r4/work/net-snmp-5.4.2.1' ... * Running aclocal ... [ ok ] * Running libtoolize --copy --force --install ... [ ok ] * Running aclocal ... [ ok ] * Running autoconf ... [ ok ] * Running autoheader ... [ ok ] * Running elibtoolize in: net-snmp-5.4.2.1 * Applying portage-2.2.patch ... * Applying sed-1.5.6.patch ... * Applying as-needed-2.2.6.patch ... * Replacing obsolete head/tail with POSIX compliant ones * - fixed acinclude.m4 * - fixed autom4te.cache/output.0 * - fixed autom4te.cache/output.1 * - fixed autom4te.cache/traces.1 * - fixed configure * - fixed configure.in * - fixed local/snmp-ucd.sh * - fixed snmplib/snmpusm.c >>> Source prepared.
It was fixed some time ago.