Github messages for voidlinux
 help / color / mirror / Atom feed
From: yoshiyoshyosh <yoshiyoshyosh@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: perl-IO-Compress-Brotli-0.004001
Date: Mon, 23 Oct 2023 22:11:44 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-46861@inbox.vuxu.org> (raw)

[-- 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

             reply	other threads:[~2023-10-23 20:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-23 20:11 yoshiyoshyosh [this message]
2024-01-23  1:48 ` github-actions
2024-01-23  2:32 ` [PR PATCH] [Merged]: " classabbyamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-46861@inbox.vuxu.org \
    --to=yoshiyoshyosh@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).