public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Brian Dolbec" <dolsen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/catalyst:pending commit in: targets/support/
Date: Thu, 21 May 2015 23:53:30 +0000 (UTC)	[thread overview]
Message-ID: <1425002584.fed3b45bb608d2022fbc253aff836397c5801cb7.dolsen@gentoo> (raw)
Message-ID: <20150521235330.PKl8ZLJHBbEYHnk6vHT1NbAPRDbYdyYUrdEHUMjiwiQ@z> (raw)

commit:     fed3b45bb608d2022fbc253aff836397c5801cb7
Author:     Guy Martin <gmsoft <AT> gentoo <DOT> org>
AuthorDate: Wed Feb  5 10:40:03 2014 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Fri Feb 27 02:03:04 2015 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=fed3b45b

Fix and improve kernel build when kerncache is enabled.

This patch gets rid of setting ROOT for merging kernel sources. Instead, the
sources are moved manually to the kerncache directory. A new file is created
containing the kernel version and it is fed into package.provided to prevent
merging the kernel sources again.
Brian Dolbec: fix whitespace error.

 targets/support/kmerge.sh | 39 ++++++++++++++++++++++++++++++---------
 1 file changed, 30 insertions(+), 9 deletions(-)

diff --git a/targets/support/kmerge.sh b/targets/support/kmerge.sh
index 100c6ef..03869c3 100755
--- a/targets/support/kmerge.sh
+++ b/targets/support/kmerge.sh
@@ -197,9 +197,17 @@ then
 
 	# Create the kerncache directory if it doesn't exists
 	mkdir -p /tmp/kerncache/${clst_kname}
-	clst_root_path=/tmp/kerncache/${clst_kname} PKGDIR=${PKGDIR} clst_myemergeopts="--quiet --update --newuse" run_merge "${clst_ksource}" || exit 1
-	KERNELVERSION=`portageq best_visible / "${clst_ksource}"`
-	if [ ! -e /etc/portage/profile/package.provided ]
+
+	if [ -e /tmp/kerncache/${clst_kname}/${clst_kname}-${clst_version_stamp}.KERNELVERSION ]
+	then
+		KERNELVERSION=$(</tmp/kerncache/${clst_kname}/${clst_kname}-${clst_version_stamp}.KERNELVERSION)
+		mkdir -p ${clst_port_conf}/profile
+		echo "${KERNELVERSION}" > ${clst_port_conf}/profile/package.provided
+	else
+		rm -f ${clst_port_conf}/profile/package.provided
+	fi
+
+	if [ ! -e ${clst_port_conf}/profile/package.provided ]
 	then
 		mkdir -p /etc/portage/profile
 		echo "${KERNELVERSION}" > /etc/portage/profile/package.provided
@@ -209,8 +217,26 @@ then
 			echo "${KERNELVERSION}" >> /etc/portage/profile/package.provided
 		fi
 	fi
+
 	[ -L /usr/src/linux ] && rm -f /usr/src/linux
-	ln -s /tmp/kerncache/${clst_kname}/usr/src/linux /usr/src/linux
+
+	PKGDIR=${PKGDIR} clst_myemergeopts="--quiet --nodeps --update --newuse" run_merge "${clst_ksource}" || exit 1
+
+	SOURCESDIR="/tmp/kerncache/${clst_kname}/sources"
+	if [ -L /usr/src/linux ]
+	then
+
+		# A kernel was merged, move it to $SOURCESDIR
+		[ -e ${SOURCESDIR} ] && rm -Rf ${SOURCESDIR}
+
+		KERNELVERSION=`portageq best_visible / "${clst_ksource}"`
+		echo "${KERNELVERSION}" > /tmp/kerncache/${clst_kname}/${clst_kname}-${clst_version_stamp}.KERNELVERSION
+
+		echo "Moving kernel sources to ${SOURCESDIR} ..."
+		mv `readlink -f /usr/src/linux` ${SOURCESDIR}
+
+	fi
+	ln -sf ${SOURCESDIR} /usr/src/linux
 
 	# If catalyst has set to a empty string, extraversion wasn't specified so we
 	# skip this part
