Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 150788

Summary: net-analyzer/net-snmp only require zlib for rpm
Product: Gentoo Linux Reporter: INODE64 Sistemas <web>
Component: New packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: net-snmp-5.2.1.2-r1..ebuild.patch

Description INODE64 Sistemas 2006-10-10 12:11:34 UTC
all version of net-snmp only require zlib for build rpm
see configure.in line 2358

-----------------------------------
# rpm libraries only needed for the host resources mib software 
# installed tables (on linux in particular) 
# 
if test "x$with_rpm" != "xno" && \
        echo " $module_list " | grep " host/hr_swinst " > /dev/null; then
  # ARG.  RPM is a real pain. 
  # FWIW librpm.la, librpmio.la, and libpopt.la have correct dependencies. 
  _rpmlibs=""
   
  # zlib is required for newer versions of rpm 
  _cppflags="${CPPFLAGS}"
  _ldflags="${LDFLAGS}"

  AC_ARG_WITH(zlib,
  [  --with-zlib[=DIR]         use libz in DIR],[
    if test -d "$withval"; then
      CPPFLAGS="${CPPFLAGS} -I$withval/include"
      LDFLAGS="${LDFLAGS} -L$withval/lib"
    fi
  ])

-----------------------------------
Comment 1 Cédric Krier gentoo-dev 2006-10-18 05:35:21 UTC
Created attachment 99938 [details, diff]
net-snmp-5.2.1.2-r1..ebuild.patch
Comment 2 Cédric Krier gentoo-dev 2006-11-26 13:39:59 UTC
fix in cvs version 5.4