pkgsrc-Users archive

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

Re: Python package issues





On 24/05/2019 18:55, Mike Pumford wrote:


On 23/05/2019 19:40, Greg Troxel wrote:
Sad Clouds <cryintothebluesky%gmail.com@localhost> writes:

Well, something is not right here. I completely removed /usr/pkg and
build directories, and started from scratch but I'm getting this error

But are you removing the work directories *every time* before you build
things?

Sometimes you can't. If you have a package chain that depends on the py27 and py37 version of the same package you can't do a make clean in between. Only fix here is for pkgsrc to do a make clean after make install for packages being installed as dependencies.

I ran into a similar issue trying to build xfce4 in a chroot. gtk2 blew up as its dependency chain included python 2.7 and python 3.7 versions of the same package.

I've still got the error log from the build in my jenkins server if you want complete output.

Here is why things go wrong:

pkgsrc/x11/gtk2 $ make print-build-depends-list
This package requires package(s) "atk-2.26.1 autoconf-2.69nb8 bison-3.2.4 bsdtar-3.3.3 cairo-1.16.0 cairo-gobject-1.16.0nb3 cwrappers-20180325 digest-20190127 fontconfig-2.13.1 freetype2-2.10.0 fribidi-0.19.7 gdk-pixbuf2-2.36.12 glib2-2.56.2nb4 glib2-tools-2.56.2nb1 gmake-4.2.1nb1 gobject-introspection-1.56.1nb2 gperf-3.1 harfbuzz-2.4.0nb2 help2man-1.47.10 icu-64.2nb1 intltool-0.51.0nb3 jbigkit-2.1 jpeg-9cnb1 libXft-2.3.3 libelf-0.8.13nb1 libffi-3.2.1nb4 libtool-base-2.4.6nb2 libuuid-2.32.1 libxml2-2.9.9 lzo-2.10 m4-1.4.18nb2 mozilla-rootcerts-1.0.20190306 osabi-NetBSD-8.1_RC1 p5-XML-Parser-2.44nb4 p5-gettext-1.07nb3 pango-1.42.4nb3 pcre-8.43 perl-5.28.2 pkgconf-1.6.0 png-1.6.37 py37-cElementTree-3.7.3 py37-expat-3.7.3 python27-2.7.16 python37-3.7.3nb1 readline-8.0 shared-mime-info-1.10 tiff-4.0.10 x11-links-1.18 xmlcatmgr-2.2nb1" to build.

pkgsrc/x11/gtk2 $ make print-run-depends-list
This package requires package(s) "atk>=1.11.4 atk>=1.30.0 atk>=2.6.0 cairo>=1.0.0nb2 cairo>=1.16.0 cairo>=1.6.0 fontconfig>=2.10.93 fontconfig>=2.13.0 gdk-pixbuf2>=2.22.0 gdk-pixbuf2>=2.34.0nb1 glib2>=2.28.0 glib2>=2.34.0 glib2>=2.4.0 libXft>=2.1.10 libXft>=2.3.2nb2 pango>=1.20.0 pango>=1.42.4nb2 pango>=1.6.0 py27-expat-[0-9]* python27>=2.7 python27>=2.7.1nb2 shared-mime-info>=0.15 shared-mime-info>=1.0nb1" to run.

gtk2 has a build dependency on py37-expat so that gets built and installed as a dependency (I'm using pkg_comp1 and that leaves the work directory behind when building dependencies). gtk2 then also needs py27-expat as well but the build comes unstuck at this point as the work directory that has build py37-expat is still there.

As a pkgsrc user I shouldn't have to manually intervene in this situation to clean out the work directory and then restart the build of gtk2. Is there an option to tell pkgsrc to do a make clean after a make install when building package dependencies?

Mike


Home | Main Index | Thread Index | Old Index