Re: [PATCH v7] kbuild: add script and target to generate pacman package

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

 



On Sun, Jul 21, 2024 at 12:32 PM Nathan Chancellor <nathan@xxxxxxxxxx> wrote:
>
> Hi Thomas,
>
> On Sat, Jul 20, 2024 at 11:18:12AM +0200, Thomas Weißschuh wrote:
> > pacman is the package manager used by Arch Linux and its derivates.
> > Creating native packages from the kernel tree has multiple advantages:
> >
> > * The package triggers the correct hooks for initramfs generation and
> >   bootloader configuration
> > * Uninstallation is complete and also invokes the relevant hooks
> > * New UAPI headers can be installed without any manual bookkeeping
> >
> > The PKGBUILD file is a modified version of the one used for the
> > downstream Arch Linux "linux" package.
> > Extra steps that should not be necessary for a development kernel have
> > been removed and an UAPI header package has been added.
> >
> > Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
> > ---
>
> I think this looks really solid now, thanks again for the PACMAN_PKGBASE
> addition.
>
> I tested building Arch Linux's configuration for x86_64 and booting it
> in a VM. I built Fedora's configuration for aarch64 just to test the
> cross building aspect and making sure the result of various bits that we
> added that would not affect x86 (such as the dtb installation) looked
> reasonable.
>
> Reviewed-by: Nathan Chancellor <nathan@xxxxxxxxxx>
> Tested-by: Nathan Chancellor <nathan@xxxxxxxxxx>


I believe this is a separate issue, but
Debian/Ubuntu provides a 'makepkg' package, which fails
with 'User defined signal 1' error.


After 'sudo apt install makepkg',


masahiro@zoe:~/ref/linux-next((HEAD detached from origin/master))$ cat
/etc/os-release
PRETTY_NAME="Ubuntu 24.04 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/";
SUPPORT_URL="https://help.ubuntu.com/";
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/";
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy";
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
masahiro@zoe:~/ref/linux-next((HEAD detached from origin/master))$
makepkg --version
makepkg (pacman) 6.0.2
Copyright (c) 2006-2021 Pacman Development Team <pacman-dev@xxxxxxxxxxxxx>.
Copyright (C) 2002-2006 Judd Vinet <jvinet@xxxxxxxxxxxx>.

This is free software; see the source for copying conditions.
There is NO WARRANTY, to the extent permitted by law.
masahiro@zoe:~/ref/linux-next((HEAD detached from origin/master))$ git
log --oneline -2
5dcaebb67ad9 (HEAD) kbuild: add script and target to generate pacman package
41c196e567fb (tag: next-20240719, origin/master, origin/HEAD) Add
linux-next specific files for 20240719
masahiro@zoe:~/ref/linux-next((HEAD detached from origin/master))$
make defconfig  pacman-pkg
*** Default configuration is based on 'x86_64_defconfig'
#
# No change to .config
#
objtree="/home/masahiro/ref/linux-next" \
BUILDDIR="" \
CARCH="x86_64" \
KBUILD_MAKEFLAGS="rR --no-print-directory" \
KBUILD_REVISION="4" \
makepkg

==> ERROR: An unknown error has occurred. Exiting...
User defined signal 1
make[3]: *** [scripts/Makefile.package:150: pacman-pkg] Error 138
make[2]: *** [Makefile:1538: pacman-pkg] Error 2
make[1]: *** [/home/masahiro/ref/linux-next/Makefile:347:
__build_one_by_one] Error 2
make: *** [Makefile:224: __sub-make] Error 2



Do you know anything?







-- 
Best Regards
Masahiro Yamada





[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux