pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

RE: pkgsrc/devel/py-gi-docgen - graphviz side effect



Hi Thomas,

I've updated the mk.conf as suggested, but ...

devil# cat /etc/mk.conf | grep -e "-x11"
PKG_DEFAULT_OPTIONS=-x11
devil#

And even with that:

RR> Re-checking for unsafe installed packages (unsafe_depends_strict=YES)
RR> Packages to rebuild:
rr> MISMATCH_TODO=[gdk-pixbuf2 py313-gi-docgen] (2 packages)
rr> REBUILD_TODO=[]
rr> MISSING_TODO=[]
rr> UNSAFE_TODO=[py313-awscli2] (1 package)
RR> Checking if py313-gi-docgen has new depends...
RR> py313-gi-docgen has the following new depends (need to re-tsort):
rr> [graphviz]
RR> Packages to rebuild:
rr> MISMATCH_TODO=[gdk-pixbuf2 py313-gi-docgen] (2 packages)
rr> REBUILD_TODO=[]
rr> MISSING_TODO=[graphviz] (1 package)
rr> UNSAFE_TODO=[py313-awscli2] (1 package)
RR> Checking if graphviz has new depends...
RR> graphviz has the following new depends (need to re-tsort):
rr> [autoconf automake bison checkperms cwrappers fontconfig freetype2 gd glib2-tools gmake gts libltdl libtool-base libwebp m4 mktools pango pkgconf python313 urw-fonts x11-links xcb-proto xorgproto]
RR> Packages to rebuild:
rr> MISMATCH_TODO=[gdk-pixbuf2 py313-gi-docgen] (2 packages)
rr> REBUILD_TODO=[]
rr> MISSING_TODO=[graphviz xorgproto xcb-proto x11-links urw-fonts pango] (6 packages)
rr> UNSAFE_TODO=[py313-awscli2] (1 package)
RR> Checking if pango has new depends...
RR> pango has the following new depends (need to re-tsort):
rr> [cairo checkperms cwrappers fontconfig freetype2 fribidi glib2 glib2-tools gobject-introspection graphite2 harfbuzz meson mktools pkgconf x11-links xcb-proto xorgproto]
RR> Packages to rebuild:
rr> MISMATCH_TODO=[gdk-pixbuf2 py313-gi-docgen] (2 packages)
rr> REBUILD_TODO=[]
rr> MISSING_TODO=[graphviz urw-fonts pango cairo xorgproto xcb-proto x11-links] (7 packages)
rr> UNSAFE_TODO=[py313-awscli2] (1 package)
RR> Checking if x11-links has new depends...
RR> x11-links has the following new depends (need to re-tsort):
rr> [checkperms cwrappers mktools osabi-NetBSD]
RR> Selecting x11-links (pkgtools/x11-links) as next package to replace
===> Cleaning for x11-links-1.36
RR> Installing x11-links
ERROR: [can-be-built-here.mk] This package has PKG_FAIL_REASON set:
ERROR: pkgsrc has been configured to use a system provided X11 installation
ERROR: but one could not be found. Possible solutions:
ERROR:
ERROR:  *) install X headers and libraries in X11BASE (currently /usr/X11R7)
ERROR:  *) set X11_TYPE=modular in mk.conf to use X11 from pkgsrc
ERROR:
ERROR: Please note that changing the value of X11_TYPE in existing
ERROR: pkgsrc installations is not supported!
ERROR: [bsd.pkg.mk] x11-links-1.36 uses X11, but /usr/X11R7 not found
*** Error code 1

Stop.
make: stopped making "install" in /usr/pkgsrc/pkgtools/x11-links


--
Marcin Gondek / Drixter
http://fido.e-utp.net/
AS56662

-----Original Message-----
From: pkgsrc-users-owner%NetBSD.org@localhost <pkgsrc-users-owner%NetBSD.org@localhost> On Behalf Of Thomas Klausner
Sent: Monday, January 26, 2026 11:23 PM
To: Marcin Gondek <drixter%e-utp.net@localhost>
Cc: pkgsrc-users%NetBSD.org@localhost
Subject: Re: pkgsrc/devel/py-gi-docgen - graphviz side effect

If it's pango, turn off the x11 option there as well -- I suggest turning it off by default

PKG_DEFAULT_OPTIONS=-x11

if you don't want x11 dependencies.
 Thomas

