diff to fix broken .spec file
"Jeremy M. Guthrie" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Organization | Berbee Information Networks |
| Message-ID | <[email protected]> |
The spec file included with the netsnmp-5.2.1.2 file is broken. The rpmbuild
-bb of the spec file doesn't work. Part way through the RPM starts
installing instead of building for a package. The diff below should help fix
that.
diff a/net-snmp.spec b/net-snmp.spec
82c82
< %{?_with_perl_modules: --with-perl-modules="PREFIX=$RPM_BUILD_ROOT/usr
INSTALLDIRS=vendor"} \
---
> %{?_with_perl_modules: --with-perl-modules="PREFIX=/usr
INSTALLDIRS=vendor"} \
84c84
< --with-cflags="$RPM_OPT_FLAGS"
---
> --with-cflags="$RPM_OPT_FLAGS" --with-install-prefix=$RPM_BUILD_ROOT
--
--------------------------------------------------
Jeremy M. Guthrie [email protected]
Senior Network Engineer Phone: 608-298-1061
Berbee Fax: 608-288-3007
5520 Research Park Drive NOC: 608-298-1102
Madison, WI 53711
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBDCikaqtjaBHGZBeURAnc+AKCO0iUrLWQkmOeYQO/TMChbDaYcsgCdEoqE xc0Gm0xplpqBrrp4KTmGLXo= =GLXg -----END PGP SIGNATURE-----