Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15540 - portage not handling config file properly ?
Summary: portage not handling config file properly ?
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-11 22:45 UTC by Francisco León
Modified: 2011-10-30 22:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
here goes my complete log (log.log,28.21 KB, text/plain)
2003-02-11 23:17 UTC, Francisco León
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco León 2003-02-11 22:45:32 UTC
modprobing the module asks for CARD_TYPE in emu10k1.conf which is undefined and 
non existant. this didn't happen in r2
Comment 1 SpanKY gentoo-dev 2003-02-11 22:52:28 UTC
run etc-update 
Comment 2 Francisco León 2003-02-11 22:58:00 UTC
what i meant, is that we dont know what can we put in that variable. Looking at /usr/bin/emu10k1-script i learned that the 2 possible values are:

audigy (duh)
emu (in case you have an original live card)

1)Please update the ebuild to reflect these 2 values in the current ewarn
2)Please change the emu10k1.conf file and put something like

# CARD_TYPE: possible values: [audigy|emu]

oh please, change emu to live, it's more intuitive
Comment 3 Francisco León 2003-02-11 23:01:32 UTC
i did run etc-update and nothing happened. looking at the source code i see that everything that i request here has been done, but weird, portage didn't warn me to run etc-update and running it now says there is nothing to do
Comment 4 SpanKY gentoo-dev 2003-02-11 23:05:10 UTC
if you run etc-update it'll add that information to the top of your emu10k1.conf file 
 
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/media-sound/emu10k1/files/emu10k1.conf-gentoo-header?rev=1.1&content-type=text/vnd.viewcvs-markup 
Comment 5 Francisco León 2003-02-11 23:07:46 UTC
i installed it again and it still fails to update /etc/emu10k1.conf, i have to do it myself.

Maybe it is because i had an older version installed and i modified the .conf file so emerge didn't remove it when it auto unmerged the older version

something must be wrong in the .ebuild
Comment 6 Francisco León 2003-02-11 23:09:54 UTC
sorry, etc-update does nothing.

i know the file is there, (i saw it myself in /files) but portage fails in updating it.
i dont get either the yellow dialog telling me i have x files changed in /etc and that i should run etc-update, neither if i manually run it i get the new file.

something is wrong in the ebuild
Comment 7 Francisco León 2003-02-11 23:17:20 UTC
Created attachment 8180 [details]
here goes my complete log

i am guessing the new file does not get updated and only gets installed
properly if you didn't have emu10k1 installed before
Comment 8 SpanKY gentoo-dev 2003-02-11 23:19:58 UTC
ill double check it 
Comment 9 SpanKY gentoo-dev 2003-02-12 10:26:47 UTC
ok, it is installed into ${D} correctly, but the merge doesnt do it right 
Comment 10 SpanKY gentoo-dev 2003-02-12 10:31:14 UTC
nick: please examine the emu10k1 ebuild with 2.0.46-r12 ... 
 
when it goes to merge ${D} with the livefilesystem, changes to a file in /etc/ are lost ... 
 
# cd /usr/portage/media-sound/emu10k1/ 
# ebuild emu10k1-0.20a-r3.ebuild clean unpack compile install 
# cd /var/tmp/portage/emu10k1-0.20a-r3/image/etc/ 
# diff -ur /etc/emu10k1.conf emu10k1.conf 
--- /etc/emu10k1.conf   2003-02-12 10:25:41.000000000 -0500 
+++ emu10k1.conf        2003-02-12 10:28:06.000000000 -0500 
@@ -1,3 +1,11 @@ 
+# Set your card type on the next line so that loading the 
+# kernel module works correctly. 
+# 
+# Accepted values are 'emu' and 'audigy' 
+#  use 'audigy' if you have an audigy based sound card, 
+#  otherwise use 'emu' 
+CARD_TYPE="set_me" 
+ 
 ## 
 ## This file is used to configure emu10k1's emu-script 
 ## 
# emerge emu10k1 
<emerges correctly> 
# etc-update 
Scanning Configuration files... 
Exiting: No files to work on! 
Comment 11 Nicholas Jones (RETIRED) gentoo-dev 2003-02-16 22:14:22 UTC
This is on purpose... But can be overridden in .47-r1 now.
--noconfmem