Summary: | sys-kernel/linux-headers-5.3-r1 failing to install (Gentoo Prefix) | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Sammy Pfeiffer <sammypfeiffer> |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sammypfeiffer, toolchain |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Sammy Pfeiffer
2019-11-10 08:16:28 UTC
@Toolchain Team, do you have any idea why linux-headers calls rsync as a build dependency? rsync is used as-is to install many headers files: https://github.com/torvalds/linux/blob/af42d3466bdc8f39806b26f593604fdc54140bcb/Makefile#L1181 Was added in linux-headers-5.3: https://github.com/torvalds/linux/commit/59b2bd05f5f4dc62979c2e82ddd384f07e8f10bc Thank you Sergei. During Prefix bootstrap, no rsync is available when installing linux-headers. We have 2 solutions: 1. install a net-misc/rsync to stage 2. 2. write a fake rsync in bash to do the header files copy. Benda Xu, are we going to try to patch this? For solution 1, in my continuous integration build, I did... Replace from line 1868 of bootstrap-prefix.sh: pkgs=( sys-apps/baselayout sys-apps/gentoo-functions app-portage/elt-patches sys-kernel/linux-headers sys-libs/glibc ) To: # Hack to fix build temporarily until https://bugs.gentoo.org/699718 is fixed sed -i '74i\ \ \ \ \ \ \ \ rm "${ED%/}"/etc/init.d/rsyncd' $EPREFIX/var/db/repos/gentoo/net-misc/rsync/rsync-3.1.3.ebuild cd $EPREFIX/var/db/repos/gentoo/net-misc/rsync ebuild $EPREFIX/var/db/repos/gentoo/net-misc/rsync/rsync-3.1.3.ebuild manifest pkgs=( sys-apps/baselayout sys-apps/gentoo-functions app-portage/elt-patches dev-util/pkgconfig net-misc/rsync sys-kernel/linux-headers sys-libs/glibc ) Which first patches the rsync ebuild as otherwise it doesn't emerge and then emerges dev-util/pkgconfig (dependency) and net-misc/rsync. From there, the bootstrapping completes. I hope it's helpful. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=02451cdd8614f1072096608c49ae7796a6363819 commit 02451cdd8614f1072096608c49ae7796a6363819 Author: Benda Xu <heroxbd@gentoo.org> AuthorDate: 2020-01-27 02:38:20 +0000 Commit: Benda Xu <heroxbd@gentoo.org> CommitDate: 2020-01-27 02:53:04 +0000 s/bootstrap-prefix.sh: fake rsync to install linux-headers. linux-headers starts to use rsync to do the installation. Replace it with a shell script to call cp instead. Closes: https://bugs.gentoo.org/699718 Signed-off-by: Benda Xu <heroxbd@gentoo.org> scripts/bootstrap-prefix.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) I can confirm that this patch works. (Sorry if this is considered noise). (In reply to Sammy Pfeiffer from comment #6) > I can confirm that this patch works. (Sorry if this is considered noise). No, it's not noise. Thank you for confirming! |