guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 832f5ea81af037e3072bff868571100cf96f1630
Author: Cayetano Santos <[email protected]>
AuthorDate: Fri Feb 27 11:51:24 2026 +0100

    gnu: protobuf: Drop static output.
    
    There is no benefit in terms of size on keeping a separate output.
    
    * gnu/packages/protobuf.scm (protobuf)[outputs]: Delete ’static.
    [arguments]: Delete ’move-static-libraries #:phase.
    
    Merges guix/guix!6733
    
    Change-Id: I33b1390175ae6c9b3ad0d4ed62cc49c91c941e81
---
 gnu/packages/protobuf.scm | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/gnu/packages/protobuf.scm b/gnu/packages/protobuf.scm
index 4147a6bd66..e0ea20c506 100644
--- a/gnu/packages/protobuf.scm
+++ b/gnu/packages/protobuf.scm
@@ -129,7 +129,6 @@ data in motion, or as a file format for data at rest.")
        (file-name (git-file-name name version))
        (sha256
         (base32 "1rdxm75bqwjj4qd3hz4vlydra6bw5dq391kwln2q0pjfx9gbrjhk"))))
-    (outputs (list "out" "static"))
     (build-system cmake-build-system)
     (arguments
      (list
@@ -159,19 +158,7 @@ data in motion, or as a file format for data at rest.")
                 ;; https://github.com/protocolbuffers/protobuf/issues/8082.
                 (disable-tests
                  "src/google/protobuf/io/zero_copy_stream_unittest.cc"
-                 "LargeOutput"))))
-          (add-after 'install 'move-static-libraries
-            (lambda* (#:key outputs #:allow-other-keys)
-              ;; Move static libraries to the "static" output.
-              (let* ((out    (assoc-ref outputs "out"))
-                     (lib    (string-append out "/lib"))
-                     (static (assoc-ref outputs "static"))
-                     (slib   (string-append static "/lib")))
-                (mkdir-p slib)
-                (for-each (lambda (file)
-                            (install-file file slib)
-                            (delete-file file))
-                          (find-files lib "\\.a$"))))))))
+                 "LargeOutput")))))))
     (native-inputs (list googletest python-minimal-wrapper ruby))
     (inputs (list abseil-cpp jsoncpp zlib))
     (home-page "https://protobuf.dev";)

Reply via email to