From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/milo/
Date: Thu, 11 Aug 2022 11:13:44 +0000 (UTC) [thread overview]
Message-ID: <1660216390.41c1621d8cc415fabf5889265af5712ddd48619f.sam@gentoo> (raw)
commit: 41c1621d8cc415fabf5889265af5712ddd48619f
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 11 11:12:33 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Aug 11 11:13:10 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41c1621d
sys-boot/milo: fix UnquotedVariable
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-boot/milo/milo-2.4.18.ebuild | 39 +++++++++++++++++++--------------------
1 file changed, 19 insertions(+), 20 deletions(-)
diff --git a/sys-boot/milo/milo-2.4.18.ebuild b/sys-boot/milo/milo-2.4.18.ebuild
index 0501252aa338..a4c3e71f8328 100644
--- a/sys-boot/milo/milo-2.4.18.ebuild
+++ b/sys-boot/milo/milo-2.4.18.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -93,9 +93,9 @@ src_unpack() {
src_prepare() {
# gcc3 fixes, and some tweaks to get a build, also
# reiserfs support for the kernel (and milo).
- cd ${WORKDIR}/linux; eapply "${FILESDIR}"/linux-${kernel_version}-gcc3-milo.diff || die
- cd ${WORKDIR}/linux; eapply "${WORKDIR}"/linux-2.2.20-reiserfs-3.5.35.diff || die
- cd ${S}; eapply "${FILESDIR}"/milo-${milo_version}-gcc3-gentoo.diff || die
+ cd "${WORKDIR}"/linux; eapply "${FILESDIR}"/linux-${kernel_version}-gcc3-milo.diff || die
+ cd "${WORKDIR}"/linux; eapply "${WORKDIR}"/linux-2.2.20-reiserfs-3.5.35.diff || die
+ cd "${S}"; eapply "${FILESDIR}"/milo-${milo_version}-gcc3-gentoo.diff || die
eapply_user
}
@@ -138,7 +138,7 @@ src_compile() {
die "${MILO_IMAGE} not supported, or not recognised."
fi
- sed -i "s!__MILO_ARCHES__!${MILO_ARCH}!g" ${S}/tools/scripts/build
+ sed -i "s!__MILO_ARCHES__!${MILO_ARCH}!g" "${S}"/tools/scripts/build
ewarn
ewarn "seriously, this is going to take a while, go get some coffee..."
@@ -154,9 +154,9 @@ src_compile() {
ewarn
# get kernel configured
- cp ${custom_milo_kernel_config:-${S}/Documentation/config/linux-2.2.19-SuSE.config} \
- ${WORKDIR}/linux/.config
- cd ${WORKDIR}/linux; yes n | make oldconfig || die "unable to configure kernel."
+ cp ${custom_milo_kernel_config:-"${S}"/Documentation/config/linux-2.2.19-SuSE.config} \
+ "${WORKDIR}"/linux/.config
+ cd "${WORKDIR}"/linux; yes n | make oldconfig || die "unable to configure kernel."
# we're building a generic kernel that defaults to ev5, but theres no
# reason why we cant tweak the instruction set.
@@ -165,7 +165,7 @@ src_compile() {
mcpu_flag="`get-flag mcpu`"
if [ ! -z "${mcpu_flag}" ]; then
sed -i "s/\(CFLAGS := \$(CFLAGS) \)-mcpu=ev5$/\1-mcpu=${mcpu_flag:-ev5}/g" \
- ${WORKDIR}/linux/arch/alpha/Makefile
+ "${WORKDIR}"/linux/arch/alpha/Makefile
fi
# build the generic linux kernel, of course if you have
@@ -173,11 +173,11 @@ src_compile() {
# to hack it (or the .config used here).
einfo "building a generic kernel for use with milo..."
unset CC DISTCC_HOSTS; make dep vmlinux || die "unable to build generic kernel for milo."
- cat ${FILESDIR}/objstrip.c > ${WORKDIR}/linux/arch/alpha/boot/tools/objstrip.c
+ cat "${FILESDIR}"/objstrip.c > "${WORKDIR}"/linux/arch/alpha/boot/tools/objstrip.c
# make the objstrip utility.
- gcc ${WORKDIR}/linux/arch/alpha/boot/tools/objstrip.c -o \
- ${WORKDIR}/linux/arch/alpha/boot/tools/objstrip || die "couldnt build objstrip."
+ gcc "${WORKDIR}"/linux/arch/alpha/boot/tools/objstrip.c -o \
+ "${WORKDIR}"/linux/arch/alpha/boot/tools/objstrip || die "couldnt build objstrip."
einfo "kernel build complete."
einfo "building milo images..."
@@ -191,20 +191,19 @@ src_compile() {
append-flags -DMILO_SERIAL_NUMBER1="${milo_serial_number1:-0x002174616572475f}"
# the Makefile missed this :-/
- cd ${S}/tools/common; make || die "couldnt make commonlib."
+ cd "${S}"/tools/common; make || die "couldnt make commonlib."
# build all the milo images.
- cd ${S}; tools/scripts/build || die "failed to build milo images."
+ cd "${S}"; tools/scripts/build || die "failed to build milo images."
# put the ldmilo utility there.
- cp ${DISTDIR}/ldmilo-patched-${ldmilo_patch} ${S}/binaries/ldmilo.exe
- cp ${DISTDIR}/linload.exe ${S}/binaries/linload.exe
+ cp "${DISTDIR}"/ldmilo-patched-${ldmilo_patch} "${S}"/binaries/ldmilo.exe
+ cp "${DISTDIR}"/linload.exe "${S}"/binaries/linload.exe
}
src_install() {
-
- cd ${S}; dodir /opt/milo
+ cd "${S}"; dodir /opt/milo
insinto /opt/milo
einfo "Installing MILO images..."
@@ -214,10 +213,10 @@ src_install() {
doins ${i}
done
- cd ${S}/Documentation
+ cd "${S}"/Documentation
dodoc ChangeLog filesystem Nikita.Todo README.milo Todo README.BSD Stuff WhatIsMilo \
- ${FILESDIR}/README-gentoo ${FILESDIR}/mkserial_no.c ${DISTDIR}/MILO-HOWTO
+ "${FILESDIR}"/README-gentoo "${FILESDIR}"/mkserial_no.c "${DISTDIR}"/MILO-HOWTO
}
next reply other threads:[~2022-08-11 11:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-11 11:13 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-08-05 7:18 [gentoo-commits] repo/gentoo:master commit in: sys-boot/milo/ Joonas Niilola
2022-12-07 13:52 David Seifert
2019-11-13 6:53 Matt Turner
2019-10-05 18:56 Michał Górny
2017-11-27 11:24 David Seifert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1660216390.41c1621d8cc415fabf5889265af5712ddd48619f.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox