This pkgbuild is maintained at https://github.com/FabioLolix/PKGBUILD
Search Criteria
Package Details: perl-musicbrainz-discid 0.06-5
Package Actions
| Git Clone URL: | https://aur.archlinux.org/perl-musicbrainz-discid.git (read-only, click to copy) |
|---|---|
| Package Base: | perl-musicbrainz-discid |
| Description: | MusicBrainz::DiscID module |
| Upstream URL: | https://metacpan.org/release/MusicBrainz-DiscID |
| Licenses: | MIT |
| Submitter: | elelay |
| Maintainer: | FabioLolix |
| Last Packager: | FabioLolix |
| Votes: | 49 |
| Popularity: | 0.000001 |
| First Submitted: | 2012-12-08 19:45 (UTC) |
| Last Updated: | 2025-08-10 20:41 (UTC) |
Required by (3)
- abcde-musicbrainz-meta
- automatic-ripping-machine
- ripit (optional)
Sources (2)
FabioLolix commented on 2025-08-10 20:42 (UTC)
FabioLolix commented on 2025-08-10 20:42 (UTC)
Thanks for reporting the patch
elelay commented on 2025-07-17 18:55 (UTC) (edited on 2025-07-20 17:25 (UTC) by elelay)
Indeed, the patch works but I can't commit as a contributor
commit b3b480ece61a9960be707f0053f950ad30f34161 (HEAD -> master)
Author: Eric Le Lay
Date: Thu Jul 17 20:50:06 2025 +0200
Apply fix for changed perl-ExtUtils-ParseXS from 1:3.51 to 1:3.57
Thanks for Rhinoceros for the link
diff --git a/MusicBrainz-DiscID-0.06-xsub.patch b/MusicBrainz-DiscID-0.06-xsub.patch
new file mode 100644
index 0000000..4fa0608
--- /dev/null
+++ b/MusicBrainz-DiscID-0.06-xsub.patch
@@ -0,0 +1,13 @@
+# From https://bugzilla.redhat.com/show_bug.cgi?id=2364631
+diff -up MusicBrainz-DiscID-0.06/DiscID.xs.orig MusicBrainz-DiscID-0.06/DiscID.xs
+--- MusicBrainz-DiscID-0.06/DiscID.xs.orig 2025-05-15 14:01:31.501503137 +0200
++++ MusicBrainz-DiscID-0.06/DiscID.xs 2025-05-15 14:02:10.538285963 +0200
+@@ -113,7 +113,7 @@ discid_get_track_length( disc, track_num
+ ## Provides the TOC of a known CD.
+ ##
+ int
+-discid_put( disc, first_track, sectors, offsets ... )
++discid_put( disc, first_track, sectors, offsets, ... )
+ DiscId *disc
+ int first_track
+ int sectors
diff --git a/PKGBUILD b/PKGBUILD
index ba47603..3ec95ec 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,11 +10,14 @@ url="https://metacpan.org/release/MusicBrainz-DiscID"
license=(MIT)
depends=(glibc libdiscid perl perl-module-build)
options=(!emptydirs) #purge
-source=("https://search.cpan.org/CPAN/authors/id/N/NJ/NJH/MusicBrainz-DiscID-$pkgver.tar.gz")
-sha256sums=('ba0b6ed09897ff563ba59872ee93715bef37157515b19b7c6d6f286e6548ecab')
+source=("https://search.cpan.org/CPAN/authors/id/N/NJ/NJH/MusicBrainz-DiscID-$pkgver.tar.gz"
+ "MusicBrainz-DiscID-0.06-xsub.patch")
+sha256sums=('ba0b6ed09897ff563ba59872ee93715bef37157515b19b7c6d6f286e6548ecab'
+ '491f6bccda3f493aa58cc17bac563f631a044ec73c761c5c4419fd4919d45be7')
build() {
cd "MusicBrainz-DiscID-$pkgver"
+ patch < ../MusicBrainz-DiscID-0.06-xsub.patch
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
/usr/bin/perl Makefile.PL
Rhinoceros commented on 2025-07-17 10:24 (UTC)
The patch here fixes it for me.
LordGreulich commented on 2025-07-17 09:47 (UTC)
The build also failed for me with perl 5.42.0 with the same error. The build succeded with perl 5.40.2
Rhinoceros commented on 2025-07-17 04:03 (UTC) (edited on 2025-07-17 04:05 (UTC) by Rhinoceros)
Anyone else having trouble building this with the new perl 5.42.0-1? I tried building in a clean chroot
==> Starting build()...
Found pkg-config version 2.5.1.
Found libdiscid library version 0.6.5.
LIBDISCID_CFLAGS =
Warning: prerequisite Test::Pod 1.00 not found.
LIBDISCID_LIBS = -ldiscid
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for MusicBrainz::DiscID
Writing MYMETA.yml and MYMETA.json
"/usr/bin/perl" "/usr/share/perl5/core_perl/ExtUtils/xsubpp" -noprototypes -typemap '/usr/share/perl5/core_perl/ExtUtils/typemap' -typemap '/build/perl-musicbrainz-discid/src/MusicBrainz-DiscID-0.06/typemap' DiscID.xs > DiscID.xsc
Running Mkbootstrap for DiscID ()
chmod 644 "DiscID.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- DiscID.bs blib/arch/auto/MusicBrainz/DiscID/DiscID.bs 644
cp lib/MusicBrainz/DiscID.pm blib/lib/MusicBrainz/DiscID.pm
Unparseable XSUB parameter: 'offsets ...' in DiscID.xs, line 116
make: *** [Makefile:362: DiscID.c] Error 1
==> ERROR: A failure occurred in build().
FabioLolix commented on 2023-05-04 22:31 (UTC)
I'll integrate it in some days
gabor_zoka commented on 2023-04-07 13:47 (UTC)
Hello FabioLolix,
Would you consider this patch? https:// makes more credibility, and not just relying on the chksum in the PKGBUILD
Thank you,
Gábor
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@ url="https://metacpan.org/release/$_dist"
license=('GPL' 'PerlArtistic')
depends=('perl' 'libdiscid' 'perl-module-build')
options=('!emptydirs' purge)
-source=("http://search.cpan.org/CPAN/authors/id/N/NJ/NJH/$_dist-$pkgver.tar.gz")
+source=("https://search.cpan.org/CPAN/authors/id/N/NJ/NJH/$_dist-$pkgver.tar.gz")
md5sums=('6579d43d270c965563f84fd5ffe0dde5')
build() {
starfry commented on 2018-03-07 18:27 (UTC)
@andmars I guess most Perl packages are platform-agnostic (this is the only one out of several AUR 'any' Perl paclages that I've hit this problem with).
FWIW, you can use 'namcap' to check this kind of thing. If you do 'namcap perl-musicbrainz-discid-0.04-1-any.pkg.tar.xz' it reports "ELF file found in an 'any' package."
Pinned Comments
FabioLolix commented on 2025-08-10 20:42 (UTC)
This pkgbuild is maintained at https://github.com/FabioLolix/PKGBUILD