module-assistant xtables-addons build break

Bug #1597349 reported by David Favor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
module-assistant (Ubuntu)
New
Undecided
Unassigned

Bug Description

https://launchpad.net/ubuntu/xenial/arm64/xtables-addons-common instructions fail. See attached log.

And it appears the instructions on this page are deprecated.

When xtables-addons-common is installed /lib/modules/4.4.0-28-generic/updates/dkms/ seems to contain all kernel modules, already built.

So it appears the above page documentation should be changed to simply explain how to install the .ko files installed via xtables-addons-common.

Likely the real question related to installing these .ko files.

Please update this ticket with how to install or make one of the .ko files available at boot time.

For example, show how to configure /lib/modules/4.4.0-28-generic/updates/dkms/xt_TARPIT.ko to be included in running kernel at boot time.

Thanks.

Revision history for this message
David Favor (davidfavor) wrote :
Revision history for this message
David Favor (davidfavor) wrote :

Maybe the correct way to do this is...

ln -sf /lib/modules/4.4.0-28-generic/updates/dkms/xt_TARPIT.ko /lib/modules/4.2.0-36-generic/kernel/lib/.

Except, now we're back to the original problem of module-assistant failing to build all xtables modules against latest kernels, so it appear the way to use xt_TARPIT.ko is to...

1) fix module-assistant build break

2) synlink .ko files built via module-assistant into /lib/modules/`uname -r`

3) arrange for appropriate /lib/modules/`uname -r` modules to load via /etc/modules

So first up, is the fix for original build break.

net10.bizcooker.com# uname -a
Linux net10.bizcooker.com 4.4.0-28-generic #47-Ubuntu SMP Fri Jun 24 10:09:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

net10.bizcooker.com# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04 LTS
Release: 16.04
Codename: xenial

dpkg -l | egrep 'module-assistant|xtables|kmod'
ii kmod 22-1ubuntu4 amd64 tools for managing Linux kernel modules
ii libkmod2:amd64 22-1ubuntu4 amd64 libkmod shared library
ii libxtables11:amd64 1.6.0-2ubuntu3 amd64 netfilter xtables library
ii module-assistant 0.11.8 all tool to make module package creation easier
ii xtables-addons-common 2.10-1build1 amd64 Extensions targets and matches for iptables [tools, libs]
ii xtables-addons-dkms 2.10-1build1 all Extensions targets and matches for iptables
ii xtables-addons-source 2.10-1build1 all Extensions targets and matches for iptables [modules sources]

Revision history for this message
David Favor (davidfavor) wrote :

All package updates are installed on this machine.

Revision history for this message
David Favor (davidfavor) wrote :

It appears the problem relates to where module-assistant is looking for build scripts.

Build break error relates to...

   /bin/bash: /build/xtables-addons-smmDiF/xtables-addons-2.10/build-aux/missing: No such file or directory

This is correct, as there's no /build/... directory generated by module-assistant.

And several .../build-aux/missing files turn up via locate...

locate /build-aux/missing | egrep -v -e /lxc/
/usr/share/libtool/build-aux/missing
/usr/src/modules/xtables-addons/build-aux/missing
/usr/src/xtables-addons-2.10/build-aux/missing
/var/lib/dkms/xtables-addons/2.10/build/build-aux/missing

So likely fix is for module-assistant to look for build scripts in correct directory.

Revision history for this message
David Favor (davidfavor) wrote :

Changing from xtables-addons to module-assistant as this appears to be a module-assistant problem, where build scripts are looked for incorrectly.

affects: xtables-addons (Ubuntu) → module-assistant (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.