Bug 476275 - Uninstalling packages breaks Requires(pre) dependencies
Summary: Uninstalling packages breaks Requires(pre) dependencies
Keywords:
Status: CLOSED DUPLICATE of bug 223642
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 10
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-12 20:40 UTC by Michael Schwendt
Modified: 2014-01-21 23:07 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-12-12 20:55:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michael Schwendt 2008-12-12 20:40:34 UTC
https://www.redhat.com/archives/fedora-test-list/2008-December/msg00426.html
https://www.redhat.com/archives/fedora-test-list/2008-December/msg00429.html

  $ rpm -qR glibc-devel|grep ^glib
  glibc = 2.9-2
  glibc-headers = 2.9-2

So, glibc-devel requires glibc-headers.

  $ rpm -q --provides glibc-headers
  glibc-headers(i386)  
  glibc-headers = 2.9-2
  glibc-headers(x86-32) = 2.9-2

  $ rpm -q --whatprovides glibc-headers
  glibc-headers-2.9-2.i386

  $ sudo rpm -e glibc-headers

Uh? That should not have been possible, because now:

  $ rpm -V glibc-devel
  Unsatisfied dependencies for glibc-devel-2.9-2.i386:
          glibc-headers = 2.9-2 is needed by glibc-devel-2.9-2.i386

As Seth's message adds, it's "Requires(pre)" for this dependency
on glibc-headers. That's true according to the glibc.spec file.

Is the Requires(pre) supposed to be so weak that it can be broken with a
simple rpm -e?

Comment 1 Ignacio Vazquez-Abrams 2008-12-12 20:52:02 UTC
Requires(pre) means that it's needed for running the script in %pre. If it needs to stick around for the lifetime of the requiring package then it should be a Requires as well.

Comment 2 Michael Schwendt 2008-12-12 20:55:51 UTC

*** This bug has been marked as a duplicate of bug 223642 ***


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