commit: 14b194ed488aa254851093fbafc084cbef6ec558 Author: Alfred Wingate <parona <AT> protonmail <DOT> com> AuthorDate: Sun Feb 8 22:56:44 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Feb 8 23:30:00 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14b194ed
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 <AT> 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 <AT> gentoo.org> ...le-0.140.0.ebuild => Image-Scale-0.140.0-r1.ebuild} | 10 +++++----- .../files/Image-Scale-0.140.0-link-math.patch | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/dev-perl/Image-Scale/Image-Scale-0.140.0.ebuild b/dev-perl/Image-Scale/Image-Scale-0.140.0-r1.ebuild similarity index 83% rename from dev-perl/Image-Scale/Image-Scale-0.140.0.ebuild rename to dev-perl/Image-Scale/Image-Scale-0.140.0-r1.ebuild index 00f162d14ea5..c80dd0359d27 100644 --- a/dev-perl/Image-Scale/Image-Scale-0.140.0.ebuild +++ b/dev-perl/Image-Scale/Image-Scale-0.140.0-r1.ebuild @@ -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" ) diff --git a/dev-perl/Image-Scale/files/Image-Scale-0.140.0-link-math.patch b/dev-perl/Image-Scale/files/Image-Scale-0.140.0-link-math.patch new file mode 100644 index 000000000000..5d4b80187fa1 --- /dev/null +++ b/dev-perl/Image-Scale/files/Image-Scale-0.140.0-link-math.patch @@ -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 ) { +
