summaryrefslogtreecommitdiff
path: root/gnu/packages/compression.scm
diff options
context:
space:
mode:
authorkestrel <kestrel.w@proton.me>2025-10-18 16:26:12 +0300
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2025-10-22 16:43:05 +0200
commit701e2c796fa34403fb1c15456cb9f9d8991dd093 (patch)
treead611ebcef66877d66d06e5ac43c66f5219b94bf /gnu/packages/compression.scm
parent0c3462568b718bb0ec6df9562adc5ebc8d49e885 (diff)
gnu: Deprecate p7zip.
* gnu/packages/compression.scm (p7zip): Deprecate towards 7zip. * gnu/packages/patches/p7zip-CVE-2016-9296.patch: Remove file. * gnu/packages/patches/p7zip-CVE-2017-17969.patch: Remove file. * gnu/packages/patches/p7zip-fix-build-with-gcc-11.patch: Remove file. * gnu/packages/patches/p7zip-remove-unused-code.patch: Remove file. * gnu/local.mk (dist_patch_DATA): Delete removed patches. Change-Id: Ie1a36a433234d22ff75cc06951ed7d092f06dd0e Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu/packages/compression.scm')
-rw-r--r--gnu/packages/compression.scm67
1 files changed, 1 insertions, 66 deletions
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 49403485f2f..6efa55b7368 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -1540,72 +1540,7 @@ of archive formats and features self-extracting archives.")
1540 license:public-domain)))) 1540 license:public-domain))))
1541 1541
1542(define-public p7zip 1542(define-public p7zip
1543 (package 1543 (deprecated-package "p7zip" 7zip))
1544 (name "p7zip")
1545 (version "16.02")
1546 (source (origin
1547 (method url-fetch)
1548 (uri (string-append "mirror://sourceforge/" name "/" name "/"
1549 version "/" name "_" version
1550 "_src_all.tar.bz2"))
1551 (sha256
1552 (base32
1553 "07rlwbbgszq8i7m8jh3x6j2w2hc9a72dc7fmqawnqkwlwb00mcjy"))
1554 (modules '((guix build utils)))
1555 (snippet
1556 '(begin
1557 ;; Remove non-free source files
1558 (for-each delete-file
1559 (append
1560 (find-files "CPP/7zip/Compress" "Rar.*")
1561 (find-files "CPP/7zip/Crypto" "Rar.*")
1562 (find-files "DOC/unRarLicense.txt")
1563 (find-files "Utils/file_Codecs_Rar_so.py")))
1564 (delete-file-recursively "CPP/7zip/Archive/Rar")
1565 (delete-file-recursively "CPP/7zip/Compress/Rar")
1566 ;; Fix FTBFS with gcc-10.
1567 (substitute* "CPP/Windows/ErrorMsg.cpp"
1568 (("switch\\(errorCode\\) \\{")
1569 "switch(static_cast<HRESULT>(errorCode)) {"))))
1570 (patches (search-patches "p7zip-CVE-2016-9296.patch"
1571 "p7zip-CVE-2017-17969.patch"
1572 "p7zip-fix-build-with-gcc-11.patch"
1573 "p7zip-remove-unused-code.patch"))))
1574 (build-system gnu-build-system)
1575 (arguments
1576 `(#:make-flags
1577 (list (string-append "DEST_HOME=" (assoc-ref %outputs "out")) "all3")
1578 #:phases
1579 (modify-phases %standard-phases
1580 (replace 'configure
1581 (lambda _
1582 (copy-file
1583 ,(cond ((target-x86-64?)
1584 "makefile.linux_amd64_asm")
1585 ((target-x86-32?)
1586 "makefile.linux_x86_asm_gcc_4.X")
1587 (else
1588 "makefile.linux_any_cpu_gcc_4.X"))
1589 "makefile.machine")))
1590 (replace 'check
1591 (lambda* (#:key tests? #:allow-other-keys)
1592 (when tests?
1593 (invoke "make" "test")
1594 (invoke "make" "test_7z")
1595 (invoke "make" "test_7zr")))))))
1596 (native-inputs
1597 (cond ((target-x86-64?)
1598 (list yasm))
1599 ((target-x86-32?)
1600 (list nasm))
1601 (else '())))
1602 (home-page "https://p7zip.sourceforge.net/")
1603 (synopsis "Command-line file archiver with high compression ratio")
1604 (description "p7zip is a command-line port of 7-Zip, a file archiver that
1605handles the 7z format which features very high compression ratios.")
1606 (license (list license:lgpl2.1+
1607 license:gpl2+
1608 license:public-domain))))
1609 1544
1610(define-public gzstream 1545(define-public gzstream
1611 (package 1546 (package