Bug 155256 - /var/log/lastlog from setup conflicts with util-linux
/var/log/lastlog from setup conflicts with util-linux
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: util-linux (Show other bugs)
rawhide
All Linux
high Severity high
: ---
: ---
Assigned To: Karel Zak
Ben Levenson
:
: 166959 (view as bug list)
Depends On:
Blocks: FC4Blocker FC5Blocker
  Show dependency treegraph
 
Reported: 2005-04-18 12:47 EDT by Robert Scheck
Modified: 2007-11-30 17:11 EST (History)
7 users (show)

See Also:
Fixed In Version: 4.4.1-21
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-02-22 07:26:22 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
Ignore %ghost and %ghost file conflicts (1021 bytes, patch)
2005-04-19 11:55 EDT, Paul Nasrat
no flags Details | Diff
setup vs util-linux rpmfi (281 bytes, application/octet-stream)
2005-06-16 10:53 EDT, Paul Nasrat
no flags Details

  None (edit)
Description Robert Scheck 2005-04-18 12:47:12 EDT
Description of problem:
Preparing...                ########################################### [100%]
        file /var/log/lastlog from install of setup-2.5.41-1 conflicts with 
file from package util-linux-2.12p-7

Version-Release number of selected component (if applicable):
setup-2.5.41-1

How reproducible:
Everytime.

Expected results:
No conflict.
Comment 1 Bill Nottingham 2005-04-18 12:51:03 EDT
Should be fixed in 2.5.42-1.
Comment 2 Robert Scheck 2005-04-19 07:57:45 EDT
No, it isn't; reopening :-(

Preparing...                ########################################### [100%]
        file /var/log/lastlog from install of setup-2.5.42-1 conflicts with file from package util-linux-2.12p-7

Bill, couldn't we remove owning /var/log/lastlog from setup package but require 
latest util-linux for example?
Comment 3 Bill Nottingham 2005-04-19 11:15:06 EDT
No, beause if util-linux isn't installed first, it will get removed on update.

util-linux.spec has:
%ghost %attr(0400,root,root) %verify(not md5 size mtime) /var/log/lastlog

setup.spec has:
%ghost %attr(0400,root,root) %verify(not md5 size mtime) /var/log/lastlog

Not sure what else to do here...
Comment 4 Paul Nasrat 2005-04-19 11:55:39 EDT
Created attachment 113368 [details]
Ignore %ghost and %ghost file conflicts

We could be skipping %ghost file conflicts if both packages mark the file as
%ghost

The patch above addresses strictly %ghost and %ghost behaviour.
Comment 5 Robert Scheck 2005-05-20 13:33:10 EDT
Using current Rawhide, installing of the setup package is possible without any 
problem or conflict. Can somebody confirm this?
Comment 6 Roozbeh Pournader 2005-06-09 13:01:26 EDT
The bug is still there in FC4.
Comment 7 Robert Scheck 2005-06-09 13:30:07 EDT
Really?! Reopening as FC4Blocker until somebody of Red Hat says the opposite...
Comment 8 Karel Zak 2005-06-16 09:19:22 EDT
I can confirm it:
  # rpm -U util-linux-2.12p-9.4.i386.rpm
        file /var/log/lastlog from install of util-linux-2.12p-9.4 conflicts
        with file from package setup-2.5.44-1

  # rpm -q rpm
  rpm-4.4.1-21

Bill's comment #3 is true. There's %ghost in both packages.

%post in util-linux:
  touch /var/log/lastlog
  chown root:root /var/log/lastlog
  chmod 0400 /var/log/lastlog
Comment 9 Jeff Johnson 2005-06-16 10:14:03 EDT
And *WHY* is this problem being reported against rpm?

Skipping %ghost file conflicts is just the tip of an iceberg ...
Comment 10 Paul Nasrat 2005-06-16 10:53:46 EDT
Created attachment 115544 [details]
setup vs util-linux rpmfi
Comment 11 Robert Scheck 2005-09-10 06:50:32 EDT
Paul, can we *please* get rid of this problem very soon? It's very annoying and 
absolutely unnecessary! So the package setup avoids update of util-linux and the 
other way round!

IMHO there are two possibilities:
a) The Red Hat maintainers do fine RPM packaging (the way jbj prefers)
b) Or we're using your workaround/hack from comment #4
Comment 12 Jeff Johnson 2005-11-13 22:34:44 EST
This is a util-linux or setup, not an rpm, problem. rpm has flat zippo to say
about what packages own what files.

Reassigning to util-linux ...
Comment 17 Karel Zak 2005-11-28 08:51:14 EST
Paul, what's up with rpm-4.4.3?
Comment 18 Paul Nasrat 2005-11-28 13:23:42 EST
*** Bug 166959 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.