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



Hi,

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, "pkgsrc-users-owner%NetBSD.org@localhost on behalf of Bodie" <pkgsrc-users-owner%NetBSD.org@localhost on behalf of bodie%bodie.cz@localhost> wrote:

    Hi all,

    $ uname -a
    NetBSD hostname 9.99.75 NetBSD 9.99.75 (GENERIC) #0: Fri Nov 20 20:01:16 
    UTC 2020  
    mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC 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
    /usr/pkgsrc/net/freerdp2
    $

    $ 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 
    fetch-pkg-vulnerabilities'.
    WARNING: Package version py37-libxml2-2.9.10nb2 in 
    /usr/pkgsrc/textproc/py-libxml2/work
    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 
    fetch-pkg-vulnerabilities'.

    ===> 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 
    files.
    *** Error code 1

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

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

    anyway tried these changes......

    /usr/pkgsrc/textproc/gnome-doc-utils
    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
    /usr/pkgsrc/textproc/py-libxslt
    PYTHON_VERSIONS_ACCEPTED=       37

    howere rerun make after cleanup ends with:

    failed to generate stubs for libxslt, aborting...
    Traceback (most recent call last):
       File "setup.py", line 68, in <module>
         import generator
       File 
    "/usr/pkgsrc/textproc/py-libxslt/work/libxslt-1.1.34/python/generator.py", 
    line 42
         print "close"
                     ^
    SyntaxError: Missing parentheses in call to 'print'. Did you mean 
    print("close")?

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
       File "setup.py", 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/pyversion.mk so reverted back
    and went to pkgsrc guide :-)

    There I found 
    https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.netbsd.org%2Fdocs%2Fpkgsrc%2Fcreating.html%23creating.python-module&amp;data=04%7C01%7Ciain.morgan%40nasa.gov%7Cc15bf935d59b4b5ffbcd08d88eb5a503%7C7005d45845be48ae8140d43da96dd17b%7C0%7C1%7C637416258090780996%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=7gWKLn8nI0fD1vRFGzSzlllhG00bDpUHJ6jfEo9nRRA%3D&amp;reserved=0
    and so set:

    PYTHON_VERSIONS_INCOMPATIBLE=       37

    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