Date: Fri, 1 Nov 2024 20:14:18 +0800 From: Po-Chuan Hsieh <sunpoet@freebsd.org> To: Vladimir Druzenko <vvd@freebsd.org> Cc: ports-committers <ports-committers@freebsd.org>, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org Subject: Re: git: cc3975393535 - main - graphics/py-python-poppler-qt5: Fix build: Cannot import 'sipbuild.api' Message-ID: <CAMHz58Rb1fjsL3pJuqyn4K_4WrCWGSefs6%2BbV7k0oKH7_T14Yw@mail.gmail.com> In-Reply-To: <202411011207.4A1C7OL7018698@gitrepo.freebsd.org> References: <202411011207.4A1C7OL7018698@gitrepo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000009247180625d8e07e Content-Type: text/plain; charset="UTF-8" Hello, On Fri, Nov 1, 2024, 20:07 Vladimir Druzenko <vvd@freebsd.org> wrote: > The branch main has been updated by vvd: > > URL: > https://cgit.FreeBSD.org/ports/commit/?id=cc3975393535d0563e4dfad9638409e2fa90941d > > commit cc3975393535d0563e4dfad9638409e2fa90941d > Author: Vladimir Druzenko <vvd@FreeBSD.org> > AuthorDate: 2024-11-01 12:02:19 +0000 > Commit: Vladimir Druzenko <vvd@FreeBSD.org> > CommitDate: 2024-11-01 12:07:14 +0000 > > graphics/py-python-poppler-qt5: Fix build: Cannot import 'sipbuild.api' > It doesn't look like fixing the broken build but adding a whole set of files to a wrong place > Traceback (most recent call last): > File > "/usr/local/lib/python3.11/site-packages/pyproject_hooks/_impl.py", line > 402, in _call_hook > raise BackendUnavailable( > pyproject_hooks._impl.BackendUnavailable: Cannot import 'sipbuild.api' > > ERROR Backend 'sipbuild.api' is not available. > > - Add missing build dependency needed after recent changes to the > python > build infrastructure. > - Replace BUILD_DEPENDS=qmake-qt5:devel/qt5-qmake with > USE_QT=qmake:build. > > PR: 282439 > Approved by: Martin Neubauer <m.ne@gmx.net> (maintainer) > MFH: 2024Q4 > --- > .../py-python-poppler-qt5/Makefile | 36 > ++++++++++++++++++++++ > .../py-python-poppler-qt5/distinfo | 3 ++ > .../py-python-poppler-qt5/pkg-descr | 8 +++++ > 3 files changed, 47 insertions(+) > > diff --git a/graphics/py-python-poppler-qt5/py-python-poppler-qt5/Makefile > b/graphics/py-python-poppler-qt5/py-python-poppler-qt5/Makefile > new file mode 100644 > index 000000000000..c4420c6346e1 > --- /dev/null > +++ b/graphics/py-python-poppler-qt5/py-python-poppler-qt5/Makefile > @@ -0,0 +1,36 @@ > +PORTNAME= python-poppler-qt5 > +DISTVERSIONPREFIX= v > +DISTVERSION= 21.3.0 > +PORTREVISION= 3 > +CATEGORIES= graphics python > +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} > + > +MAINTAINER= m.ne@gmx.net > +COMMENT= Python bindings for the Poppler-Qt PDF rendering library > +WWW= https://pypi.org/project/python-poppler-qt5/ > + > +LICENSE= LGPL21 LGPL3 > +LICENSE_COMB= dual > + > +BUILD_DEPENDS= ${PY_SETUPTOOLS} > +LIB_DEPENDS= libpoppler-qt5.so:graphics/poppler-qt5 > + > +USES= compiler:c++17-lang gl pkgconfig pyqt:5 python qt:5 > +USE_GITHUB= yes > +GH_ACCOUNT= frescobaldi > +USE_GL= gl > +USE_PYQT= pyqt5 qtbuilder:build > +USE_PYTHON= autoplist pep517 > +USE_QT= core gui xml qmake:build > + > +PEP517_BUILD_CONFIG_SETTING= -C--build-dir=build \ > + -C--jobs=${MAKE_JOBS_NUMBER} > -C--qmake=${QMAKE} \ > + -C--qmake-setting='CONFIG += c++17' \ > + -C--qmake-setting='QMAKE_CXXFLAGS += > ${CXXFLAGS}' \ > + -C--qmake-setting='QMAKE_LFLAGS += > ${LDFLAGS}' \ > + -C--verbose > + > +post-install: > + @${STRIP_CMD} > ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/popplerqt5${PYTHON_EXT_SUFFIX}.so > + > +.include <bsd.port.mk> > diff --git a/graphics/py-python-poppler-qt5/py-python-poppler-qt5/distinfo > b/graphics/py-python-poppler-qt5/py-python-poppler-qt5/distinfo > new file mode 100644 > index 000000000000..f437a81c1655 > --- /dev/null > +++ b/graphics/py-python-poppler-qt5/py-python-poppler-qt5/distinfo > @@ -0,0 +1,3 @@ > +TIMESTAMP = 1703990050 > +SHA256 (frescobaldi-python-poppler-qt5-v21.3.0_GH0.tar.gz) = > dbf3be9c8123429c8a73ebd4c18993331619198e88fa40dde99f48213fa75012 > +SIZE (frescobaldi-python-poppler-qt5-v21.3.0_GH0.tar.gz) = 25641 > diff --git > a/graphics/py-python-poppler-qt5/py-python-poppler-qt5/pkg-descr > b/graphics/py-python-poppler-qt5/py-python-poppler-qt5/pkg-descr > new file mode 100644 > index 000000000000..de574d9d336a > --- /dev/null > +++ b/graphics/py-python-poppler-qt5/py-python-poppler-qt5/pkg-descr > @@ -0,0 +1,8 @@ > +A Python binding for libpoppler-qt5 that aims for completeness > +and for being actively maintained. > + > +Created and currently maintained by Wilbert Berendsen <wbsoft@xs4all.nl>. > + > +Usage: > + import popplerqt5 > + d = popplerqt5.Poppler.Document.load('file.pdf') > > --0000000000009247180625d8e07e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div>Hello,<br><br><div class=3D"gmail_quote"><div dir=3D= "ltr" class=3D"gmail_attr">On Fri, Nov 1, 2024, 20:07 Vladimir Druzenko <= ;<a href=3D"mailto:vvd@freebsd.org">vvd@freebsd.org</a>> wrote:<br></div= ><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1= px #ccc solid;padding-left:1ex">The branch main has been updated by vvd:<br= > <br> URL: <a href=3D"https://cgit.FreeBSD.org/ports/commit/?id=3Dcc3975393535d05= 63e4dfad9638409e2fa90941d" rel=3D"noreferrer noreferrer" target=3D"_blank">= https://cgit.FreeBSD.org/ports/commit/?id=3Dcc3975393535d0563e4dfad9638409e= 2fa90941d</a><br> <br> commit cc3975393535d0563e4dfad9638409e2fa90941d<br> Author:=C2=A0 =C2=A0 =C2=A0Vladimir Druzenko <vvd@FreeBSD.org><br> AuthorDate: 2024-11-01 12:02:19 +0000<br> Commit:=C2=A0 =C2=A0 =C2=A0Vladimir Druzenko <vvd@FreeBSD.org><br> CommitDate: 2024-11-01 12:07:14 +0000<br> <br> =C2=A0 =C2=A0 graphics/py-python-poppler-qt5: Fix build: Cannot import '= ;sipbuild.api'<br></blockquote></div></div><div dir=3D"auto"><br></div>= <div dir=3D"auto">It doesn't look like fixing the broken build but addi= ng a whole set of files to a wrong place=C2=A0</div><div dir=3D"auto"><br><= /div><div dir=3D"auto"><div class=3D"gmail_quote"><blockquote class=3D"gmai= l_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left= :1ex"> <br> =C2=A0 =C2=A0 Traceback (most recent call last):<br> =C2=A0 =C2=A0 =C2=A0 File "/usr/local/lib/python3.11/site-packages/pyp= roject_hooks/_impl.py", line 402, in _call_hook<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 raise BackendUnavailable(<br> =C2=A0 =C2=A0 pyproject_hooks._impl.BackendUnavailable: Cannot import '= sipbuild.api'<br> <br> =C2=A0 =C2=A0 ERROR Backend 'sipbuild.api' is not available.<br> <br> =C2=A0 =C2=A0 - Add missing build dependency needed after recent changes to= the python<br> =C2=A0 =C2=A0 build infrastructure.<br> =C2=A0 =C2=A0 - Replace BUILD_DEPENDS=3Dqmake-qt5:devel/qt5-qmake with USE_= QT=3Dqmake:build.<br> <br> =C2=A0 =C2=A0 PR:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0282439<br> =C2=A0 =C2=A0 Approved by:=C2=A0 =C2=A0 Martin Neubauer <<a href=3D"mail= to:m.ne@gmx.net" target=3D"_blank" rel=3D"noreferrer">m.ne@gmx.net</a>> = (maintainer)<br> =C2=A0 =C2=A0 MFH:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 2024Q4<br> ---<br> =C2=A0.../py-python-poppler-qt5/Makefile=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0| 36 ++++++++++++++++++++++<br> =C2=A0.../py-python-poppler-qt5/distinfo=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 3 ++<br> =C2=A0.../py-python-poppler-qt5/pkg-descr=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 |=C2=A0 8 +++++<br> =C2=A03 files changed, 47 insertions(+)<br> <br> diff --git a/graphics/py-python-poppler-qt5/py-python-poppler-qt5/Makefile = b/graphics/py-python-poppler-qt5/py-python-poppler-qt5/Makefile<br> new file mode 100644<br> index 000000000000..c4420c6346e1<br> --- /dev/null<br> +++ b/graphics/py-python-poppler-qt5/py-python-poppler-qt5/Makefile<br> @@ -0,0 +1,36 @@<br> +PORTNAME=3D=C2=A0 =C2=A0 =C2=A0 python-poppler-qt5<br> +DISTVERSIONPREFIX=3D=C2=A0 =C2=A0 =C2=A0v<br> +DISTVERSION=3D=C2=A0 =C2=A021.3.0<br> +PORTREVISION=3D=C2=A0 3<br> +CATEGORIES=3D=C2=A0 =C2=A0 graphics python<br> +PKGNAMEPREFIX=3D ${PYTHON_PKGNAMEPREFIX}<br> +<br> +MAINTAINER=3D=C2=A0 =C2=A0 <a href=3D"mailto:m.ne@gmx.net" target=3D"_blan= k" rel=3D"noreferrer">m.ne@gmx.net</a><br> +COMMENT=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0Python bindings for the Poppler-Qt PD= F rendering library<br> +WWW=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<a href=3D"https://pypi.org= /project/python-poppler-qt5/" rel=3D"noreferrer noreferrer" target=3D"_blan= k">https://pypi.org/project/python-poppler-qt5/</a><br> +<br> +LICENSE=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0LGPL21 LGPL3<br> +LICENSE_COMB=3D=C2=A0 dual<br> +<br> +BUILD_DEPENDS=3D ${PY_SETUPTOOLS}<br> +LIB_DEPENDS=3D=C2=A0 =C2=A0libpoppler-qt5.so:graphics/poppler-qt5<br> +<br> +USES=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 compiler:c++17-lang gl pkgconfig= pyqt:5 python qt:5<br> +USE_GITHUB=3D=C2=A0 =C2=A0 yes<br> +GH_ACCOUNT=3D=C2=A0 =C2=A0 frescobaldi<br> +USE_GL=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 gl<br> +USE_PYQT=3D=C2=A0 =C2=A0 =C2=A0 pyqt5 qtbuilder:build<br> +USE_PYTHON=3D=C2=A0 =C2=A0 autoplist pep517<br> +USE_QT=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 core gui = xml qmake:build<br> +<br> +PEP517_BUILD_CONFIG_SETTING=3D=C2=A0 =C2=A0-C--build-dir=3Dbuild \<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-C--jobs=3D${MAKE_JOBS_NUMBER} -C--qm= ake=3D${QMAKE} \<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-C--qmake-setting=3D'CONFIG +=3D = c++17' \<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-C--qmake-setting=3D'QMAKE_CXXFLA= GS +=3D ${CXXFLAGS}' \<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-C--qmake-setting=3D'QMAKE_LFLAGS= +=3D ${LDFLAGS}' \<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-C--verbose<br> +<br> +post-install:<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIB= DIR}/popplerqt5${PYTHON_EXT_SUFFIX}.so<br> +<br> +.include <<a href=3D"http://bsd.port.mk" rel=3D"noreferrer noreferrer" = target=3D"_blank">bsd.port.mk</a>><br> diff --git a/graphics/py-python-poppler-qt5/py-python-poppler-qt5/distinfo = b/graphics/py-python-poppler-qt5/py-python-poppler-qt5/distinfo<br> new file mode 100644<br> index 000000000000..f437a81c1655<br> --- /dev/null<br> +++ b/graphics/py-python-poppler-qt5/py-python-poppler-qt5/distinfo<br> @@ -0,0 +1,3 @@<br> +TIMESTAMP =3D 1703990050<br> +SHA256 (frescobaldi-python-poppler-qt5-v21.3.0_GH0.tar.gz) =3D dbf3be9c812= 3429c8a73ebd4c18993331619198e88fa40dde99f48213fa75012<br> +SIZE (frescobaldi-python-poppler-qt5-v21.3.0_GH0.tar.gz) =3D 25641<br> diff --git a/graphics/py-python-poppler-qt5/py-python-poppler-qt5/pkg-descr= b/graphics/py-python-poppler-qt5/py-python-poppler-qt5/pkg-descr<br> new file mode 100644<br> index 000000000000..de574d9d336a<br> --- /dev/null<br> +++ b/graphics/py-python-poppler-qt5/py-python-poppler-qt5/pkg-descr<br> @@ -0,0 +1,8 @@<br> +A Python binding for libpoppler-qt5 that aims for completeness<br> +and for being actively maintained.<br> +<br> +Created and currently maintained by Wilbert Berendsen <<a href=3D"mailt= o:wbsoft@xs4all.nl" target=3D"_blank" rel=3D"noreferrer">wbsoft@xs4all.nl</= a>>.<br> +<br> +Usage:<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0import popplerqt5<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0d =3D popplerqt5.Poppler.Document.load('fil= e.pdf')<br> <br> </blockquote></div></div></div> --0000000000009247180625d8e07e--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMHz58Rb1fjsL3pJuqyn4K_4WrCWGSefs6%2BbV7k0oKH7_T14Yw>