Bug 678856 - mathgl : does not adhere to Static Library Packaging Guidelines
Summary: mathgl : does not adhere to Static Library Packaging Guidelines
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: mathgl
Version: 19
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: D Haley
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-20 12:44 UTC by Michael Schwendt
Modified: 2013-05-25 14:56 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-25 14:56:42 UTC
Type: ---


Attachments (Terms of Use)

Description Michael Schwendt 2011-02-20 12:44:50 UTC
mathgl-1.11.0.1-2.fc15.src
is missing
BuildRequires: hdf-static

[...]

https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Static_Libraries_2

If a library you depend on only provides a static version your package can link against it provided that you BuildRequire the *-static subpackage. Packagers in such a situation should be aware that if a shared library becomes available, that you should adjust your package to use the shared library.

Comment 1 D Haley 2011-02-20 16:03:01 UTC
Hello, 

Thanks for bringing this up -- I was unable to reproduce the build error on my f13 install, and had not got around to making an f15 box.

I am wondering, looking at the hdf .spec (but not the code), why it does not ship a shared lib? I have CCd the hdf maintainer in so I can better understand the rationale for this.

Comment 2 Michael Schwendt 2011-02-20 18:11:33 UTC
There is no build error, just the violation of the packaging guidelines.
[ http://mschwendt.fedorapeople.org/staticbugstat.html ]

Comment 3 Orion Poplawski 2011-02-21 21:37:20 UTC
The hdf build system cannot build shared fortran libraries.

Comment 4 D Haley 2011-02-23 23:36:38 UTC
OK, I have added Bug #679948 as a dep on this, 'cause the build is failing for  a separate reason, so I cannot test the fix at the moment. Once that bug is fixed I will update this package across all versions.

However,I would quietly suggest patching the hdf build system --  Gentoo appear to have done this, so you can probably just use their patches:

http://mirror.mcs.anl.gov/pub/gentoo/distfiles/hdf-4.2_p4-patches.tar.bz2

its in hdf-4.2_p4-configure.ac.patch, and -as-needed.patch  and its much neater than the Debian ones.

Comment 5 Michael Schwendt 2011-04-27 10:10:50 UTC
Closed by: fedora-report-static-batch.py
http://mschwendt.fedorapeople.org/staticbugstat.html

Comment 6 Michael Schwendt 2011-06-18 10:30:11 UTC
Reopened by: fedora-report-static-batch.py

mathgl-1.11.0.1-6.fc16.src
is missing
BuildRequires: hdf-static

[...]

https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Static_Libraries_2

If a library you depend on only provides a static version your package can link against it provided that you BuildRequire the *-static subpackage. Packagers in such a situation should be aware that if a shared library becomes available, that you should adjust your package to use the shared library.

Comment 7 Michael Schwendt 2011-06-18 10:39:00 UTC
Not clear what's going on here though. It BuildRequires both

 hdf-devel hdf5-devel

and ought to BuildRequires hdf5-static instead (it links with -lhdf5 not -lhdf).

Comment 8 Michael Schwendt 2011-06-18 10:49:11 UTC
And I should trust the automated report, which is correct about

mathgl-1.11.0.1-6.fc16.src
is missing
BuildRequires: hdf-static

http://kojipkgs.fedoraproject.org/packages/mathgl/1.11.2/1.fc15/data/logs/i686/build.log

[...] -lgslcblas /usr/lib/hdf/libmfhdf.a /usr/lib/hdf/libdf.a -lz -lhdf5 -lgif [...]

Comment 9 D Haley 2011-06-23 22:35:02 UTC
Not sure why this was closed before.

Anyway:

Build with additional buildrequires, and removed hdf5-devel
http://koji.fedoraproject.org/koji/taskinfo?taskID=3157256

The duplicate -devel package is to solve a configure time problem. I could modify configure, but I would need to either update the package, or autoreconf -- neither of which is particularly appealing.

I did send upstream a note a while ago, and they are quite responsive. I can poke them again about this.

Marking as closed rawhide. Feel free to open again as needed. I still think we could look to using those gentoo patches to fix the static hdf build.

Comment 10 D Haley 2011-06-23 22:35:51 UTC
>I could
>modify configure, but I would need to either update the package, or autoreconf
>-- neither of which is particularly appealing.

That is, do that every new release. Ahem.

Comment 11 Michael Schwendt 2012-02-03 09:27:08 UTC
Reopened by: fedora-report-static-batch.py

mathgl-1.11.2-7.fc17.src
is missing
BuildRequires: hdf-static

[...]

https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Static_Libraries_2

If a library you depend on only provides a static version your package can link against it provided that you BuildRequire the *-static subpackage. Packagers in such a situation should be aware that if a shared library becomes available, that you should adjust your package to use the shared library.

Comment 12 Fedora End Of Life 2013-04-03 20:10:47 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19

Comment 13 Michael Schwendt 2013-05-25 14:56:42 UTC
Closed by: fedora-report-static-batch.py
http://mschwendt.fedorapeople.org/staticbugstat.html


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