Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 310521 - net-analyzer/net-snmp-5.4.2.1-r4 reports python_version() deprecation warning
Summary: net-analyzer/net-snmp-5.4.2.1-r4 reports python_version() deprecation warning
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-21 12:44 UTC by Guy
Modified: 2010-06-18 15:23 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild patch to stop the deprecation warning? (net-snmp-5.4.2.1-r4.ebuild-python_version.patch,748 bytes, patch)
2010-04-29 17:09 UTC, Jeroen Roovers (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Guy 2010-03-21 12:44:12 UTC
>>> 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' ...
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-04-29 17:09:16 UTC
Created attachment 229709 [details, diff]
ebuild patch to stop the deprecation warning?

@python: Please review this patch.
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-04-29 17:14:14 UTC
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.
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-04-29 17:15:12 UTC
Also please remove calls to python_version() in all ebuilds.
Comment 4 Cybertinus 2010-04-30 08:37:28 UTC
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.
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-06-18 15:23:52 UTC
It was fixed some time ago.