Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 10812 Details for
Bug 19460
Dynamically generated make.conf file
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to ufed to make is use new file
patch (text/plain), 1.71 KB, created by
Abhishek Amit (RETIRED)
on 2003-04-17 20:18:41 UTC
(
hide
)
Description:
Patch to ufed to make is use new file
Filename:
MIME Type:
Creator:
Abhishek Amit (RETIRED)
Created:
2003-04-17 20:18:41 UTC
Size:
1.71 KB
patch
obsolete
>--- /var/tmp/portage/ufed-0.2/work/ufed-0.2/ufed.pl 2002-12-28 18:06:41.000000000 -0800 >+++ ufed.pl 2003-04-17 17:13:09.000000000 -0700 >@@ -43,7 +43,7 @@ > { > if ($break_if_found == 1) > { >- die('did not find USE in ' . $file); >+ die('dd not find USE in ' . $file); > } > > return 'EMPTY'; >@@ -66,7 +66,7 @@ > # @flags = get_use_flags() > sub get_use_flags > { >- my @flags = get_use_flags_from_file('/etc/make.conf', 0); >+ my @flags = get_use_flags_from_file('/etc/make.conf.d/use', 0); > > if (($#flags + 1) == 1) > { >@@ -141,9 +141,9 @@ > > # $onoff = get_onoff_conf($flag) > # returns: >-# -1 if $flag is '-xyz' in make.conf >-# 0 if $flag is not in make.conf >-# 1 if $flag is '+xyz' in make.conf >+# -1 if $flag is '-xyz' in make.conf.d/use >+# 0 if $flag is not in make.conf.d/use >+# 1 if $flag is '+xyz' in make.conf.d/use > sub get_onoff_conf > { > my $flag = shift(); >@@ -312,11 +312,11 @@ > } > $use =~ s/^(.*)[ ]$/\1/; > >- unlink('/etc/make.conf.old'); >- rename('/etc/make.conf', '/etc/make.conf.old'); >+ unlink('/etc/make.conf.d/use.old'); >+ rename('/etc/make.conf.d/use', '/etc/make.conf.d/use.old'); > >- open(FILE, '/etc/make.conf.old') or die('couldn\'t open /etc/make.conf.old'); >- open(OUTFILE, '>/etc/make.conf') or die('couldn\'t open /etc/make.conf'); >+ open(FILE, '/etc/make.conf.d/use.old') or die('couldn\'t open /etc/make.conf.d/use.old'); >+ open(OUTFILE, '>/etc/make.conf.d/use') or die('couldn\'t open /etc/make.conf.d/use'); > > if ($use_in_conf == 1) > { >@@ -376,7 +376,7 @@ > close(OUTFILE); > close(FILE); > >- chmod(0644, '/etc/make.conf'); >+ chmod(0644, '/etc/make.conf.d/use'); > } > > >@@ -488,6 +488,7 @@ > save_use_flags($selected_flags); > > last; >+ `update-make.conf` > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19460
:
10809
| 10812 |
10813