Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 150411 - mhash-devel does not require mhash
mhash-devel does not require mhash
Product: Fedora
Classification: Fedora
Component: mhash (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Michael Schwendt
Fedora Extras Quality Assurance
: EasyFix
Depends On:
  Show dependency treegraph
Reported: 2005-03-05 16:01 EST by Leonard den Ottolander
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-03-05 16:09:31 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
SPEC file with "mhash-devel Requires: mhash" removed. (2.35 KB, text/plain)
2005-03-05 16:03 EST, Leonard den Ottolander
no flags Details

  None (edit)
Description Leonard den Ottolander 2005-03-05 16:01:32 EST
The requirement on mhash for mhash-devel is unnecessary.

Hence the Requires: mhash for mhash-devel can be removed.
Comment 1 Leonard den Ottolander 2005-03-05 16:03:14 EST
Created attachment 111697 [details]
SPEC file with "mhash-devel Requires: mhash" removed.
Comment 2 Michael Schwendt 2005-03-05 16:09:31 EST
Why? mhash-devel contains a symlink to a DSO file which is only
included in the main mhash package. Further, -devel package and main
package ought to be always in sync.
Comment 3 Leonard den Ottolander 2005-03-05 20:24:01 EST
Nope. I can perfectly well build php with mhash support with only
mhash-devel installed. Only on the production machine (web server) I
will need to have mhash itself installed.

If every -devel package would need the main package to be installed
most build systems would grow rather fat, don't you think?

The shared object itself is not necessary to build binaries that
depend on it. Only the header file and the static library (.a and .la)
need to be available in the -devel package. The .so file can be safely
put in the main package without breaking anything.
Comment 4 Leonard den Ottolander 2005-03-05 20:34:48 EST
Why do you exclude .la?
Comment 5 Leonard den Ottolander 2005-03-05 20:52:04 EST
# libmhash.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.5.10 (1.1220.2.130 2004/09/19
# Please DO NOT delete this file!
# It is necessary for linking the library.
Comment 6 Michael Schwendt 2005-03-05 21:06:38 EST
You can only build php like that, because the static archive for mhash
is included as well and you link statically. If it were not included,
your build would fail.

The .so link is not used at run-time, so it would be wrong to put it
into the main package. It's only used during build-time linking.
Including it within the main package would prevent multiple APIs/ABIs
of a library to be installable at once.

Take a look at other -devel packages. Find the rare exceptions where a
-devel package does not require its main package.

I exclude libtool archives, because we don't need them. Other issues
with .la files are not relevant for mhash.

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