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

Bug#958118: FTBFS on kfreebsd



On Sat, Apr 18, 2020 at 07:06:43PM +0200, Laurent Bigonville wrote:
> Source: python-apt
> Version: 2.0.0
> Severity: important
> Tags: ftbfs
> Justification: fails to build from source (but built successfully in the past)
> User: debian-bsd@lists.debian.org
> Usertags: kfreebsd
> 
> Hello,
> 
> For some reasons, the package FTBFS on kfreebsd:
> 
> running install_scripts
> /usr/lib/python3.8/distutils/dist.py:858: DeprecationWarning: bdist_wininst command is deprecated since Python 3.8, use bdist_wheel (wheel packages) instead
>   cmd_obj = self.command_obj[command] = klass(self)
>    debian/rules override_dh_install
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_movefiles
> dh_install
> dh_install: warning: Cannot find (any matches for) "usr/lib/python3*/*/apt_pkg*.so" (tried in ., debian/tmp)
> 
> dh_install: warning: python3-apt missing files: usr/lib/python3*/*/apt_pkg*.so
> dh_install: warning: Cannot find (any matches for) "usr/lib/python3*/*/apt_inst*.so" (tried in ., debian/tmp)
> 
> dh_install: warning: python3-apt missing files: usr/lib/python3*/*/apt_inst*.so
> dh_install: error: missing files, aborting
> 
> It's not completly clear to me what's happening here, remove the usage
> of dh_movefiles (and renaming python3-apt-dbg.files
> python3-apt-dbg.install and some adjustements to these) fixes the
> problem

I'm afraid it opens up a new one, you end up with the debugging symbols
in the main python3-apt package.

Tthe problem is that python3-apt-dbg moves out files with this wildcard

usr/lib/python3*/*/*d-*.so

such as

/usr/lib/python3/dist-packages/apt_pkg.cpython-38d-x86_64-linux-gnu.so

And kfreebsd matches that as well.

The reason for all this is to avoid pybuild's native splitting of
packages because pybuild can't handle having a common package such
as python3-apt-common, or well, it just leads to outragously terrible
code you can't follow along (think CDBS).

Could go to [0-9]d-* I guess, that should wrok.

I'll do some more investigation into this once 2.1.* has migrated
to testing, fixing this before that is not in scope, as we don't
want to delay the py2removal sort-of-transition with unrelated
stuff.

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en


Reply to: