Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835733 - sys-apps/dtc: install libfdt python bindings
Summary: sys-apps/dtc: install libfdt python bindings
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Luca Barbato
Depends on:
Reported: 2022-03-21 11:03 UTC by LABBE Corentin
Modified: 2022-03-21 22:25 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description LABBE Corentin 2022-03-21 11:03:04 UTC
The dtc sources contains python bindings that could be installed.
They are necessary for working on dt-schema for Linux development.

The emake command should have:
NO_PYTHON=$(usex !python 1 0)
instead of just NO_PYTHON=1

But Makefile check for python3 pkg_config which do not exists (gentoo use python-3.x)

Fixing that lead to another error I fail to fix.

Reproducible: Always
Comment 1 LABBE Corentin 2022-03-21 11:47:26 UTC
It fail when doing install phase:
make[1] : on quitte le répertoire « /var/tmp/portage/sys-apps/dtc-1.6.1/work/dtc-1.6.1 »
pylibfdt/ --top-builddir . install --prefix=/usr
/usr/bin/install -d /var/tmp/portage/sys-apps/dtc-1.6.1/image/usr/bin
/usr/bin/install -d /var/tmp/portage/sys-apps/dtc-1.6.1/image/usr/lib64
/usr/bin/install convert-dtsv0 dtc fdtdump fdtget fdtput fdtoverlay /var/tmp/portage/sys-apps/dtc-1.6.1/image/usr/bin
/usr/bin/install libfdt/ /var/tmp/portage/sys-apps/dtc-1.6.1/image/usr/lib64
ln -sf /var/tmp/portage/sys-apps/dtc-1.6.1/image/usr/lib64/
/usr/bin/install dtdiff /var/tmp/portage/sys-apps/dtc-1.6.1/image/usr/bin
ln -sf /var/tmp/portage/sys-apps/dtc-1.6.1/image/usr/lib64/
/usr/bin/install -m 644 libfdt/libfdt.a /var/tmp/portage/sys-apps/dtc-1.6.1/image/usr/lib64
running install
/usr/lib/python3.9/site-packages/setuptools/command/ SetuptoolsDeprecationWarning: install is deprecated. Use build and pip and other standards-based tools.
/usr/lib/python3.9/site-packages/setuptools/command/ EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
 * ACCESS DENIED:  open_wr:      /usr/lib/python3.9/site-packages/test-easy-install-121.write-test
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: '/usr/lib/python3.9/site-packages/test-easy-install-121.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:


Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment

For information on other options, you may wish to consult the
documentation at:

Please make the appropriate changes for your system and try again.
Comment 2 LABBE Corentin 2022-03-21 15:27:11 UTC
I succeed to support it
but the workaround for pkg-config is not pretty.
Any advice ?