Bug#955210: kernel-wedge: regression causes kfreebsd-10 FTBFS

Steven Chamberlain <[email protected]>
Newsgroups gmane.linux.debian.ports.bsd
Message-ID <20200328134118.GK89398__15413.0354452477$1585403125$gmane$org@pyro.eu.org>
Package: kernel-wedge
Version: 2.102
Severity: important
X-Debbugs-Cc: [email protected]

Hi,

kfreebsd-10 FTBFS, due to probably this change in kernel-wedge:
https://salsa.debian.org/installer-team/kernel-wedge/-/commit/3827f1ee9f53540b104c592a8a2695f78d8629ed

The kfreebsd-10 build process produces kernel modules including lpt.ko
and ppi.ko under:
    debian/kfreebsd-image-10.3-0-amd64/lib/modules/10.3-0-amd64/

As of kernel-wedge=2.102, the preprocess step fails to find any modules:

KW_DEFCONFIG_DIR=debian/installer KW_CONFIG_DIR=debian/installer/amd64 \
perl -w /usr/share/kernel-wedge/commands/preprocess \
 debian/installer/amd64/modules/kfreebsd-amd64/parport-modules \
 debian/kfreebsd-image-10.3-0-amd64/lib/modules/10.3-0-amd64
missing module lpt
missing module ppi

but I notice that when adding a trailing slash to the second parameter
($moddir), then it does work again:

KW_DEFCONFIG_DIR=debian/installer KW_CONFIG_DIR=debian/installer/amd64 \
perl -w /usr/share/kernel-wedge/commands/preprocess \
 debian/installer/amd64/modules/kfreebsd-amd64/parport-modules \
 debian/kfreebsd-image-10.3-0-amd64/lib/modules/10.3-0-amd64/
lpt.ko
ppi.ko

Note that debian/kfreebsd-image-10.3-0-amd64/lib/modules/10.3-0-amd64
is a symlink, to ../../boot/modules/10.3-0-amd64

I think this has to do with a basename() somewhere removing the
"10.3-0-amd64" from the end of the path, so that it searches for .ko
files under:
    debian/kfreebsd-image-10.3-0-amd64/lib/modules/
instead.

Thanks!

-- System Information:
Debian Release: 8.0
  APT prefers stable-kfreebsd-proposed-updates
  APT policy: (500, 'stable-kfreebsd-proposed-updates'), (500, 'stable-kfreebsd')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 10.1-0-amd64
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
signature.asc (application/pgp-signature, 648 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQGcBAEBCAAGBQJef1P9AAoJENdSKM+uN5VA2i0MAJ0y3U9YNS0f9oKslKUWSJwT
ahnt4R+Tp9H2MHLtZ4rpfABgS9CE64qOPAXzCDkXfJjSlqHbfg5yHv4UL7HRMwHe
ePYyuRYSFA8wX4N4nKh2a+xoxAXvSQKF6nr/+hcgMwgwCnDBBEu1JMiX06PjtJY1
3jpzlg54VpGIYaKgbWuAsmPGc4r3Xafablwij5pa+wLsOxYxc+Ie8VJaq6bQes15
OdattYFetMt/eZFhCC96wrKgp85ZtWDpM+TGJmVdlTsxpvzI5QG0/+xhd9Z2cAp0
DwTR/FYV3cVhevCr72o1pNa+B1jmpfUFLBMvv+axt3wj3drnxmuT0wIJl2t8Z+Qd
6wtm0TApEfesIVfcjcHSareYY0PP8hhzxV9Vi3DyVCO2aab9pA81HPDPYQfauFmT
nkekKexgrBu6ce4ifAGjRO397rBQsrEvw90A6UZ463OAwKq1AM2sP/T357mRvKPE
lrmoRl/819j3hcoyiNDc1wtahwj63PX6jnfwoQzrwA==
=vjAv
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.