public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst] [PATCH] Make the use of preserved_libs optional by setting the options variable.
@ 2013-03-31  2:31 Jorge Manuel B. S. Vicetto (jmbsvicetto)
  2013-03-31 14:45 ` [gentoo-catalyst] " W. Trevor King
  2013-04-01  2:21 ` [gentoo-catalyst] " Rick "Zero_Chaos" Farina
  0 siblings, 2 replies; 3+ messages in thread
From: Jorge Manuel B. S. Vicetto (jmbsvicetto) @ 2013-03-31  2:31 UTC (permalink / raw
  To: gentoo-catalyst; +Cc: Jorge Manuel B. S. Vicetto (jmbsvicetto)

From: "Jorge Manuel B. S. Vicetto (jmbsvicetto)" <jmbsvicetto@gentoo.org>

---
 catalyst                   | 3 +++
 files/catalyst.conf        | 2 ++
 targets/support/unmerge.sh | 3 ++-
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/catalyst b/catalyst
index 9f8dd30..f885dd4 100755
--- a/catalyst
+++ b/catalyst
@@ -147,6 +147,9 @@ def parse_config(myconfig):
 	if "pkgcache" in string.split(conf_values["options"]):
 		print "Package cache support enabled."
 		conf_values["PKGCACHE"]="1"
+	if "preserve_libs" in string.split(conf_values["options"]);
+		print "Preserving libs during unmerge."
+		conf_values["PRESERVE_LIBS"]="1"
 
 	if "purge" in string.split(conf_values["options"]):
 		print "Purge support enabled."
diff --git a/files/catalyst.conf b/files/catalyst.conf
index f88f105..2983acc 100644
--- a/files/catalyst.conf
+++ b/files/catalyst.conf
@@ -59,6 +59,8 @@ hash_function="crc32"
 #	build stops in livecd-stage2)
 # pkgcache = keeps a tbz2 of every built package (useful if your build stops
 #	prematurely)
+# preserve_libs = enables portage to preserve used libs when unmerging packages
+#   (used on installcd-stage2 and stage4 targets)
 # seedcache = use the build output of a previous target if it exists to speed up
 #	the copy
 # snapcache = cache the snapshot so that it can be bind-mounted into the chroot.
diff --git a/targets/support/unmerge.sh b/targets/support/unmerge.sh
index 907113e..0c0c037 100644
--- a/targets/support/unmerge.sh
+++ b/targets/support/unmerge.sh
@@ -2,7 +2,8 @@
 
 source /tmp/chroot-functions.sh
 
-FEATURES="${clst_myfeatures} preserve-libs"
+# If the user enabled PRESERVE_LIBS in options, tell portage to preserve them.
+[ -n "${clst_PRESERVE_LIBS}" ] && FEATURES="${clst_myfeatures} preserve-libs"
 run_merge -C ${clst_packages}
 
 exit 0
-- 
1.8.1.5



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-catalyst] Re: [PATCH] Make the use of preserved_libs optional by setting the options variable.
  2013-03-31  2:31 [gentoo-catalyst] [PATCH] Make the use of preserved_libs optional by setting the options variable Jorge Manuel B. S. Vicetto (jmbsvicetto)
@ 2013-03-31 14:45 ` W. Trevor King
  2013-04-01  2:21 ` [gentoo-catalyst] " Rick "Zero_Chaos" Farina
  1 sibling, 0 replies; 3+ messages in thread
From: W. Trevor King @ 2013-03-31 14:45 UTC (permalink / raw
  To: gentoo-catalyst; +Cc: Jorge Manuel B. S. Vicetto (jmbsvicetto)

[-- Attachment #1: Type: text/plain, Size: 1848 bytes --]

On Sun, Mar 31, 2013 at 02:31:45AM +0000, Jorge Manuel B. S. Vicetto (jmbsvicetto) wrote:
> diff --git a/catalyst b/catalyst
> index 9f8dd30..f885dd4 100755
> --- a/catalyst
> +++ b/catalyst
> @@ -147,6 +147,9 @@ def parse_config(myconfig):
>  	if "pkgcache" in string.split(conf_values["options"]):
>  		print "Package cache support enabled."
>  		conf_values["PKGCACHE"]="1"
> +	if "preserve_libs" in string.split(conf_values["options"]);
> +		print "Preserving libs during unmerge."
> +		conf_values["PRESERVE_LIBS"]="1"
>  
>  	if "purge" in string.split(conf_values["options"]):
>  		print "Purge support enabled."
> diff --git a/files/catalyst.conf b/files/catalyst.conf
> index f88f105..2983acc 100644
> --- a/files/catalyst.conf
> +++ b/files/catalyst.conf
> @@ -59,6 +59,8 @@ hash_function="crc32"
>  #	build stops in livecd-stage2)
>  # pkgcache = keeps a tbz2 of every built package (useful if your build stops
>  #	prematurely)
> +# preserve_libs = enables portage to preserve used libs when unmerging packages
> +#   (used on installcd-stage2 and stage4 targets)
>  # seedcache = use the build output of a previous target if it exists to speed up
>  #	the copy
>  # snapcache = cache the snapshot so that it can be bind-mounted into the chroot.

Your whitespace looks inconsistent.  You're missing a blank line
before `if "preserve_libs" …`, and you've got some extra space in the
wrapped catalyst.conf comment.  It looks like the existing
catalyst.conf comments aren't particularly consistent, but the two
existing choices seem to be `#<TAB><COMMENT>` and
`#<SPACE><TAB><COMMENT>`.

Other than that, I like this patch.

Cheers,
Trevor

-- 
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-catalyst] [PATCH] Make the use of preserved_libs optional by setting the options variable.
  2013-03-31  2:31 [gentoo-catalyst] [PATCH] Make the use of preserved_libs optional by setting the options variable Jorge Manuel B. S. Vicetto (jmbsvicetto)
  2013-03-31 14:45 ` [gentoo-catalyst] " W. Trevor King
@ 2013-04-01  2:21 ` Rick "Zero_Chaos" Farina
  1 sibling, 0 replies; 3+ messages in thread
From: Rick "Zero_Chaos" Farina @ 2013-04-01  2:21 UTC (permalink / raw
  To: gentoo-catalyst

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/30/2013 10:31 PM, Jorge Manuel B. S. Vicetto (jmbsvicetto) wrote:

Seems okay to me.

- -ZC

> From: "Jorge Manuel B. S. Vicetto (jmbsvicetto)" <jmbsvicetto@gentoo.org>
> 
> ---
>  catalyst                   | 3 +++
>  files/catalyst.conf        | 2 ++
>  targets/support/unmerge.sh | 3 ++-
>  3 files changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/catalyst b/catalyst
> index 9f8dd30..f885dd4 100755
> --- a/catalyst
> +++ b/catalyst
> @@ -147,6 +147,9 @@ def parse_config(myconfig):
>  	if "pkgcache" in string.split(conf_values["options"]):
>  		print "Package cache support enabled."
>  		conf_values["PKGCACHE"]="1"
> +	if "preserve_libs" in string.split(conf_values["options"]);
> +		print "Preserving libs during unmerge."
> +		conf_values["PRESERVE_LIBS"]="1"
>  
>  	if "purge" in string.split(conf_values["options"]):
>  		print "Purge support enabled."
> diff --git a/files/catalyst.conf b/files/catalyst.conf
> index f88f105..2983acc 100644
> --- a/files/catalyst.conf
> +++ b/files/catalyst.conf
> @@ -59,6 +59,8 @@ hash_function="crc32"
>  #	build stops in livecd-stage2)
>  # pkgcache = keeps a tbz2 of every built package (useful if your build stops
>  #	prematurely)
> +# preserve_libs = enables portage to preserve used libs when unmerging packages
> +#   (used on installcd-stage2 and stage4 targets)
>  # seedcache = use the build output of a previous target if it exists to speed up
>  #	the copy
>  # snapcache = cache the snapshot so that it can be bind-mounted into the chroot.
> diff --git a/targets/support/unmerge.sh b/targets/support/unmerge.sh
> index 907113e..0c0c037 100644
> --- a/targets/support/unmerge.sh
> +++ b/targets/support/unmerge.sh
> @@ -2,7 +2,8 @@
>  
>  source /tmp/chroot-functions.sh
>  
> -FEATURES="${clst_myfeatures} preserve-libs"
> +# If the user enabled PRESERVE_LIBS in options, tell portage to preserve them.
> +[ -n "${clst_PRESERVE_LIBS}" ] && FEATURES="${clst_myfeatures} preserve-libs"
>  run_merge -C ${clst_packages}
>  
>  exit 0
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRWO8OAAoJEKXdFCfdEflKhvQQAIRa8ej8Om6cBR+5thPqiwAI
vIQeuhC7EYPmbVvXWRW2RE+NGChGQu3ynS4Rjifrx3guXPhEws+y8d3SdIX/9A1S
BZb8qFu9GZVsB6WjVhNX7/7PF8AJOK74i6Df7p+PyobO25/nXz/PkwqrfEdI7ZxG
DLOGG+ZoHwH+5LMqSyrWXQiCd4iK4e+kzqmPsX9YGqtZSsZKNqFQ9O/cfnuWKKll
sil1XS26YxTgtOXHlF3e+8rDJf3xIuuiuwZAhcwLn1hHjfl+im0tilzphiTGylhh
JQjzS30hO+i2Yg2vSKc7WJp26YfR3AL5VmjrnOfSuG7b+0ezXDx8p7qYlAqZ1W5n
qonansgVksbLu6oNlOcCIXsWWjlD325XqSIx3fc1W/dH3PMeOvTEgJgpX+UcORGp
8Q59Tcifz9uW5QJOnsGTxyfe76YrDR7U/uQzKYCAQSnIal+60WT2lXTRNRSFRo+U
gVJhTAsiBQvbvZ0vHC+CFFFjcWX6JAZOU6iTLFblgQzA9e7cYTIy37jCujhyn/+P
FEt9NlxPvToCximcvwsgkiCoV2R2eNsafZ8DhKk+4qVfmhrR5ntH5E0AB3m3xpam
GNd+GhG8N/eLCgh6jexN1EDiGG1T/o950YpKavj9AyjEPZSKQRzMnvmIVkajYCFK
SwmcVf14J9CkFs/4oQS8
=C2AX
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-04-01  2:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-31  2:31 [gentoo-catalyst] [PATCH] Make the use of preserved_libs optional by setting the options variable Jorge Manuel B. S. Vicetto (jmbsvicetto)
2013-03-31 14:45 ` [gentoo-catalyst] " W. Trevor King
2013-04-01  2:21 ` [gentoo-catalyst] " Rick "Zero_Chaos" Farina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox