Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 16428
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Games <games@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Giblets <gentoo-bugs@giblets.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 16428 depends on: 14321 Show dependency tree
Bug 16428 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-02-26 17:23 0000
These files should only be updated if the format changes, but always get
overwritten: 

/usr/share/games/nethack/record (stores the scores and all my stupid deaths!) 
/usr/share/games/nethack/logfile (just logs what games have been started) 
/usr/share/games/nethack/perm (an empty file used for locking) 


Reproducible: Always
Steps to Reproduce:
1. emerge nethack 

Actual Results:  
The files record, logfile and perm got overwritten. 

Expected Results:  
I was upgrading from v3.4.0-r5 to v3.4.0-r6 so the ebuild script should have
checked my 
current version of nethack, seen that the formats hadn't changed and not
overwritten the files. 
Same happens emerging v3.4.0-r6 when v3.4.0-r6 is installed.

------- Comment #1 From SpanKY 2003-02-26 22:15:04 0000 -------
i'll let this lay until Bug 14321 is fixed 

------- Comment #2 From Giblets 2003-03-01 08:53:11 0000 -------
I noticed that the nethack version number gets stored in the record file, so I
had a 
look at the source code and found that: 

record - this is geared up to deal with storing and reading scores from
different 
versions. 
logfile - only gets written to, never read. 
perm - this file just gets linked to. 

So, I don't think these files should ever get overwritten if they already
exist.  Don't 
know enough about emerge to know if this removes the dependency on bug 
#14321. 

------- Comment #3 From Eric Hustvedt 2003-03-04 00:03:17 0000 -------
Nethack has a 'make update' process that is designed to protect the record,
logfile, etc. when installing over an exist nethack install.

Perhaps the ebuild should be changed to test for the existence of a nethack
install. (Does portage presently have an api to do this from inside an ebuild?)
If the ebuild exists, it should do a 'make update', and not a 'make install'.

------- Comment #4 From SpanKY 2003-07-11 07:05:31 0000 -------
ok, i updated the ebuild so that if those files exist then the files in ${D}
will be renamed with a .sample at the end

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug