by tchelovek » Tue Sep 28, 2021 8:42 am
Having stumbled on broken packages
https://archlinuxarm.org/forum/viewtopic.php?f=15&t=15552https://archlinuxarm.org/forum/viewtopic.php?f=15&t=15537I tried to build the packages in question from
https://github.com/archlinuxarm/PKGBUILDsfollowing the advice from
https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chrootnatively on my odroid-c1+
There are two issues encountered:
1. Although the wiki mentions that passing arguments to makepkg is achieved by listing them after the end.of-options-market (--).
Issuing
$this->bbcode_second_pass_code('', 'makechrootpkg -c -r $CHROOT -- --A --skippgpcheck')
gets me
$this->bbcode_second_pass_quote('', '=')=> Synchronizing chroot copy [/home/fhem/chroot/root] -> [fhem]...done
==> ERROR: systemd is not available for the 'armv7h' architecture.
==> ERROR: Could not download sources.
Adding the architecture to the PKGBUILD
$this->bbcode_second_pass_code('', 'arch=('x86_64' 'armv7h')')
fixes that, only to end in
2.
$this->bbcode_second_pass_quote('', '=')=> Synchronizing chroot copy [/home/fhem/chroot/root] -> [fhem]...done
==> Making package: systemd 248.3-2 (Tue Sep 28 10:28:37 2021)
==> Retrieving sources...
-> Updating systemd-stable git repo...
Fetching origin
-> Updating systemd git repo...
Fetching origin
remote: Enumerating objects: 544, done.
remote: Counting objects: 100% (372/372), done.
remote: Compressing objects: 100% (122/122), done.
remote: Total 279 (delta 236), reused 196 (delta 157), pack-reused 0
Receiving objects: 100% (279/279), 47.59 KiB | 487.00 KiB/s, done.
Resolving deltas: 100% (236/236), completed with 68 local objects.
From
https://github.com/systemd/systemd + 70417a0c3b...0a075e7a6f refs/pull/20712/merge -> refs/pull/20712/merge (forced update)
+ 19f2645cf5...de952e350d refs/pull/20799/merge -> refs/pull/20799/merge (forced update)
+ a4cdd089fa...80ef02df3a refs/pull/20802/merge -> refs/pull/20802/merge (forced update)
+ 81cbf5c613...ed9c9b73e5 refs/pull/20824/merge -> refs/pull/20824/merge (forced update)
-> Found 0001-Use-Arch-Linux-device-access-groups.patch
-> Found 0003-PARTIAL-REVERT-commit-tree-wide-replace-strverscmp-and-str_verscmp-with-strverscmp_improved.patch
-> Found initcpio-hook-udev
-> Found initcpio-install-systemd
-> Found initcpio-install-udev
-> Found arch.conf
-> Found loader.conf
-> Found splash-arch.bmp
-> Found systemd-user.pam
-> Found systemd-hook
-> Found 20-systemd-sysusers.hook
-> Found 30-systemd-binfmt.hook
-> Found 30-systemd-catalog.hook
-> Found 30-systemd-daemon-reload.hook
-> Found 30-systemd-hwdb.hook
-> Found 30-systemd-sysctl.hook
-> Found 30-systemd-tmpfiles.hook
-> Found 30-systemd-udev-reload.hook
-> Found 30-systemd-update.hook
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha512sums...
systemd-stable ... Skipped
systemd ... Skipped
0001-Use-Arch-Linux-device-access-groups.patch ... Passed
0003-PARTIAL-REVERT-commit-tree-wide-replace-strverscmp-and-str_verscmp-with-strverscmp_improved.patch ... Passed
initcpio-hook-udev ... Passed
initcpio-install-systemd ... Passed
initcpio-install-udev ... Passed
arch.conf ... Passed
loader.conf ... Passed
splash-arch.bmp ... Passed
systemd-user.pam ... Passed
systemd-hook ... Passed
20-systemd-sysusers.hook ... Passed
30-systemd-binfmt.hook ... Passed
30-systemd-catalog.hook ... Passed
30-systemd-daemon-reload.hook ... Passed
30-systemd-hwdb.hook ... Passed
30-systemd-sysctl.hook ... Passed
30-systemd-tmpfiles.hook ... Passed
30-systemd-udev-reload.hook ... Passed
30-systemd-update.hook ... Passed
setarch: armv7h: Unrecognized architecture
==> ERROR: Build failed, check /home/fhem/chroot/fhem/build