Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 825730

Summary: dev-util/diffuse-0.8.2 fails to compile with dev-lang/python-exec[-native-symlinks]
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Andrey Grozin <grozin>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 762406    
Attachments: build.log
1-meson-log.txt
diffuse-0.7.2.ebuild
diffuse-0.7.2.ebuild

Description Agostino Sarubbo gentoo-dev 2021-11-21 18:56:41 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-util/diffuse-0.7.2 fails to compile with dev-lang/python-exec[-native-symlinks].
Discovered on: amd64 (internal ref: ci)

NOTE:
Please take a look at the tracker bug for more info.
Comment 1 Agostino Sarubbo gentoo-dev 2021-11-21 18:56:43 UTC
Created attachment 754374 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-11-21 18:56:44 UTC
Created attachment 754378 [details]
1-meson-log.txt

1-meson-log.txt
Comment 3 Andrey Grozin gentoo-dev 2021-11-22 04:50:52 UTC
The installed files are OK:

grozin@bilbo ~ $ file /usr/bin/diffuse 
/usr/bin/diffuse: symbolic link to ../lib/python-exec/python-exec2
grozin@bilbo ~ $ ls /usr/lib/python-exec/python*/diffuse
/usr/lib/python-exec/python3.10/diffuse*  /usr/lib/python-exec/python3.9/diffuse*
/usr/lib/python-exec/python3.8/diffuse*

This is because I've done

rm "${D}"/usr/bin/${PN} || die "rm ${PN} failed"
python_foreach_impl python_doscript ../${P}-build/src/${PN}

in src_install. The original "${D}"/usr/bin/diffuse installed by meson contained

#!/usr/bin/python3

so, I had to remove it and to re-install correctly using python_doscript.

As far as I understand, the reported problem is due to the line

conf.set('PYTHON', python.find_installation('python3').path())

in src/meson.build. I don't know meson build system; how should I patch src/meson.build so that the build works without /usr/bin/python3 symlink?
Comment 4 Andrey Grozin gentoo-dev 2021-11-22 07:07:20 UTC
Created attachment 754418 [details]
diffuse-0.7.2.ebuild

Could you please check if the attached version of the ebuild works in the -native-symlinks setup
Comment 5 Andrey Grozin gentoo-dev 2021-11-22 09:04:32 UTC
Created attachment 754426 [details]
diffuse-0.7.2.ebuild

A better version
Comment 6 Agostino Sarubbo gentoo-dev 2022-01-03 07:23:13 UTC
ci has reproduced this issue with version 0.7.3 - Updating summary.
Comment 7 Agostino Sarubbo gentoo-dev 2022-04-26 09:26:36 UTC
ci has reproduced this issue with version 0.7.5 - Updating summary.
Comment 8 Agostino Sarubbo gentoo-dev 2023-01-30 16:20:06 UTC
ci has reproduced this issue with version 0.7.7 - Updating summary.
Comment 9 Agostino Sarubbo gentoo-dev 2023-05-23 13:03:20 UTC
ci has reproduced this issue with version 0.8.2 - Updating summary.