Bug 233723 - PYTHON_VERSION poisoning during chained build of dependencies
Summary: PYTHON_VERSION poisoning during chained build of dependencies
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Some People
Assignee: freebsd-python mailing list
URL:
Keywords: needs-patch, needs-qa
: 238871 239852 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-12-02 13:54 UTC by rocky
Modified: 2019-08-14 13:51 UTC (History)
10 users (show)

See Also:
koobs: merge-quarterly?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rocky 2018-12-02 13:54:24 UTC
mesa-libs as a dependency of libepoxy failed to build: 

===>   libepoxy-1.5.2 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by libepoxy-1.5.2 for building
===>  Extracting for libepoxy-1.5.2
=> SHA256 Checksum OK for libepoxy-1.5.2.tar.xz.
===>  Patching for libepoxy-1.5.2
===>   libepoxy-1.5.2 depends on executable: meson - found
===>   libepoxy-1.5.2 depends on executable: ninja - found
===>   libepoxy-1.5.2 depends on package: pkgconf>=1.3.0_1 - found
===>   libepoxy-1.5.2 depends on file: /usr/local/bin/python3.6 - found
===>   libepoxy-1.5.2 depends on package: xorgproto>=0 - found
===>   libepoxy-1.5.2 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found
===>   libepoxy-1.5.2 depends on shared library: libGL.so - not found
===>  mesa-libs-18.1.9_4 needs Python 2.7 at most, but 3.6 was specified.
*** Error code 1

Suspect that the depends in libepoxy on python is setting the environment for the mesa-libs build, causing the failure:

libepoxy Makefile:

USES=           localbase meson pkgconfig python:3.3+,build tar:xz

Shouldn't there be some degree of isolation in individual port builds within the ports tree though? Should be possible to build ports within ports tree without poudriere or packages surely.

make.conf only has WANT_OPENLDAP_SASL=yes

System is also server based, so no DM. Uses ssh tunneling for some gui access.
Comment 1 Robert James Hernandez 2019-02-01 03:32:32 UTC
I ran into this as well trying to build the cloud-print-connector port inside a new jail, Im on the following commit in the master branch on the ports tree:

commit d3b56095dd0ea2ce90d28d2c8b3915707a7faa09 (origin/master)
Author: lx <lx@FreeBSD.org>
Date:   Tue Jan 29 23:15:55 2019 +0000

    Update to 0.11.2.
    
    PR:     233692
    Submitted by:   Sascha Biberhofer

Failed with the following similar error:

Installing fontconfig-2.12.6,1...
Running fc-cache to build fontconfig cache...                                                                                                                                                                                           
/usr/local/share/fonts: skipping, no such directory                                                                                                                                                                                     
/usr/local/lib/X11/fonts: skipping, no such directory                                                                                                                                                                                   
/var/db/fontconfig: cleaning cache directory                                                                                                                                                                                            
fc-cache: succeeded                                                                                                                                                                                                                     
===>   cairo-1.15.12,2 depends on shared library: libfontconfig.so - found (/usr/local/lib/libfontconfig.so)                                                                                                                            
===>   Returning to build of cairo-1.15.12,2                                                                                                                                                                                            
===>   cairo-1.15.12,2 depends on shared library: libglib-2.0.so - found (/usr/local/lib/libglib-2.0.so)                                                                                                                                
===>   cairo-1.15.12,2 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so)                                                                                                                                        
===>   cairo-1.15.12,2 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so)                                                                                                                                        
===>   cairo-1.15.12,2 depends on shared library: libGL.so - not found                                                                                                                                                                  
===>  mesa-libs-18.3.2 needs Python 2.7 at most, but 3.6 was specified.                                                                                                                                                                 
*** Error code 1                                                                                                                                                                                                                        
                                                                                                                                                                                                                                        
Stop.                                                                                                                                                                                                                                   
make[5]: stopped in /usr/ports/graphics/mesa-libs                                                                                                                                                                                       
*** Error code 1


System info:
# uname -r
11.2-RELEASE-p4

No make.conf
Comment 2 Justin Honold 2019-02-04 21:54:51 UTC
Also encountered via chain from /usr/ports/games/minecraft-client on a clean 12.0-RELEASE (i386) installation with a portsnap from Feb 4 2019. Busted at mesa-libs.
Comment 3 steve.p 2019-02-14 19:54:46 UTC
Firefox fails on this also
Comment 4 John Helfrich 2019-02-16 03:40:13 UTC
Also encountered via the sway port at /usr/ports/x11-wm/sway/
Clean 12.0-RELEASE (amd64)

Stopped at ===>  mesa-libs-18.3.2 needs Python 2.7 at most, but 3.6 was specified.
Comment 5 Jan Beich freebsd_committer 2019-02-16 09:56:01 UTC
Looks like a framework issue. Switching mesa-* to USES=python:build doesn't help.

$ make clean all -C /usr/ports/graphics/libepoxy
[...]
===>   mesa-libs-18.3.2 depends on package: llvm60>=3.9.0_4 - not found
===>  llvm60-6.0.1_6 needs Python 2.7 at most, but 3.6 was specified.
*** Error code 1
Comment 6 Mark Linimon freebsd_committer freebsd_triage 2019-02-16 11:09:12 UTC
Cc: maintainer of x11-wm/sway .
Comment 7 Antoine Brodin freebsd_committer 2019-02-16 15:29:42 UTC
Try removing DEPENDS_ARGS line from python.mk
Comment 8 William Elasio Moreno Albarracin 2019-02-17 12:07:45 UTC
Hello, I had have this issue when I tried to install via ports:

cd /usr/ports/net-p2p/monero-cli/
make install clean

I solved this issue by:

cd /usr/ports/graphics/mesa-libs/
make install clean

All install ready and return to:

cd /usr/ports/net-p2p/monero-cli/
mahe install clean

And all OK
Comment 9 Tobias Kortkamp freebsd_committer 2019-07-05 09:57:04 UTC
*** Bug 238871 has been marked as a duplicate of this bug. ***
Comment 10 Ralph Bacolod 2019-07-14 13:59:04 UTC
ran into same issue with X11/kde5
misc/iso-codes stops with "needs Python 3.4 at least, but 2.7 was specified"
got around it by going into iso-code and building it directly.
Comment 11 Mohammad S. Babaei 2019-08-12 23:38:29 UTC
(In reply to Ralph Bacolod from comment #10)
Thanks, I tried installing LLVM90 and faced the same issue. Your solution worked for me.
Comment 12 Walter Schwarzenfeld freebsd_triage 2019-08-14 13:47:11 UTC
*** Bug 239852 has been marked as a duplicate of this bug. ***