Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Apr 2024 22:39:06 +0800
From:      Po-Chuan Hsieh <sunpoet@freebsd.org>
To:        Vladimir Druzenko <vvd@freebsd.org>
Cc:        dev-commits-ports-main@freebsd.org, ports-committers@freebsd.org,  dev-commits-ports-all@freebsd.org
Subject:   Re: git: e710744f6c83 - main - graphics/GraphicsMagick: Update to 1.3.43
Message-ID:  <CAMHz58S8WVe6OrvK5Etty85Uus1pKCNbrKG1Z=uxYKpeLx2xsg@mail.gmail.com>
In-Reply-To: <28fe5b36-8136-44b7-b08f-fe3b653d60d3@freebsd.org>
References:  <202404181253.43ICr61o069768@gitrepo.freebsd.org> <28fe5b36-8136-44b7-b08f-fe3b653d60d3@freebsd.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Fri, Apr 19, 2024 at 12:21 AM Vladimir Druzenko <vvd@freebsd.org> wrote:

> 18.04.2024 15:53, Po-Chuan Hsieh пишет:
> > The branch main has been updated by sunpoet:
> >
> > URL:
> https://cgit.FreeBSD.org/ports/commit/?id=e710744f6c835f2b99cbfca56d523d46109e63b0
> >
> > commit e710744f6c835f2b99cbfca56d523d46109e63b0
> > Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
> > AuthorDate: 2024-04-18 12:47:58 +0000
> > Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
> > CommitDate: 2024-04-18 12:47:58 +0000
> >
> >      graphics/GraphicsMagick: Update to 1.3.43
> >
> >      Changes:        http://www.graphicsmagick.org/NEWS.html
> > ---
> >   graphics/GraphicsMagick/Makefile                 |  5 +-
> >   graphics/GraphicsMagick/distinfo                 |  6 +--
> >   graphics/GraphicsMagick/files/patch-Makefile.in  | 11 ----
> >   graphics/GraphicsMagick/files/patch-coders_jxl.c | 63
> ----------------------
> >   graphics/GraphicsMagick/files/patch-configure    | 28 +++-------
> >   graphics/GraphicsMagick/files/patch-jpeg-turbo   | 67
> ------------------------
> >   graphics/GraphicsMagick/pkg-plist                | 11 ++--
> >   7 files changed, 20 insertions(+), 171 deletions(-)
> >
> > diff --git a/graphics/GraphicsMagick/Makefile
> b/graphics/GraphicsMagick/Makefile
> > index be2ef664e5cf..98b9b182def1 100644
> > --- a/graphics/GraphicsMagick/Makefile
> > +++ b/graphics/GraphicsMagick/Makefile
> > @@ -1,6 +1,5 @@
> >   PORTNAME=   GraphicsMagick
> > -PORTVERSION= 1.3.40
> > -PORTREVISION=        5
> > +PORTVERSION= 1.3.43
> >   PORTEPOCH=  1
> >   CATEGORIES= graphics
> >   MASTER_SITES=       SF
> > @@ -11,7 +10,7 @@ WWW=                http://www.graphicsmagick.org/
> >
> >   LICENSE=    MIT
> >
> > -USES=                cpe libtool localbase pathfix pkgconfig tar:zst
> > +USES=                cpe libtool localbase pathfix pkgconfig tar:xz
> >
> >   CONFIGURE_ARGS=     --enable-shared --enable-static \
> >               --with-windows-font-dir=${WINDOWS_FONT_DIR} \
>
> Hello!
>
> Build fails with FPX option on:
>
> > libtool: link: cc -fopenmp -O2 -pipe -march=nehalem
> > -fstack-protector-strong -isystem /usr/local/include
> > -fno-strict-aliasing -Wall -D_THREAD_SAFE -fstack-protector-strong
> > -fstack-protector-strong -o utilities/.libs/gm utilities/gm.o
> > -L/usr/local/lib magick/.libs/libGraphicsMagick.so -ljasper -lwmflite
> > -ljxl -ljxl_threads -ltiff -ljbig -lsharpyuv -lwebp -lwebpmux
> > -lfreetype -ljpeg -lpng16 -llcms2 -llcms2_fast_float -llcms2_threaded
> > -lXext -lSM -lICE -lX11 -lxml2 -llzma -lbz2 -lz -lm -lpthread -lomp
> > -fopenmp -Wl,-rpath -Wl,/usr/local/lib
> > ld: error: undefined reference due to --no-allow-shlib-undefined:
> > FPX_InitSystem
> > >>> referenced by magick/.libs/libGraphicsMagick.so
> >
> > ld: error: undefined reference due to --no-allow-shlib-undefined:
> > FPX_SetToolkitMemoryLimit
> > >>> referenced by magick/.libs/libGraphicsMagick.so
> >
> > ld: error: undefined reference due to --no-allow-shlib-undefined:
> > FPX_ClearSystem
> > >>> referenced by magick/.libs/libGraphicsMagick.so
> >
> > ld: error: undefined reference due to --no-allow-shlib-undefined:
> > FPX_OpenImageByFilename
> > >>> referenced by magick/.libs/libGraphicsMagick.so
> >
> > ld: error: undefined reference due to --no-allow-shlib-undefined:
> > FPX_GetSummaryInformation
> > >>> referenced by magick/.libs/libGraphicsMagick.so
> >
> > ld: error: undefined reference due to --no-allow-shlib-undefined:
> > FPX_GetImageResultAspectRatio
> > >>> referenced by magick/.libs/libGraphicsMagick.so
> >
> > ld: error: undefined reference due to --no-allow-shlib-undefined:
> > FPX_CloseImage
> > >>> referenced by magick/.libs/libGraphicsMagick.so
> >
> > ld: error: undefined reference due to --no-allow-shlib-undefined:
> > FPX_SetResampleMethod
> > >>> referenced by magick/.libs/libGraphicsMagick.so
> >
> > ld: error: undefined reference due to --no-allow-shlib-undefined:
> > FPX_ReadImageRectangle
> > >>> referenced by magick/.libs/libGraphicsMagick.so
> >
> > ld: error: undefined reference due to --no-allow-shlib-undefined:
> > FPX_ReadImageTransformRectangle
> > >>> referenced by magick/.libs/libGraphicsMagick.so
> >
> > ld: error: undefined reference due to --no-allow-shlib-undefined:
> > FPX_CreateImageByFilename
> > >>> referenced by magick/.libs/libGraphicsMagick.so
> >
> > ld: error: undefined reference due to --no-allow-shlib-undefined:
> > FPX_SetJPEGCompression
> > >>> referenced by magick/.libs/libGraphicsMagick.so
> >
> > ld: error: undefined reference due to --no-allow-shlib-undefined:
> > FPX_SetSummaryInformation
> > >>> referenced by magick/.libs/libGraphicsMagick.so
> >
> > ld: error: undefined reference due to --no-allow-shlib-undefined:
> > FPX_WriteImageLine
> > >>> referenced by magick/.libs/libGraphicsMagick.so
> > cc: error: linker command failed with exit code 1 (use -v to see
> > invocation)
> > *** [utilities/gm] Error code 1
>
>
> Fixed with patch:
> -USES=           cpe libtool localbase pathfix pkgconfig tar:xz
> +USES=           cpe libtool localbase:ldflags pathfix pkgconfig tar:xz
> +FPX_LDFLAGS=            -lfpx
>
> Tested on 13.3-p1 amd64 in poudriere and on live system.
>
> If you agree I can commit self.
>
> --
> Best regards,
> Vladimir Druzenko
>

