summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim@guixotic.coop>2025-11-04 14:56:04 +0900
committerMaxim Cournoyer <maxim@guixotic.coop>2025-11-19 09:42:12 +0900
commit2a065c58384d5b871381dff9f018ab58fb8d41b3 (patch)
tree4c0b0cc236671305ebc56ceba390dadf3c1f2ac6
parent1766f0a40c7fdceb0aaf3457ea832caf50f16d7b (diff)
gnu: libpng-apng: Update to 1.6.50, absorbing libpng-apng-next.
* gnu/packages/image.scm (libpng-apng): Update to 1.6.50. [arguments]: Use gexps. [inputs]: Update libpng-apng hash. (libpng-apng-next): Delete variable. * gnu/packages/gnuzilla.scm (icecat-minimal): Replace libpng-apng-next with libpng-apng. * gnu/packages/librewolf.scm (librewolf) [inputs]: Likewise. Change-Id: I464188e4c08e9d076ce9deff8811f7ca0b753433
-rw-r--r--gnu/packages/gnuzilla.scm2
-rw-r--r--gnu/packages/image.scm86
-rw-r--r--gnu/packages/librewolf.scm2
3 files changed, 29 insertions, 61 deletions
diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index 10a5eb76706..3f1b22404eb 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -791,7 +791,7 @@ preferences/advanced-scripts.dtd"
791 libcanberra 791 libcanberra
792 libgnome 792 libgnome
793 libjpeg-turbo 793 libjpeg-turbo
794 libpng-apng-next 794 libpng-apng
795 ;; UNBUNDLE-ME! libogg 795 ;; UNBUNDLE-ME! libogg
796 ;; UNBUNDLE-ME! libtheora ; wants theora-1.2, not yet released 796 ;; UNBUNDLE-ME! libtheora ; wants theora-1.2, not yet released
797 ;; UNBUNDLE-ME! libvorbis 797 ;; UNBUNDLE-ME! libvorbis
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index a00e68cb476..de93d755c44 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -25,7 +25,7 @@
25;;; Copyright © 2018 Rutger Helling <rhelling@mykolab.com> 25;;; Copyright © 2018 Rutger Helling <rhelling@mykolab.com>
26;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org> 26;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
27;;; Copyright © 2020 R Veera Kumar <vkor@vkten.in> 27;;; Copyright © 2020 R Veera Kumar <vkor@vkten.in>
28;;; Copyright © 2020, 2023 Maxim Cournoyer <maxim@guixotic.coop> 28;;; Copyright © 2020, 2023, 2025 Maxim Cournoyer <maxim@guixotic.coop>
29;;; Copyright © 2020, 2025 Janneke Nieuwenhuizen <janneke@gnu.org> 29;;; Copyright © 2020, 2025 Janneke Nieuwenhuizen <janneke@gnu.org>
30;;; Copyright © 2020 Zhu Zihao <all_but_last@163.com> 30;;; Copyright © 2020 Zhu Zihao <all_but_last@163.com>
31;;; Copyright © 2020, 2021, 2022, 2023, 2024 Vinicius Monego <monego@posteo.net> 31;;; Copyright © 2020, 2021, 2022, 2023, 2024 Vinicius Monego <monego@posteo.net>
@@ -292,7 +292,7 @@ library. It supports almost all PNG features and is extensible.")
292 ;; The APNG patch is maintained separately and may lag behind upstream libpng. 292 ;; The APNG patch is maintained separately and may lag behind upstream libpng.
293 (package 293 (package
294 (name "libpng-apng") 294 (name "libpng-apng")
295 (version "1.6.39") 295 (version "1.6.50")
296 (source 296 (source
297 (origin 297 (origin
298 (method url-fetch) 298 (method url-fetch)
@@ -305,30 +305,32 @@ library. It supports almost all PNG features and is extensible.")
305 "ftp://ftp.simplesystems.org/pub/libpng/png/src/history" 305 "ftp://ftp.simplesystems.org/pub/libpng/png/src/history"
306 "/libpng16/libpng-" version ".tar.xz"))) 306 "/libpng16/libpng-" version ".tar.xz")))
307 (sha256 307 (sha256
308 (base32 "0dv90dxvmqpk7mbywyjbz8lh08cv4b0ksqp1y62mzvmlf379cihz")))) 308 (base32
309 "01r34c31gq136jwshdfira44wbl6nb8qfgj4a4vam9r0hr8rdwsd"))))
309 (build-system gnu-build-system) 310 (build-system gnu-build-system)
310 (arguments 311 (arguments
311 `(#:modules ((guix build gnu-build-system) 312 (list
313 #:modules '((guix build gnu-build-system)
312 (guix build utils) 314 (guix build utils)
313 (srfi srfi-1)) 315 (srfi srfi-1))
314 #:phases 316 #:phases
315 (modify-phases %standard-phases 317 #~(modify-phases %standard-phases
316 (add-after 'unpack 'patch-apng 318 (add-after 'unpack 'patch-apng
317 (lambda* (#:key inputs #:allow-other-keys) 319 (lambda* (#:key inputs #:allow-other-keys)
318 (define (apply-patch file) 320 (define (apply-patch file)
319 (invoke "patch" "-p1" "--force" 321 (invoke "patch" "-p1" "--force"
320 "--input" file)) 322 "--input" file))
321 (let ((apng.gz (assoc-ref inputs "apng"))) 323 (let ((apng.gz (assoc-ref inputs "apng")))
322 (format #t "Applying APNG patch '~a'...~%" 324 (format #t "Applying APNG patch '~a'...~%"
323 apng.gz) 325 apng.gz)
324 (invoke "sh" "-c" 326 (invoke "sh" "-c"
325 (string-append "gunzip < " apng.gz " > the-patch")) 327 (string-append "gunzip < " apng.gz " > the-patch"))
326 (apply-patch "the-patch")))) 328 (apply-patch "the-patch"))))
327 (add-before 'configure 'no-checks 329 (add-before 'configure 'no-checks
328 (lambda _ 330 (lambda _
329 (substitute* "Makefile.in" 331 (substitute* "Makefile.in"
330 (("^scripts/symbols.chk") "") 332 (("^scripts/symbols.chk") "")
331 (("check: scripts/symbols.chk") ""))))))) 333 (("check: scripts/symbols.chk") "")))))))
332 (inputs 334 (inputs
333 `(("apng" ,(origin 335 `(("apng" ,(origin
334 (method url-fetch) 336 (method url-fetch)
@@ -337,12 +339,10 @@ library. It supports almost all PNG features and is extensible.")
337 version "/libpng-" version "-apng.patch.gz")) 339 version "/libpng-" version "-apng.patch.gz"))
338 (sha256 340 (sha256
339 (base32 341 (base32
340 "1z8cx011a2c7vagwgi92rbmky1wi8awmrdldqh9f5k80pbmbdi2a")))))) 342 "0r811izi40qzy69jmhz0xlkpqlsjj89bang1b3ma6a5igh6dqzb8"))))))
341 (native-inputs 343 (native-inputs (list libtool))
342 (list libtool))
343 ;; libpng.la says "-lz", so propagate it. 344 ;; libpng.la says "-lz", so propagate it.
344 (propagated-inputs 345 (propagated-inputs (list zlib))
345 (list zlib))
346 (synopsis "APNG patch for libpng") 346 (synopsis "APNG patch for libpng")
347 (description 347 (description
348 "APNG (Animated Portable Network Graphics) is an unofficial 348 "APNG (Animated Portable Network Graphics) is an unofficial
@@ -351,38 +351,6 @@ APNG patch provides APNG support to libpng.")
351 (home-page "https://sourceforge.net/projects/libpng-apng/") 351 (home-page "https://sourceforge.net/projects/libpng-apng/")
352 (license license:zlib))) 352 (license license:zlib)))
353 353
354;; Temporary, until 76798 merges into core-packages-team, and that merges into
355;; master.
356(define-public libpng-apng-next
357 (package
358 (inherit libpng-apng)
359 (version "1.6.50")
360 (source
361 (origin
362 (method url-fetch)
363 (uri (list (string-append "mirror://sourceforge/libpng/libpng16/"
364 version "/libpng-" version ".tar.xz")
365 (string-append
366 "ftp://ftp.simplesystems.org/pub/libpng/png/src"
367 "/libpng16/libpng-" version ".tar.xz")
368 (string-append
369 "ftp://ftp.simplesystems.org/pub/libpng/png/src/history"
370 "/libpng16/libpng-" version ".tar.xz")))
371 (sha256
372 (base32
373 "01r34c31gq136jwshdfira44wbl6nb8qfgj4a4vam9r0hr8rdwsd"))))
374 (inputs
375 (modify-inputs (package-inputs libpng-apng)
376 (replace "apng"
377 (origin
378 (method url-fetch)
379 (uri
380 (string-append "mirror://sourceforge/libpng-apng/libpng16/"
381 version "/libpng-" version "-apng.patch.gz"))
382 (sha256
383 (base32
384 "0r811izi40qzy69jmhz0xlkpqlsjj89bang1b3ma6a5igh6dqzb8"))))))))
385
386(define-public pngcrush 354(define-public pngcrush
387 (package 355 (package
388 (name "pngcrush") 356 (name "pngcrush")
diff --git a/gnu/packages/librewolf.scm b/gnu/packages/librewolf.scm
index 68cef6e0aa3..3e1cd9af3b0 100644
--- a/gnu/packages/librewolf.scm
+++ b/gnu/packages/librewolf.scm
@@ -637,7 +637,7 @@
637 libjpeg-turbo 637 libjpeg-turbo
638 libnotify 638 libnotify
639 libpciaccess 639 libpciaccess
640 libpng-apng-next 640 libpng-apng
641 libva 641 libva
642 libvpx 642 libvpx
643 libwebp 643 libwebp