commit:     dc6e9f6e27d40d4f52bd5961a0a4e0034779bf37
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 16 09:24:55 2020 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sun Aug 16 09:36:17 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc6e9f6e

net-analyzer/net-snmp: Run poor person's distclean

The source tarball distributed through Github and Sourceforge contains
amd64 specific binaries that should have been removed before packaging.

While there, run `make sedscript` before other build targets.

Package-Manager: Portage-3.0.2, Repoman-2.3.23
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 .../net-snmp/{net-snmp-5.9.ebuild => net-snmp-5.9-r1.ebuild}         | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/net-analyzer/net-snmp/net-snmp-5.9.ebuild 
b/net-analyzer/net-snmp/net-snmp-5.9-r1.ebuild
similarity index 97%
rename from net-analyzer/net-snmp/net-snmp-5.9.ebuild
rename to net-analyzer/net-snmp/net-snmp-5.9-r1.ebuild
index 5f50c7d5aff..09e90cd5624 100644
--- a/net-analyzer/net-snmp/net-snmp-5.9.ebuild
+++ b/net-analyzer/net-snmp/net-snmp-5.9-r1.ebuild
@@ -85,6 +85,9 @@ pkg_setup() {
 }
 
 src_prepare() {
+       find -type d -name .libs -depth -exec rm -r {} \; || die
+       find -type f -name '*.o' -o -name '*.lo' -exec rm {} \; || die
+
        # snmpconf generates config files with proper selinux context
        use selinux && eapply "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch
 
@@ -138,6 +141,8 @@ src_configure() {
 }
 
 src_compile() {
+       emake sedscript
+
        local subdir
        for subdir in snmplib agent/mibgroup agent apps .; do
                emake OTHERLDFLAGS="${LDFLAGS}" -C ${subdir} all

Reply via email to