Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/os-prober/
Date: Wed, 22 Dec 2021 12:34:19
Message-Id: 1640176430.6d092b6cfd8e9f3512c536f20dfc1de445b21039.bkohler@gentoo
1 commit: 6d092b6cfd8e9f3512c536f20dfc1de445b21039
2 Author: Peter Levine <plevine457 <AT> gmail <DOT> com>
3 AuthorDate: Tue Dec 21 00:42:02 2021 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 22 12:33:50 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d092b6c
7
8 sys-boot/os-prober: bump os-prober-1.79-r1.ebuild
9
10 Includes the Void Linux patch and moves the multiple-initrd-paths patch
11 to the front since it's already accepted upstream.
12
13 Closes: https://bugs.gentoo.org/817905
14 Closes: https://github.com/gentoo/gentoo/pull/23445
15 Package-Manager: Portage-3.0.30, Repoman-3.0.3
16 Signed-off-by: Peter Levine <plevine457 <AT> gmail.com>
17 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
18
19 sys-boot/os-prober/os-prober-1.79-r1.ebuild | 105 ++++++++++++++++++++++++++++
20 1 file changed, 105 insertions(+)
21
22 diff --git a/sys-boot/os-prober/os-prober-1.79-r1.ebuild b/sys-boot/os-prober/os-prober-1.79-r1.ebuild
23 new file mode 100644
24 index 000000000000..b310aa3de302
25 --- /dev/null
26 +++ b/sys-boot/os-prober/os-prober-1.79-r1.ebuild
27 @@ -0,0 +1,105 @@
28 +# Copyright 1999-2021 Gentoo Authors
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=8
32 +inherit readme.gentoo-r1 toolchain-funcs
33 +
34 +DESCRIPTION="Utility to detect other OSs on a set of drives"
35 +HOMEPAGE="https://salsa.debian.org/installer-team/os-prober"
36 +
37 +if [[ ${PV} == 9999 ]]; then
38 + inherit git-r3
39 + EGIT_REPO_URI="https://salsa.debian.org/installer-team/${PN}.git"
40 +else
41 + SRC_URI="mirror://debian/pool/main/${PN::1}/${PN}/${PN}_${PV}.tar.xz"
42 + KEYWORDS="~amd64 ~x86"
43 + S="${WORKDIR}"/${PN}
44 +fi
45 +
46 +LICENSE="GPL-3"
47 +SLOT="0"
48 +
49 +# grub-mount needed per bug #607518
50 +RDEPEND="sys-boot/grub:2[mount]"
51 +
52 +# bug 594250
53 +QA_MULTILIB_PATHS="usr/lib/os-prober/.*"
54 +
55 +PATCHES=(
56 + "${FILESDIR}"/${PN}-1.79-handle-multiple-initrd-paths.patch
57 + "${FILESDIR}"/${PN}-1.79-mdraid-detection.patch
58 + "${FILESDIR}"/${PN}-1.79-btrfs-subvolume-detection.patch
59 + "${FILESDIR}"/${PN}-1.79-use-fstab-name.patch
60 + "${FILESDIR}"/${PN}-1.79-mounted-boot-partition-fix.patch
61 + "${FILESDIR}"/${PN}-1.79-fix-busy-umount-message.patch
62 + "${FILESDIR}"/${PN}-1.79-efi-chroot-blkid-fallback.patch
63 + "${FILESDIR}"/${PN}-1.79-detect-void.patch
64 +)
65 +
66 +DOC_CONTENTS="
67 + If you intend for os-prober to detect versions of Windows installed on
68 + NTFS-formatted partitions, your system must be capable of reading the
69 + NTFS filesystem. One way to do this is by installing sys-fs/ntfs3g.
70 +
71 + NOTE: Since sys-boot/grub-2.06-rc1, grub-mkconfig disables os-prober by default.
72 + To enable it, add GRUB_DISABLE_OS_PROBER=false to /etc/default/grub.
73 +"
74 +
75 +src_prepare() {
76 + default
77 + # use default GNU rules
78 + rm Makefile || die 'rm Makefile failed'
79 +}
80 +
81 +src_compile() {
82 + tc-export CC
83 + emake newns
84 +}
85 +
86 +src_install() {
87 + dobin os-prober linux-boot-prober
88 +
89 + # Note: as no shared libraries are installed, /usr/lib is correct
90 + exeinto /usr/lib/os-prober
91 + doexe newns
92 +
93 + insinto /usr/share/os-prober
94 + doins common.sh
95 +
96 + keepdir /var/lib/os-prober
97 +
98 + local debarch=${ARCH%-*} dir
99 +
100 + case ${debarch} in
101 + amd64) debarch=x86 ;;
102 + ppc|ppc64) debarch=powerpc ;;
103 + esac
104 +
105 + for dir in os-probes{,/mounted,/init} linux-boot-probes{,/mounted}; do
106 + exeinto /usr/lib/${dir}
107 + doexe ${dir}/common/*
108 + if [[ -d ${dir}/${debarch} ]]; then
109 + for exe in ${dir}/${debarch}/*; do
110 + [[ ! -d "${exe}" ]] && doexe "${exe}"
111 + done
112 + fi
113 + if [[ -d ${dir}/${debarch}/efi ]]; then
114 + exeinto /usr/lib/${dir}/efi
115 + doexe ${dir}/${debarch}/efi/*
116 + fi
117 + done
118 +
119 + if use amd64 || use x86; then
120 + exeinto /usr/lib/os-probes/mounted
121 + doexe os-probes/mounted/powerpc/20macosx
122 + fi
123 +
124 + einstalldocs
125 + dodoc debian/changelog
126 +
127 + readme.gentoo_create_doc
128 +}
129 +
130 +pkg_postinst() {
131 + readme.gentoo_print_elog
132 +}