pkgsrc-Users archive

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

Re: net/freerdp2 missing build dependency on python27 via gnome-doc-utils/py-xslt


I just came across this post while searching for any discussion on this textproc/gnome-doc-utils issue. I don't see that there was any response and the issue is still present in the 2020Q4 release.

In my case, the problem is triggered by building biology/bioperl. Among its many dependencies, it eventually pulls in textproc/gnome-doc-utils and the same problem ensues.

The workaround is to ensure that lang/python27 is already installed, but pkgsrc should really just handle this automatically.

Iain Morgan

On 11/21/20, 23:10, " on behalf of Bodie" < on behalf of> wrote:

    Hi all,

    $ uname -a
    NetBSD hostname 9.99.75 NetBSD 9.99.75 (GENERIC) #0: Fri Nov 20 20:01:16 
    UTC 2020 amd64

    $ pkg_info | grep -i python
    python37-3.7.9nb2   Interpreted, interactive, object-oriented 
    programming language
    glib2-tools-2.66.0  GLib2/gobject python-dependent tools
    py37-expat-3.7.9    Python interface to expat
    py37-setuptools-50.3.2 New Python packaging system
    py37-libxml2-2.9.10nb2 Python wrapper for libxml2

    $ pwd

    $ make
    => Returning to build of gnome-doc-utils-0.20.10nb6
    => Tool dependency gmake>=3.81: found gmake-4.2.1nb1
    => Tool dependency perl>=5.0: found perl-5.32.0nb1
    => Tool dependency pkgconf-[0-9]*: found pkgconf-1.7.3
    => Build dependency libxml2>=2.9.10nb3: found libxml2-2.9.10nb3
    => Build dependency libxslt>=1.1.34nb4: found libxslt-1.1.34nb4
    => Build dependency cwrappers>=20150314: found cwrappers-20180325
    => Full dependency py27-libxml2>=2.6.16: NOT found
    => Verifying reinstall for ../../textproc/py-libxml2
    => Bootstrap dependency digest>=20010302: found digest-20190127
    ===> Skipping vulnerability checks.
    WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
    WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg 
    WARNING: Package version py37-libxml2-2.9.10nb2 in 
    WARNING: Current version py27-libxml2-2.9.10nb2 in textproc/py-libxml2
    WARNING: Cleaning and rebuilding py27-libxml2-2.9.10nb2...
    ===> Cleaning for py27-libxml2-2.9.10nb2
    ===> Skipping vulnerability checks.
    WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
    WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg 

    ===> Overriding tools for py27-libxml2-2.9.10nb2
    ===> Extracting for py27-libxml2-2.9.10nb2
    ===> Patching for py27-libxml2-2.9.10nb2
    => Applying pkgsrc patches for py27-libxml2-2.9.10nb2
    ===> Creating toolchain wrappers for py27-libxml2-2.9.10nb2
    ERROR: python27>=2.7 python27>=2.7 is not installed; can't buildlink 
    *** Error code 1

    make[8]: stopped in /usr/pkgsrc/textproc/py-libxml2
    *** Error code 1

    Shouldn't be gnome-doc-utils to be using python37 already? Other 
    switched already and seems to be running fine.

    anyway tried these changes......

    PYTHON_VERSIONS_ACCEPTED=       37 # py-libxslt

    then py-libxslt fail with:

    => Full dependency py37-libxml2>=2.6.16: found py37-libxml2-2.9.10nb2
    => Full dependency py37-libxslt>=1.1.12: NOT found
    => Verifying reinstall for ../../textproc/py-libxslt
    ERROR: This package has set PKG_FAIL_REASON:
    ERROR: No valid Python version
    *** Error code 1

    so changed

    howere rerun make after cleanup ends with:

    failed to generate stubs for libxslt, aborting...
    Traceback (most recent call last):
       File "", line 68, in <module>
         import generator
    line 42
         print "close"
    SyntaxError: Missing parentheses in call to 'print'. Did you mean 

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
       File "", line 71, in <module>
         print(sys.exc_type, sys.exc_value)
    AttributeError: module 'sys' has no attribute 'exc_type'

    the I found about /usr/pkgsrc/lang/python/ so reverted back
    and went to pkgsrc guide :-)

    There I found;;sdata=7gWKLn8nI0fD1vRFGzSzlllhG00bDpUHJ6jfEo9nRRA%3D&amp;reserved=0
    and so set:


    in /usr/pkgsrc/textproc/py-xslt/Makefile

    and now is all fine and freerdp2 build properly. I know it is quick and 
    dirty change
    so can't tell if this can be accepted as a change in pkgsrc

    $ xfreerdp2 /version
    This is FreeRDP version 2.1.2 (2.1.2)

Home | Main Index | Thread Index | Old Index