Fixed in ports f57677209d3a6981cbb5e2bceba03c37ea2f65a8. Thanks.
However, I'd like to remove it. I wonder if people really use fpx nowadays.

[-- Attachment #2 --]
<div dir="ltr"><div dir="ltr">On Fri, Apr 19, 2024 at 12:21 AM Vladimir Druzenko &lt;<a href="mailto:vvd@freebsd.org">vvd@freebsd.org</a>&gt; wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">18.04.2024 15:53, Po-Chuan Hsieh пишет:<br>
&gt; The branch main has been updated by sunpoet:<br>
&gt;<br>
&gt; URL: <a href="https://cgit.FreeBSD.org/ports/commit/?id=e710744f6c835f2b99cbfca56d523d46109e63b0" rel="noreferrer" target="_blank">https://cgit.FreeBSD.org/ports/commit/?id=e710744f6c835f2b99cbfca56d523d46109e63b0</a><br>;
&gt;<br>
&gt; commit e710744f6c835f2b99cbfca56d523d46109e63b0<br>
&gt; Author:     Po-Chuan Hsieh &lt;sunpoet@FreeBSD.org&gt;<br>
&gt; AuthorDate: 2024-04-18 12:47:58 +0000<br>
&gt; Commit:     Po-Chuan Hsieh &lt;sunpoet@FreeBSD.org&gt;<br>
&gt; CommitDate: 2024-04-18 12:47:58 +0000<br>
&gt;<br>
&gt;      graphics/GraphicsMagick: Update to 1.3.43<br>
&gt;      <br>
&gt;      Changes:        <a href="http://www.graphicsmagick.org/NEWS.html" rel="noreferrer" target="_blank">http://www.graphicsmagick.org/NEWS.html</a><br>;
&gt; ---<br>
&gt;   graphics/GraphicsMagick/Makefile                 |  5 +-<br>
&gt;   graphics/GraphicsMagick/distinfo                 |  6 +--<br>
&gt;   graphics/GraphicsMagick/files/patch-Makefile.in  | 11 ----<br>
&gt;   graphics/GraphicsMagick/files/patch-coders_jxl.c | 63 ----------------------<br>
&gt;   graphics/GraphicsMagick/files/patch-configure    | 28 +++-------<br>
&gt;   graphics/GraphicsMagick/files/patch-jpeg-turbo   | 67 ------------------------<br>
&gt;   graphics/GraphicsMagick/pkg-plist                | 11 ++--<br>
&gt;   7 files changed, 20 insertions(+), 171 deletions(-)<br>
&gt;<br>
&gt; diff --git a/graphics/GraphicsMagick/Makefile b/graphics/GraphicsMagick/Makefile<br>
&gt; index be2ef664e5cf..98b9b182def1 100644<br>
&gt; --- a/graphics/GraphicsMagick/Makefile<br>
&gt; +++ b/graphics/GraphicsMagick/Makefile<br>
&gt; @@ -1,6 +1,5 @@<br>
&gt;   PORTNAME=   GraphicsMagick<br>
&gt; -PORTVERSION= 1.3.40<br>
&gt; -PORTREVISION=        5<br>
&gt; +PORTVERSION= 1.3.43<br>
&gt;   PORTEPOCH=  1<br>
&gt;   CATEGORIES= graphics<br>
&gt;   MASTER_SITES=       SF<br>
&gt; @@ -11,7 +10,7 @@ WWW=                <a href="http://www.graphicsmagick.org/" rel="noreferrer" target="_blank">http://www.graphicsmagick.org/</a><br>;
&gt;   <br>
&gt;   LICENSE=    MIT<br>
&gt;   <br>
&gt; -USES=                cpe libtool localbase pathfix pkgconfig tar:zst<br>
&gt; +USES=                cpe libtool localbase pathfix pkgconfig tar:xz<br>
&gt;   <br>
&gt;   CONFIGURE_ARGS=     --enable-shared --enable-static \<br>
&gt;               --with-windows-font-dir=${WINDOWS_FONT_DIR} \<br>
<br>
Hello!<br>
<br>
Build fails with FPX option on:<br>
<br>
&gt; libtool: link: cc -fopenmp -O2 -pipe -march=nehalem <br>
&gt; -fstack-protector-strong -isystem /usr/local/include <br>
&gt; -fno-strict-aliasing -Wall -D_THREAD_SAFE -fstack-protector-strong <br>
&gt; -fstack-protector-strong -o utilities/.libs/gm utilities/gm.o  <br>
&gt; -L/usr/local/lib magick/.libs/libGraphicsMagick.so -ljasper -lwmflite <br>
&gt; -ljxl -ljxl_threads -ltiff -ljbig -lsharpyuv -lwebp -lwebpmux <br>
&gt; -lfreetype -ljpeg -lpng16 -llcms2 -llcms2_fast_float -llcms2_threaded <br>
&gt; -lXext -lSM -lICE -lX11 -lxml2 -llzma -lbz2 -lz -lm -lpthread -lomp <br>
&gt; -fopenmp -Wl,-rpath -Wl,/usr/local/lib<br>
&gt; ld: error: undefined reference due to --no-allow-shlib-undefined: <br>
&gt; FPX_InitSystem<br>
&gt; &gt;&gt;&gt; referenced by magick/.libs/libGraphicsMagick.so<br>
&gt;<br>
&gt; ld: error: undefined reference due to --no-allow-shlib-undefined: <br>
&gt; FPX_SetToolkitMemoryLimit<br>
&gt; &gt;&gt;&gt; referenced by magick/.libs/libGraphicsMagick.so<br>
&gt;<br>
&gt; ld: error: undefined reference due to --no-allow-shlib-undefined: <br>
&gt; FPX_ClearSystem<br>
&gt; &gt;&gt;&gt; referenced by magick/.libs/libGraphicsMagick.so<br>
&gt;<br>
&gt; ld: error: undefined reference due to --no-allow-shlib-undefined: <br>
&gt; FPX_OpenImageByFilename<br>
&gt; &gt;&gt;&gt; referenced by magick/.libs/libGraphicsMagick.so<br>
&gt;<br>
&gt; ld: error: undefined reference due to --no-allow-shlib-undefined: <br>
&gt; FPX_GetSummaryInformation<br>
&gt; &gt;&gt;&gt; referenced by magick/.libs/libGraphicsMagick.so<br>
&gt;<br>
&gt; ld: error: undefined reference due to --no-allow-shlib-undefined: <br>
&gt; FPX_GetImageResultAspectRatio<br>
&gt; &gt;&gt;&gt; referenced by magick/.libs/libGraphicsMagick.so<br>
&gt;<br>
&gt; ld: error: undefined reference due to --no-allow-shlib-undefined: <br>
&gt; FPX_CloseImage<br>
&gt; &gt;&gt;&gt; referenced by magick/.libs/libGraphicsMagick.so<br>
&gt;<br>
&gt; ld: error: undefined reference due to --no-allow-shlib-undefined: <br>
&gt; FPX_SetResampleMethod<br>
&gt; &gt;&gt;&gt; referenced by magick/.libs/libGraphicsMagick.so<br>
&gt;<br>
&gt; ld: error: undefined reference due to --no-allow-shlib-undefined: <br>
&gt; FPX_ReadImageRectangle<br>
&gt; &gt;&gt;&gt; referenced by magick/.libs/libGraphicsMagick.so<br>
&gt;<br>
&gt; ld: error: undefined reference due to --no-allow-shlib-undefined: <br>
&gt; FPX_ReadImageTransformRectangle<br>
&gt; &gt;&gt;&gt; referenced by magick/.libs/libGraphicsMagick.so<br>
&gt;<br>
&gt; ld: error: undefined reference due to --no-allow-shlib-undefined: <br>
&gt; FPX_CreateImageByFilename<br>
&gt; &gt;&gt;&gt; referenced by magick/.libs/libGraphicsMagick.so<br>
&gt;<br>
&gt; ld: error: undefined reference due to --no-allow-shlib-undefined: <br>
&gt; FPX_SetJPEGCompression<br>
&gt; &gt;&gt;&gt; referenced by magick/.libs/libGraphicsMagick.so<br>
&gt;<br>
&gt; ld: error: undefined reference due to --no-allow-shlib-undefined: <br>
&gt; FPX_SetSummaryInformation<br>
&gt; &gt;&gt;&gt; referenced by magick/.libs/libGraphicsMagick.so<br>
&gt;<br>
&gt; ld: error: undefined reference due to --no-allow-shlib-undefined: <br>
&gt; FPX_WriteImageLine<br>
&gt; &gt;&gt;&gt; referenced by magick/.libs/libGraphicsMagick.so<br>
&gt; cc: error: linker command failed with exit code 1 (use -v to see <br>
&gt; invocation)<br>
&gt; *** [utilities/gm] Error code 1<br>
<br>
<br>
Fixed with patch:<br>
-USES=           cpe libtool localbase pathfix pkgconfig tar:xz<br>
+USES=           cpe libtool localbase:ldflags pathfix pkgconfig tar:xz<br>
+FPX_LDFLAGS=            -lfpx<br>
<br>
Tested on 13.3-p1 amd64 in poudriere and on live system.<br>
<br>
If you agree I can commit self.<br>
<br>
-- <br>
Best regards,<br>
Vladimir Druzenko<br></blockquote><div><br></div><div>Fixed in ports f57677209d3a6981cbb5e2bceba03c37ea2f65a8. Thanks.</div><div>However, I&#39;d like to remove it. I wonder if people really use fpx nowadays.</div></div></div>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMHz58S8WVe6OrvK5Etty85Uus1pKCNbrKG1Z=uxYKpeLx2xsg>