diff -Nru php-league-uri-src-7.4.0/debian/changelog php-league-uri-src-7.4.0/debian/changelog --- php-league-uri-src-7.4.0/debian/changelog 2024-03-03 16:02:59.000000000 +0000 +++ php-league-uri-src-7.4.0/debian/changelog 2024-03-04 09:43:46.000000000 +0000 @@ -1,3 +1,9 @@ +php-league-uri-src (7.4.0-3) unstable; urgency=medium + + * Don’t test fromNative on 32-bit architectures + + -- David Prévot Mon, 04 Mar 2024 10:43:46 +0100 + php-league-uri-src (7.4.0-2) unstable; urgency=medium * Upload to unstable now that symfony 6 is compatible with league/uri 7 diff -Nru php-league-uri-src-7.4.0/debian/patches/0003-Don-t-test-fromNative-on-32-bit-architectures.patch php-league-uri-src-7.4.0/debian/patches/0003-Don-t-test-fromNative-on-32-bit-architectures.patch --- php-league-uri-src-7.4.0/debian/patches/0003-Don-t-test-fromNative-on-32-bit-architectures.patch 1970-01-01 00:00:00.000000000 +0000 +++ php-league-uri-src-7.4.0/debian/patches/0003-Don-t-test-fromNative-on-32-bit-architectures.patch 2024-03-04 09:43:41.000000000 +0000 @@ -0,0 +1,48 @@ +From: =?utf-8?q?David_Pr=C3=A9vot?= +Date: Mon, 4 Mar 2024 10:32:50 +0100 +Subject: =?utf-8?q?Don=E2=80=99t_test_fromNative_on_32-bit_architectures?= + +--- + interfaces/IPv4/ConverterTest.php | 16 ++++++++++++---- + 1 file changed, 12 insertions(+), 4 deletions(-) + +diff --git a/interfaces/IPv4/ConverterTest.php b/interfaces/IPv4/ConverterTest.php +index 318cd42..d8bab4a 100644 +--- a/interfaces/IPv4/ConverterTest.php ++++ b/interfaces/IPv4/ConverterTest.php +@@ -34,15 +34,21 @@ final class ConverterTest extends TestCase + public function testConvertToDecimal(string $input, string $decimal, string $octal, string $hexadecimal): void + { + self::assertSame($octal, Converter::fromGMP()->toOctal($input)); +- self::assertSame($octal, Converter::fromNative()->toOctal($input)); ++ if (PHP_INT_SIZE != 4) { ++ self::assertSame($octal, Converter::fromNative()->toOctal($input)); ++ } + self::assertSame($octal, Converter::fromBCMath()->toOctal($input)); + + self::assertSame($decimal, Converter::fromGMP()->toDecimal($input)); +- self::assertSame($decimal, Converter::fromNative()->toDecimal($input)); ++ if (PHP_INT_SIZE != 4) { ++ self::assertSame($decimal, Converter::fromNative()->toDecimal($input)); ++ } + self::assertSame($decimal, Converter::fromBCMath()->toDecimal($input)); + + self::assertSame($hexadecimal, Converter::fromGMP()->toHexadecimal($input)); +- self::assertSame($hexadecimal, Converter::fromNative()->toHexadecimal($input)); ++ if (PHP_INT_SIZE != 4) { ++ self::assertSame($hexadecimal, Converter::fromNative()->toHexadecimal($input)); ++ } + self::assertSame($hexadecimal, Converter::fromBCMath()->toHexadecimal($input)); + self::assertTrue(Converter::fromEnvironment()->isIpv4($input)); + } +@@ -70,7 +76,9 @@ final class ConverterTest extends TestCase + public function testParseWithInvalidHost(?string $input): void + { + self::assertNull(Converter::fromBCMath()->toHexadecimal($input)); +- self::assertNull(Converter::fromNative()->toOctal($input)); ++ if (PHP_INT_SIZE != 4) { ++ self::assertNull(Converter::fromNative()->toOctal($input)); ++ } + self::assertNull(Converter::fromGMP()->toDecimal($input)); + self::assertFalse(Converter::fromEnvironment()->isIpv4($input)); + } diff -Nru php-league-uri-src-7.4.0/debian/patches/series php-league-uri-src-7.4.0/debian/patches/series --- php-league-uri-src-7.4.0/debian/patches/series 2023-12-04 06:40:01.000000000 +0000 +++ php-league-uri-src-7.4.0/debian/patches/series 2024-03-04 09:43:41.000000000 +0000 @@ -1,2 +1,3 @@ 0001-Ship-uritemplate-test.patch 0002-Workaround-dh_phpcomposer-limitations-765899.patch +0003-Don-t-test-fromNative-on-32-bit-architectures.patch