On Mon, Jan 26, 2026 at 11:21:17PM +0100, Thomas Klausner wrote:
> Hi!
> 
> I haven't read pkgrrxx output before, and I suspect many others 
> haven't either - so can you please explain along which path the x11 
> dependency comes from?
> 
> In other news, you can turn off the doc option for librsvg now to 
> avoid the dependency there.
>  Thomas
> 
> 
> On Mon, Jan 26, 2026 at 10:16:09PM +0100, Marcin Gondek wrote:
> > Hi Thomas,
> > 
> > Doesn't fly:
> > 
> > devil# cat /etc/mk.conf | grep -e "-x11"
> > PKG_OPTIONS.graphviz=-x11
> > PKG_OPTIONS.pango=-x11
> > 
> > Even with:
> > devil# cat /etc/mk.conf | grep -e "-x11"
> > PKG_OPTIONS.graphviz=-gd -ghostscript -lua -poppler -svg -x11 
> > -quartz PKG_OPTIONS.pango=-introspection -libthai -x11 devil#
> > 
> > 
> > devil# pkgrrxx -suv
> > RR> Checking for mismatched installed packages by scanning source 
> > RR> tree devel/py-gi-docgen - py313-gi-docgen-2025.5 < 
> > RR> py313-gi-docgen-2026.1
> > RR> graphics/gdk-pixbuf2 - gdk-pixbuf2-2.44.4 < 
> > RR> gdk-pixbuf2-2.44.4nb1 Marking outdated packages as mismatched 
> > RR> Checking for rebuild-requested installed packages (rebuild=YES) 
> > RR> Checking for unsafe installed packages 
> > RR> (unsafe_depends_strict=YES) Building dependency graph for 
> > RR> installed packages Packages to rebuild:
> > rr> MISMATCH_TODO=[gdk-pixbuf2 py313-gi-docgen] (2 packages) 
> > rr> REBUILD_TODO=[] MISSING_TODO=[]
> > rr> UNSAFE_TODO=[py313-awscli2 py313-test-cov] (2 packages)
> > RR> Checking if py313-gi-docgen has new depends...
> > RR> py313-gi-docgen has the following new depends (need to re-tsort):
> > rr> [graphviz]
> > RR> Packages to rebuild:
> > rr> MISMATCH_TODO=[gdk-pixbuf2 py313-gi-docgen] (2 packages) 
> > rr> REBUILD_TODO=[] MISSING_TODO=[graphviz] (1 package)
> > rr> UNSAFE_TODO=[py313-awscli2 py313-test-cov] (2 packages)
> > RR> Checking if graphviz has new depends...
> > RR> graphviz has the following new depends (need to re-tsort):
> > rr> [autoconf automake bison checkperms cwrappers fontconfig 
> > rr> freetype2 gd glib2-tools gmake gts libltdl libtool-base libwebp 
> > rr> m4 mktools pango pkgconf python313 urw-fonts x11-links xcb-proto 
> > rr> xorgproto]
> > RR> Packages to rebuild:
> > rr> MISMATCH_TODO=[gdk-pixbuf2 py313-gi-docgen] (2 packages) 
> > rr> REBUILD_TODO=[] MISSING_TODO=[graphviz xorgproto xcb-proto 
> > rr> x11-links urw-fonts pango] (6 packages)
> > rr> UNSAFE_TODO=[py313-awscli2 py313-test-cov] (2 packages)
> > RR> Checking if pango has new depends...
> > RR> pango has the following new depends (need to re-tsort):
> > rr> [cairo checkperms cwrappers fontconfig freetype2 fribidi glib2 
> > rr> glib2-tools gobject-introspection graphite2 harfbuzz meson 
> > rr> mktools pkgconf x11-links xcb-proto xorgproto]
> > RR> Packages to rebuild:
> > rr> MISMATCH_TODO=[gdk-pixbuf2 py313-gi-docgen] (2 packages) 
> > rr> REBUILD_TODO=[] MISSING_TODO=[graphviz urw-fonts pango cairo 
> > rr> xorgproto xcb-proto x11-links] (7 packages)
> > rr> UNSAFE_TODO=[py313-awscli2 py313-test-cov] (2 packages)
> > RR> Checking if x11-links has new depends...
> > RR> x11-links has the following new depends (need to re-tsort):
> > rr> [checkperms cwrappers mktools osabi-NetBSD]
> > RR> Selecting x11-links (pkgtools/x11-links) as next package to 
> > RR> replace
> > ===> Cleaning for x11-links-1.36
> > RR> Installing x11-links
> > ERROR: [can-be-built-here.mk] This package has PKG_FAIL_REASON set:
> > ERROR: pkgsrc has been configured to use a system provided X11 
> > installation
> > ERROR: but one could not be found. Possible solutions:
> > ERROR:
> > ERROR:  *) install X headers and libraries in X11BASE (currently 
> > /usr/X11R7)
> > ERROR:  *) set X11_TYPE=modular in mk.conf to use X11 from pkgsrc
> > ERROR:
> > ERROR: Please note that changing the value of X11_TYPE in existing
> > ERROR: pkgsrc installations is not supported!
> > ERROR: [bsd.pkg.mk] x11-links-1.36 uses X11, but /usr/X11R7 not 
> > found
> > *** Error code 1
> > 
> > Stop.
> > make: stopped making "install" in 
> > /srv/NetBSD/pkgsrc/pkgtools/x11-links
> > - x11-links
> > 
> > 
> > --
> > Marcin Gondek / Drixter
> > http://fido.e-utp.net/
> > AS56662
> > 
> > -----Original Message-----
> > From: Thomas Klausner <wiz%netbsd.org@localhost>
> > Sent: Monday, January 26, 2026 10:10 PM
> > To: Marcin Gondek <drixter%e-utp.net@localhost>
> > Cc: pkgsrc-users%NetBSD.org@localhost
> > Subject: Re: pkgsrc/devel/py-gi-docgen - graphviz side effect
> > 
> > On Mon, Jan 26, 2026 at 07:01:34PM +0100, Marcin Gondek wrote:
> > > The new dependency requires X11/Xorg indirectly, it is expected? Maybe it's worth to put this as option?
> > 
> > graphviz already has an x11 option - try turning that off.
> > 
> > I considered making the py-gi-docgen dependency in libsrvg optional, perhaps I should do that. This would mean stopping to install its API documentation.
> >  Thomas


Home | Main Index | Thread Index | Old Index