Commit Graph

5 Commits

Author SHA1 Message Date
Dimitri John Ledkov
cc71cafc72 UBUNTU: [Packaging] Always catch errors in dkms-build scripts
Enforce `set -e` execution of the dkms-build scripts, even when
overall SHELL is not set to `bash -e`. This enforces that dkms-build
scripts catch errors, even when building without SHELL variable, like
it is done by the LRM packages.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2022-03-15 17:12:29 +01:00
Dimitri John Ledkov
8f5cefee04 UBUNTU: [Packaging] Fix bashism in dkms-build script
dkms-build script uses bashism variable and test comparison, replace
them with dash compatible invocations. This allows using dkms-build
scripts without SHELL variable set to "bash -e", like it is done by
LRM packages.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2022-03-15 17:12:22 +01:00
Seth Forshee
fc5bcc6ae0 UBUNTU: [Debian] dkms-build -- use fakeroot if not running as root
BugLink: https://bugs.launchpad.net/bugs/1930713

Some dkms builds require running as root, or at least the illusion of
doing so. However we need to do dkms builds before deleting the
flavour build directory in order to sign the modules, and this may
happen without fakeroot. Detect whether or not dkms-build has been
invoked as root, and if not use fakeroot to do the dkms build.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Andy Whitcroft <apw@canonical.com>
2021-12-07 07:32:04 +01:00
Andrea Righi
2392988e40 UBUNTU: [Packaging] initial packaging import from linux-unstable-5.12
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2021-12-07 07:32:01 +01:00
Leann Ogasawara
29f98055b6 UBUNTU: [debian] Initial debian and ubuntu directories
Based off Ubuntu-unstable-5.11.0-10.11.

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
2021-11-02 08:24:37 +01:00