dev-perl/Image-Scale: link math explicitly

Used math functions without to the math library.

Do some fixups while revbumping.

Closes: https://bugs.gentoo.org/969792
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/45698
Closes: https://github.com/gentoo/gentoo/pull/45698
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alfred Wingate
2026-02-09 00:56:44 +02:00
committed by Sam James
parent 7d558bc023
commit 14b194ed48
2 changed files with 23 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -19,13 +19,13 @@ REQUIRED_USE="|| ( jpeg png )"
RDEPEND="
png? (
media-libs/libpng:0
media-libs/libpng:=
)
jpeg? (
virtual/jpeg:0
media-libs/libjpeg-turbo:=
)
gif? (
media-libs/giflib
media-libs/giflib:=
)
"
DEPEND="${RDEPEND}
@@ -34,7 +34,6 @@ BDEPEND="${RDEPEND}
test? (
dev-perl/Test-NoWarnings
)
virtual/perl-ExtUtils-MakeMaker
"
# https://rt.cpan.org/Ticket/Display.html?id=112217
@@ -42,6 +41,7 @@ DIST_TEST="do"
PATCHES=(
"${FILESDIR}"/0.80.0-disable_autodetect.patch
"${FILESDIR}"/Image-Scale-0.140.0-link-math.patch
)
PERL_RM_FILES=( "t/04critic.t" "t/02pod.t" "t/03podcoverage.t" )

View File

@@ -0,0 +1,18 @@
https://bugs.gentoo.org/969792
diff --git a/Makefile.PL b/Makefile.PL
index ff8f585..67e7371 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -74,6 +74,10 @@ if ( $^O =~ /Win32/i ) {
push @check, '../lpng143';
push @check, '../giflib-4.1.6/lib';
}
+else {
+ # Needed to link math functions on POSIX
+ push @LIBS, '-lm';
+}
# Look for libjpeg
for my $incdir ( $jpeg_inc, @check ) {