Bug 10880 - bind cannot be updated if bind-doc is installed, due to both having /usr/share/doc/bind/CHANGES
Summary: bind cannot be updated if bind-doc is installed, due to both having /usr/shar...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords: Junior_job
: 18997 (view as bug list)
Depends on: 18983
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-30 02:43 CEST by Dave Hodgins
Modified: 2016-10-04 14:46 CEST (History)
6 users (show)

See Also:
Source RPM: bind-9.9.3.P2-1.mga3.src.rpm
CVE:
Status comment:


Attachments

Description Dave Hodgins 2013-07-30 02:43:32 CEST
As reported in https://bugs.mageia.org/show_bug.cgi?id=10869#c6
installing an updated version of bind fails, if bind-doc is also
installed, as they both have /usr/share/doc/CHANGES.


Reproducible: 

Steps to Reproduce:
Dave Hodgins 2013-07-30 02:47:50 CEST

Whiteboard: (none) => mga2too

Comment 1 David Walser 2013-07-30 02:49:45 CEST
Both packages will actually have whatever the main bind package puts in /usr/share/doc/bind, which is currently (from the %doc line under %files):
CHANGES README README.mga FAQ COPYRIGHT

Those files should only be in bind or bind-doc, not both.

CC: (none) => guillomovitch, oe

Comment 2 David Walser 2013-07-30 03:05:28 CEST
Or as Dave suggested on IRC, if bind-doc is packaging things the upstream Makefiles install in /usr/share/doc/bind, that directory could be renamed /usr/share/doc/bind-doc at the end of %install, which would make the doc directory owned by bind-doc consistent with every other package, and only bind would own the stuff in /usr/share/doc/bind (which would only be things it placed there itself in its own %doc tag).

To ensure clean upgrades, bind would conflict with bind-doc <= the current version we have now.
claire robinson 2013-07-30 07:53:36 CEST

CC: (none) => eeeemail

Comment 3 Guillaume Rousse 2013-07-30 09:07:13 CEST
> that directory could be renamed /usr/share/doc/bind-doc at the end of %install, which would make the doc directory owned by bind-doc consistent with every other package
Consistent but wrong: doc for package foo should be in /usr/share/doc/foo, whatever the exact subpackage it is shipped in.
Comment 4 David Walser 2014-01-28 16:58:14 CET
(In reply to Guillaume Rousse from comment #3)
> > that directory could be renamed /usr/share/doc/bind-doc at the end of %install, which would make the doc directory owned by bind-doc consistent with every other package
> Consistent but wrong: doc for package foo should be in /usr/share/doc/foo,
> whatever the exact subpackage it is shipped in.

Not wrong, packages ship in /usr/share/doc/foo based on their package name, not SRPM name.  Anyway, if you feel strongly about keeping them in /usr/share/doc/bind for some reason, then they should be removed from either bind or bind-doc.

CC: (none) => luigiwalser

Comment 5 Guillaume Rousse 2014-01-29 00:06:05 CET
Packages ship documentation under a /usr/share/doc subdirectory named after the binary package name by accident, just because %doc macro use the current package name. That doesn't make much sense than a file location, even if just documentation, change just because its distribution granularity changes too.
Comment 6 Marja Van Waes 2015-03-31 16:04:23 CEST
Mageia 3 changed to end-of-life (EOL) status 4 months ago.
http://blog.mageia.org/en/2014/11/26/lets-say-goodbye-to-mageia-3/ 

Mageia 3 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of Mageia
please feel free to click on "Version" change it against that version of Mageia
and reopen this bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

--
The Mageia Bugsquad

Resolution: (none) => OLD
Status: NEW => RESOLVED

Comment 7 David Walser 2015-03-31 18:42:12 CEST
Still valid.

Status: RESOLVED => REOPENED
Version: 3 => Cauldron
Resolution: OLD => (none)
Whiteboard: mga2too => MGA4TOO

Comment 8 David Walser 2016-07-21 03:21:07 CEST
*** Bug 18997 has been marked as a duplicate of this bug. ***

CC: (none) => bittwister2

Rémi Verschelde 2016-07-21 10:16:22 CEST

Keywords: (none) => Junior_job
Assignee: bugsquad => pkg-bugs
Whiteboard: MGA4TOO => MGA5TOO

Comment 9 Guillaume Rousse 2016-07-21 22:11:34 CEST
Fixed in 9.10.4.P2-2.mga6

Resolution: (none) => FIXED
Status: REOPENED => RESOLVED

Comment 10 Marja Van Waes 2016-07-24 10:06:17 CEST
(In reply to Guillaume Rousse from comment #9)
> Fixed in 9.10.4.P2-2.mga6

Thanks a lot :-)

Do you mind fixing it in Mageia 5, too?

Status: RESOLVED => REOPENED
CC: (none) => marja11
Version: Cauldron => 5
Resolution: FIXED => (none)
Whiteboard: MGA5TOO => (none)

Comment 11 David Walser 2016-07-24 16:32:35 CEST
We can include the fix with the security update that's currently pending.  You can still close this bug.
David Walser 2016-09-29 15:51:04 CEST

Depends on: (none) => 18983

Comment 12 David Walser 2016-10-04 14:46:30 CEST
Fixed in:
http://advisories.mageia.org/MGASA-2016-0332.html

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED


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