mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +03:00
testing/perl-cairo: fix incompatible pointer types issue on 32-bit
This commit is contained in:
parent
4d934d454a
commit
4590aaa29b
2 changed files with 20 additions and 2 deletions
13
testing/perl-cairo/32-bit-incompatible-pointer-types.patch
Normal file
13
testing/perl-cairo/32-bit-incompatible-pointer-types.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
Patch-Source: https://gitlab.gnome.org/GNOME/perl-cairo/-/issues/2
|
||||||
|
|
||||||
|
--- a/CairoSurface.xs
|
||||||
|
+++ b/CairoSurface.xs
|
||||||
|
@@ -389,7 +389,7 @@ cairo_status_t
|
||||||
|
cairo_surface_set_mime_data (cairo_surface_t *surface, const char *mime_type, SV *data);
|
||||||
|
PREINIT:
|
||||||
|
const unsigned char *mime_data;
|
||||||
|
- unsigned long length;
|
||||||
|
+ STRLEN length;
|
||||||
|
CODE:
|
||||||
|
SvREFCNT_inc (data);
|
||||||
|
mime_data = (const unsigned char *) SvPV(data, length);
|
|
@ -14,7 +14,9 @@ depends="perl"
|
||||||
makedepends="perl-dev cairo-dev perl-extutils-pkgconfig perl-extutils-depends"
|
makedepends="perl-dev cairo-dev perl-extutils-pkgconfig perl-extutils-depends"
|
||||||
checkdepends="perl-test-number-delta"
|
checkdepends="perl-test-number-delta"
|
||||||
subpackages="$pkgname-doc"
|
subpackages="$pkgname-doc"
|
||||||
source="https://cpan.metacpan.org/authors/id/X/XA/XAOC/Cairo-$pkgver.tar.gz"
|
source="https://cpan.metacpan.org/authors/id/X/XA/XAOC/Cairo-$pkgver.tar.gz
|
||||||
|
32-bit-incompatible-pointer-types.patch
|
||||||
|
"
|
||||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
@ -33,4 +35,7 @@ package() {
|
||||||
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="b80841bff480acf95f69659cba02ca17c79b67a2dc5c9b9302efb15bbd79bd4bc2f1801c001c220723da11081e86a08a83e07ecc8866810ebf9406e1f6fa1c53 Cairo-1.109.tar.gz"
|
sha512sums="
|
||||||
|
b80841bff480acf95f69659cba02ca17c79b67a2dc5c9b9302efb15bbd79bd4bc2f1801c001c220723da11081e86a08a83e07ecc8866810ebf9406e1f6fa1c53 Cairo-1.109.tar.gz
|
||||||
|
77274d84b7d504375967ce48a683623000863b09c918de699cdb5d937179381afa4f3bf262b5d1ddc43264bf232d6692e6026950e46268f90b0d504ee8a2519b 32-bit-incompatible-pointer-types.patch
|
||||||
|
"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue