Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#75126 - [lxc] FTBFS and none standard path /usr/libexec

Attached to Project: Community Packages
Opened by loqs (loqs) - Monday, 20 June 2022, 21:30 GMT
Last edited by Sergej Pupykin (sergej) - Saturday, 12 November 2022, 20:55 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
lxc fails to build from source [1] due to missing makedepends entry for systemd. Package was built in a custom chroot with systemd, gcc7 and gcc7-libs added?
Package also uses none standard path /usr/libexec as it does not specify --libexecdir=lib

Additional info:
* lxc 1:5.0.0-2
[1] lxc-1:5.0.0-2-x86_64-build.log
* link to upstream bug report, if any

Steps to reproduce:
extra-x86_64-build
This task depends upon

Closed by  Sergej Pupykin (sergej)
Saturday, 12 November 2022, 20:55 GMT
Reason for closing:  Fixed
Comment by Levente Polyak (anthraxx) - Monday, 20 June 2022, 22:12 GMT
@Sergej your chroots are not properly set up. Please comply to the packaging guidelines when building packages. To ensure you have a clean chroot setup again, please wipe everything (all caches and root-chroots) from /var/lib/archbuild
Comment by Sergej Pupykin (sergej) - Monday, 20 June 2022, 23:42 GMT
Yes, I think I did not remove chroots for some time. Now it still complains of lxc-debug package (it contains /build dir) but I don't know how to fix it.
Comment by Levente Polyak (anthraxx) - Monday, 20 June 2022, 23:52 GMT
What exactly does it complain about (logs) and what command did you invoke?
Comment by Sergej Pupykin (sergej) - Tuesday, 21 June 2022, 00:22 GMT
it produces such warnings and errors:

namcap lxc-debug-1\:5.0.0-3-x86_64.pkg.tar.zst

lxc-debug W: ELF file ('usr/lib/debug/usr/bin/init.lxc.debug') lacks FULL RELRO, check LDFLAGS.
lxc-debug W: ELF file ('usr/lib/debug/usr/bin/lxc-attach.debug') lacks FULL RELRO, check LDFLAGS.
...
lxc-debug W: ELF file ('usr/lib/debug/usr/bin/init.lxc.debug') is unstripped.
lxc-debug W: ELF file ('usr/lib/debug/usr/bin/lxc-attach.debug') is unstripped.
...
lxc-debug W: ELF file ('usr/lib/debug/usr/bin/init.lxc.debug') lacks PIE.
lxc-debug W: ELF file ('usr/lib/debug/usr/bin/lxc-attach.debug') lacks PIE.
...
lxc-debug W: File (build/) exists in a non-standard directory.
lxc-debug W: File (build/glibc/) exists in a non-standard directory.
lxc-debug W: File (build/glibc/src/) exists in a non-standard directory.
lxc-debug W: File (build/glibc/src/glibc/) exists in a non-standard directory.
lxc-debug W: File (build/glibc/src/glibc/csu/) exists in a non-standard directory.
lxc-debug W: File (build/glibc/src/glibc/sysdeps/) exists in a non-standard directory.
lxc-debug W: File (build/glibc/src/glibc/sysdeps/x86_64/) exists in a non-standard directory.
lxc-debug E: Symlink (usr/lib/debug/.build-id/02/dbafcd69e60b69700feb6c15e215308b020663) points to non-existing ../../../../bin/lxc-unfreeze
lxc-debug E: Symlink (usr/lib/debug/.build-id/09/d31ecf87d2ae1e11519e9d82f0fc61ef4321ab) points to non-existing ../../../../bin/lxc-checkpoint
Comment by Levente Polyak (anthraxx) - Tuesday, 21 June 2022, 00:27 GMT
You can ignore those warnings as long as they are related to `*-debug` packages until namcap 3.3.0 is in the repositories, most likely this week.
Comment by Morten Linderud (Foxboron) - Tuesday, 21 June 2022, 21:20 GMT
Sergej, please read the package guidelines on the wiki we have.

https://wiki.archlinux.org/title/Meson_package_guidelines
Comment by Sergej Pupykin (sergej) - Saturday, 02 July 2022, 15:04 GMT
Ok, thank you,
want to see all pkgbuild examples in /usr/share/pacman/
May be I will copy paste and package them from wiki...
Comment by Morten Linderud (Foxboron) - Saturday, 02 July 2022, 15:09 GMT
The examples in /usr/share/pacman are stuff from the upstream pacman project, I don't think they necessarily belong there. There is a template system that is underutilized though.

Loading...