guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

06/18: gnu: libpcap: Omit static library.


From: guix-commits
Subject: 06/18: gnu: libpcap: Omit static library.
Date: Wed, 30 Jun 2021 15:36:18 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit 49dc5bb7d22af9019b71be67bd8e43f15c41cf23
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Tue Jun 29 18:53:22 2021 +0200

    gnu: libpcap: Omit static library.
    
    * gnu/packages/admin.scm (libpcap)[arguments]: Add a new 
'omit-static-library phase.
---
 gnu/packages/admin.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 61f287f..ee03759 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -1305,7 +1305,15 @@ tools: server, client, and relay agent.")
        ("flex" ,flex)))
     (arguments
      ;; There are some tests in testprogs/, but no automated test suite.
-     '(#:tests? #f))
+     `(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'omit-static-library
+           ;; Neither build nor install libpcap.a.
+           (lambda _
+             (substitute* "Makefile.in"
+               ((" libpcap\\.a") "")
+               ((" install-archive ") " ")))))))
     (home-page "https://www.tcpdump.org";)
     (synopsis "Network packet capture library")
     (description



reply via email to

[Prev in Thread] Current Thread [Next in Thread]