@@ -259,9 +285,4 @@ unset USE
 if [ -n "${clst_KERNCACHE}" ]
 then
 	echo ${clst_kernel_use} > /tmp/kerncache/${clst_kname}/${clst_kname}-${clst_version_stamp}.USE
-
-	if [ -e ${clst_port_conf}/profile/package.provided ]
-	then
-		sed -i "/^$(echo "${KERNELVERSION}" | sed -e 's|/|\\/|g')\$/d" /etc/portage/profile/package.provided
-	fi
 fi


             reply	other threads:[~2015-05-21 23:53 UTC|newest]

Thread overview: 220+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-24  0:08 Brian Dolbec [this message]
2015-05-21 23:53 ` [gentoo-commits] proj/catalyst:pending commit in: targets/support/ Brian Dolbec
  -- strict thread matches above, loose matches on Subject: below --
2024-10-13 20:33 [gentoo-commits] proj/catalyst:master " Andreas K. Hüttel
2024-10-13 20:33 Andreas K. Hüttel
2024-10-13 20:33 Andreas K. Hüttel
2024-10-13 20:33 Andreas K. Hüttel
2024-10-13 20:33 Andreas K. Hüttel
2024-06-07 11:07 Ben Kohler
2024-05-14 13:27 Ben Kohler
2024-05-13 15:26 Ben Kohler
2024-05-13 15:07 Ben Kohler
2024-05-13 14:59 Ben Kohler
2024-05-02 17:58 Ben Kohler
2024-01-08 15:36 Ben Kohler
2023-09-03 20:03 Andreas K. Hüttel
2023-03-31 13:28 Ben Kohler
2023-03-31 13:28 Ben Kohler
2023-03-31 13:28 Ben Kohler
2023-03-31 13:28 Ben Kohler
2023-03-31 13:28 Ben Kohler
2023-03-31 13:28 Ben Kohler
2023-03-31 13:28 Ben Kohler
2023-03-31 13:28 Ben Kohler
2023-01-02 20:23 Ben Kohler
2022-12-27 11:21 Andreas K. Hüttel
2022-12-26 23:02 Andreas K. Hüttel
2022-11-28 20:38 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2022-11-22 21:19 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2022-11-28 20:38 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2022-11-22 21:19 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2022-11-20  0:21 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2022-11-17 23:42 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2022-11-20  0:21 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2022-04-20 23:26 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2022-11-17 23:42 Matt Turner
2022-11-17 23:42 Matt Turner
2022-03-15 14:36 Andreas K. Hüttel
2022-01-30 20:42 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2021-07-29  1:22 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2022-01-30 20:42 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2021-07-19  3:03 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2021-07-29 22:00 Matt Turner
2021-07-29  1:22 Matt Turner
2021-06-10  0:48 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2021-02-21  2:05 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-12-19 19:56 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2020-12-27 23:15 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-12-19 19:56 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2020-11-02 17:05 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-29 21:00 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-29 21:00 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-29 21:00 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-29 21:00 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-29 21:00 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-28 20:51 [gentoo-commits] proj/catalyst:pending/mattst88 " Matt Turner
2020-10-24 22:07 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-28 20:51 [gentoo-commits] proj/catalyst:pending/mattst88 " Matt Turner
2020-10-24 22:07 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-22 18:06 [gentoo-commits] proj/catalyst:pending/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-22 18:06 [gentoo-commits] proj/catalyst:pending/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-22 18:06 [gentoo-commits] proj/catalyst:pending/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-21 17:58 Matt Turner
2020-10-21 17:58 Matt Turner
2020-10-21 17:58 Matt Turner
2020-10-21 17:58 Matt Turner
2020-10-21 17:58 Matt Turner
2020-10-21 17:58 Matt Turner
2020-10-21 17:58 Matt Turner
2020-10-20  8:30 [gentoo-commits] proj/catalyst:pending/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-20  8:30 [gentoo-commits] proj/catalyst:pending/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-20  8:30 [gentoo-commits] proj/catalyst:pending/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-03 16:03 Matt Turner
2020-05-21 20:25 Matt Turner
2020-05-20  3:39 [gentoo-commits] proj/catalyst:pending/mattst88 " Matt Turner
2020-05-21 20:25 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-05-17  3:26 Matt Turner
2020-05-16  6:54 [gentoo-commits] proj/catalyst:pending/mattst88 " Matt Turner
2020-05-17  3:26 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-05-05  0:38 Matt Turner
2020-05-05  0:38 Matt Turner
2020-05-05  0:38 Matt Turner
2020-04-23 16:15 Rick Farina
2020-04-17 19:57 Ben Kohler
2020-04-13 20:36 Matt Turner
2020-04-10  6:18 Matt Turner
2020-04-10  6:18 Matt Turner
2020-04-10  6:18 Matt Turner
2020-04-10  2:11 Matt Turner
2020-04-10  2:11 Matt Turner
2020-04-10  2:11 Matt Turner
2020-04-09 18:48 Matt Turner
2020-04-09 18:48 Matt Turner
2020-04-09 18:48 Matt Turner
2020-04-09 18:48 Matt Turner
2020-04-07 17:25 Matt Turner
2020-04-07 17:25 Matt Turner
2020-04-03  7:48 Matt Turner
2020-04-03  7:48 Matt Turner
2020-04-03  7:48 Matt Turner
2020-04-03  7:48 Matt Turner
2020-04-03  7:48 Matt Turner
2020-04-03  7:48 Matt Turner
2020-04-01  4:22 Matt Turner
2020-04-01  4:22 Matt Turner
2020-04-01  4:22 Matt Turner
2020-04-01  4:22 Matt Turner
2020-03-31 18:38 Matt Turner
2020-03-31 18:38 Matt Turner
2020-03-31  3:59 Matt Turner
2020-03-31  3:59 Matt Turner
2020-03-30 23:47 Matt Turner
2020-03-29 17:48 Matt Turner
2020-03-29 17:48 Matt Turner
2020-03-29 17:48 Matt Turner
2020-03-28 20:07 Matt Turner
2020-02-02  2:26 Matt Turner
2019-10-22 21:07 Ben Kohler
2019-07-03 16:20 Rick Farina
2019-01-15 20:09 Rick Farina
2019-01-15 20:09 Rick Farina
2018-12-21 14:14 Ben Kohler
2018-12-21 14:14 Ben Kohler
2018-11-20 21:32 Matt Turner
2018-11-16 18:00 Matt Turner
2018-11-16 17:53 Matt Turner
2018-11-16 17:52 Matt Turner
2018-10-17 19:26 Ben Kohler
2018-10-02 20:30 Ben Kohler
2018-10-02 20:21 Ben Kohler
2018-10-01 16:30 Brian Dolbec
2018-10-01 16:30 Brian Dolbec
2018-09-14  5:40 Matt Turner
2018-09-14  5:40 Matt Turner
2018-09-14  5:40 Matt Turner
2018-09-14  5:40 Matt Turner
2018-08-01 15:45 Richard Farina
2018-07-28  0:55 Richard Farina
2018-07-16 16:25 Richard Farina
2018-07-13 20:35 Ben Kohler
2018-07-13 20:00 Richard Farina
2018-07-13 18:11 Richard Farina
2018-07-03 20:35 Richard Farina
2018-07-03 20:35 Richard Farina
2018-07-03  1:33 Richard Farina
2018-07-02 18:55 Richard Farina
2018-03-05 20:45 Richard Farina
2018-03-05 20:45 Richard Farina
2018-03-05 20:37 Richard Farina
2018-03-05 20:27 Richard Farina
2018-03-05 20:21 Richard Farina
2018-03-05 20:21 Richard Farina
2018-01-05 16:41 Brian Dolbec
2017-12-15 23:35 Robin H. Johnson
2017-11-29 17:33 Brian Dolbec
2017-10-12 19:41 Robin H. Johnson
2017-03-11 22:22 Mike Frysinger
2016-09-19  3:27 Brian Dolbec
2016-09-15  0:57 Richard Farina
2016-07-16 17:35 Brian Dolbec
2016-07-09  3:46 Brian Dolbec
2016-04-21 17:05 Mike Frysinger
2016-04-21  5:38 Mike Frysinger
2016-03-27  4:55 Mike Frysinger
2015-09-23 18:45 Richard Farina
2015-09-23 17:55 Richard Farina
2015-09-20 19:46 Richard Farina
2015-09-10 19:39 Richard Farina
2015-09-03  1:51 Richard Farina
2015-09-02 21:25 Richard Farina
2015-08-31 20:07 Richard Farina
2015-08-31 18:49 Richard Farina
2015-08-31  4:03 Richard Farina
2015-08-31  3:45 Richard Farina
2015-08-31  3:36 Richard Farina
2015-05-24  0:08 Brian Dolbec
2015-05-24  0:08 Brian Dolbec
2015-05-24  0:08 Brian Dolbec
2015-05-24  0:08 Brian Dolbec
2015-05-24  0:08 Brian Dolbec
2015-05-21 23:53 [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2015-05-24  0:08 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2015-05-21 23:53 [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2015-05-24  0:08 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2015-05-21 23:53 [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2015-05-24  0:08 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2015-05-21 23:53 [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2015-05-24  0:08 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2015-05-21 23:53 [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2015-05-24  0:08 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2015-02-26 20:12 Brian Dolbec
2015-02-26 20:12 Brian Dolbec
2015-02-26 20:12 Brian Dolbec
2015-02-26 19:25 [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2015-02-26 20:12 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2014-12-24 14:43 Raúl Porcel
2014-12-24 14:43 Raúl Porcel
2014-11-28 11:42 Raúl Porcel
2014-10-26 12:24 Raúl Porcel
2014-09-11  3:26 Brian Dolbec
2014-09-11  3:26 Brian Dolbec
2014-09-11  3:08 [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2014-09-11  3:26 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2014-05-05 19:17 Brian Dolbec
2013-10-26 20:10 Matt Turner
2013-10-26 20:10 Matt Turner
2013-08-06  0:40 Richard Farina
2013-08-02  6:16 Richard Farina
2013-08-02  5:27 Richard Farina
2013-08-02  5:26 Richard Farina
2013-07-30  8:08 Brian Dolbec
2013-07-30  7:08 Matt Turner
2013-07-25  5:33 Matt Turner
2013-05-28 20:20 Richard Farina
2013-04-14 17:30 Jorge Manuel B. S. Vicetto
2013-03-09  2:55 Matt Turner
2013-03-06  1:09 Matt Turner
2013-03-01  6:06 Matt Turner
2013-02-23  2:02 Matt Turner
2013-02-05  8:34 Matt Turner
2013-01-08 21:42 Richard Farina
2012-11-02  1:49 Jorge Manuel B. S. Vicetto
2012-11-02  1:19 Jorge Manuel B. S. Vicetto
2012-11-02  1:12 Richard Farina
2012-11-02  1:12 Richard Farina
2012-11-02  1:12 Richard Farina
2012-11-02  0:07 Richard Farina
2012-11-02  0:07 Richard Farina
2012-11-02  0:07 Richard Farina
2012-10-13  2:48 Jorge Manuel B. S. Vicetto
2012-10-01 11:10 Jorge Manuel B. S. Vicetto
2012-09-30 22:29 Jorge Manuel B. S. Vicetto
2012-09-30 22:29 Jorge Manuel B. S. Vicetto
2012-09-28  1:35 Matt Turner
2012-08-23  5:55 Jorge Manuel B. S. Vicetto
2012-08-23  5:55 Jorge Manuel B. S. Vicetto
2012-04-22  2:43 Jorge Manuel B. S. Vicetto
2011-12-20  7:16 Jorge Manuel B. S. Vicetto
2011-09-01 23:22 Matt Turner
2011-07-14  0:48 Jorge Manuel B. S. Vicetto
2011-06-25 21:46 Jorge Manuel B. S. Vicetto

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=1425002584.fed3b45bb608d2022fbc253aff836397c5801cb7.dolsen@gentoo \
    --to=dolsen@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