* [PR PATCH] New package: perl-IO-Compress-Brotli-0.004001
@ 2023-10-23 20:11 yoshiyoshyosh
2024-01-23 1:48 ` github-actions
2024-01-23 2:32 ` [PR PATCH] [Merged]: " classabbyamp
0 siblings, 2 replies; 3+ messages in thread
From: yoshiyoshyosh @ 2023-10-23 20:11 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1156 bytes --]
There is a new pull request by yoshiyoshyosh against master on the void-packages repository
https://github.com/yoshiyoshyosh/void-packages perl-brotli
https://github.com/void-linux/void-packages/pull/46861
New package: perl-IO-Compress-Brotli-0.004001
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, `x86_64-glibc`
- I built this PR locally for these architectures:
- `x86_64-musl`
- `i686-glibc`
noticed that this package is required for viewing jpeg xl brotli-compressed exif data using `exiftool`
I include the `no-bundled-brotli.patch` from [fedora](https://src.fedoraproject.org/rpms/perl-IO-Compress-Brotli/blob/rawhide/f/IO-Compress-Brotli-0.004001-Use-pkgconfig-instead-of-bundled-libbrotli.patch) since the old bundled brotli has a security vulnerability
A patch file from https://github.com/void-linux/void-packages/pull/46861.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-perl-brotli-46861.patch --]
[-- Type: text/x-diff, Size: 3053 bytes --]
From f7522108fc1ade1fceefd54b88f8a03422e7e204 Mon Sep 17 00:00:00 2001
From: yosh <yosh-git@riseup.net>
Date: Mon, 23 Oct 2023 15:54:24 -0400
Subject: [PATCH] New package: perl-IO-Compress-Brotli-0.004001
---
.../patches/no-bundled-brotli.patch | 50 +++++++++++++++++++
srcpkgs/perl-IO-Compress-Brotli/template | 15 ++++++
2 files changed, 65 insertions(+)
create mode 100644 srcpkgs/perl-IO-Compress-Brotli/patches/no-bundled-brotli.patch
create mode 100644 srcpkgs/perl-IO-Compress-Brotli/template
diff --git a/srcpkgs/perl-IO-Compress-Brotli/patches/no-bundled-brotli.patch b/srcpkgs/perl-IO-Compress-Brotli/patches/no-bundled-brotli.patch
new file mode 100644
index 0000000000000..473d30e4bdcaf
--- /dev/null
+++ b/srcpkgs/perl-IO-Compress-Brotli/patches/no-bundled-brotli.patch
@@ -0,0 +1,50 @@
+--- IO-Compress-Brotli-0.004001/Makefile.PL.orig 2022-08-02 09:39:14.249801914 +0200
++++ IO-Compress-Brotli-0.004001/Makefile.PL 2022-08-02 09:39:03.236639950 +0200
+@@ -1,5 +1,23 @@
+ use 5.014000;
+ use ExtUtils::MakeMaker;
++use ExtUtils::PkgConfig;
++
++my @requirements = qw(libbrotlidec libbrotlienc);
++my $libs = '';
++my $inc = '';
++
++my %pkgcfg;
++foreach my $req (@requirements) {
++ eval{
++ %pkgcfg = ExtUtils::PkgConfig->find($req);
++ };
++ if ($@) {
++ die "Could not determine location of library $req.";
++ }
++ $libs .= $pkgcfg{libs}.' ';
++ $inc .= $pkgcfg{cflags}.' ';
++}
++
+
+ WriteMakefile(
+ NAME => 'IO::Compress::Brotli',
+@@ -16,20 +34,12 @@ WriteMakefile(
+ 'Time::HiRes' => '0',
+ },
+ BUILD_REQUIRES => {},
+- INC => '-Ibrotli/c/include',
+- MYEXTLIB => 'brotli/libbrotli$(LIB_EXT)',
+- clean => { FILES => 'brotli/libbrotli$(LIB_EXT)' },
+ META_ADD => {
+ dynamic_config => 0,
+ resources => {
+ repository => 'https://git.ieval.ro/?p=io-compress-brotli.git',
+ },
+- }
++ },
++ LIBS => $libs,
++ INC => $inc,
+ );
+-
+-sub MY::postamble {
+-'
+-$(MYEXTLIB): brotli/Makefile
+- cd brotli && CFLAGS=-fPIC `which gmake || echo $(MAKE)` lib
+-'
+-}
diff --git a/srcpkgs/perl-IO-Compress-Brotli/template b/srcpkgs/perl-IO-Compress-Brotli/template
new file mode 100644
index 0000000000000..8c41e392cd9da
--- /dev/null
+++ b/srcpkgs/perl-IO-Compress-Brotli/template
@@ -0,0 +1,15 @@
+# Template file for 'perl-IO-Compress-Brotli'
+pkgname=perl-IO-Compress-Brotli
+version=0.004001
+revision=1
+build_style=perl-module
+hostmakedepends="perl perl-ExtUtils-PkgConfig"
+makedepends="perl-File-Slurper brotli-devel"
+depends="perl-File-Slurper"
+short_desc="Modules for compressing and uncompressing Brotli data"
+maintainer="yosh <yosh-git@riseup.net>"
+license="Artistic-1.0-Perl, GPL-1.0-or-later"
+homepage="https://metacpan.org/dist/IO-Compress-Brotli"
+changelog="https://fastapi.metacpan.org/source/MGV/IO-Compress-Brotli-0.004001/Changes"
+distfiles="https://search.cpan.org/CPAN/authors/id/M/MG/MGV/IO-Compress-Brotli-$version.tar.gz"
+checksum=8ba5c0167e966f487bde159c18bc1b3486528013b3235d39f2fcb375ca4bf410
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: New package: perl-IO-Compress-Brotli-0.004001
2023-10-23 20:11 [PR PATCH] New package: perl-IO-Compress-Brotli-0.004001 yoshiyoshyosh
@ 2024-01-23 1:48 ` github-actions
2024-01-23 2:32 ` [PR PATCH] [Merged]: " classabbyamp
1 sibling, 0 replies; 3+ messages in thread
From: github-actions @ 2024-01-23 1:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/pull/46861#issuecomment-1905144483
Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PR PATCH] [Merged]: New package: perl-IO-Compress-Brotli-0.004001
2023-10-23 20:11 [PR PATCH] New package: perl-IO-Compress-Brotli-0.004001 yoshiyoshyosh
2024-01-23 1:48 ` github-actions
@ 2024-01-23 2:32 ` classabbyamp
1 sibling, 0 replies; 3+ messages in thread
From: classabbyamp @ 2024-01-23 2:32 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 989 bytes --]
There's a merged pull request on the void-packages repository
New package: perl-IO-Compress-Brotli-0.004001
https://github.com/void-linux/void-packages/pull/46861
Description:
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, `x86_64-glibc`
- I built this PR locally for these architectures:
- `x86_64-musl`
- `i686-glibc`
noticed that this package is required for viewing jpeg xl brotli-compressed exif data using `exiftool`
I include the `no-bundled-brotli.patch` from [fedora](https://src.fedoraproject.org/rpms/perl-IO-Compress-Brotli/blob/rawhide/f/IO-Compress-Brotli-0.004001-Use-pkgconfig-instead-of-bundled-libbrotli.patch) since the old bundled brotli has a security vulnerability
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-01-23 2:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-23 20:11 [PR PATCH] New package: perl-IO-Compress-Brotli-0.004001 yoshiyoshyosh
2024-01-23 1:48 ` github-actions
2024-01-23 2:32 ` [PR PATCH] [Merged]: " classabbyamp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).