Bug 975914

Summary: llvm-ocaml-devel installs broken symlinks
Product: [Fedora] Fedora Reporter: Maros Zatko <mzatko>
Component: llvmAssignee: Jan Včelák <jv+fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: ajax, bos, dmalcolm, jv+fedora, michel, petersen, scottt.tw
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: llvm-3.3-4.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-27 05:57:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Maros Zatko 2013-06-19 15:15:25 UTC
Description of problem:

One example from many:
$ file /usr/lib64/ocaml/libLLVMObjCARCOpts.a
/usr/lib64/ocaml/libLLVMObjCARCOpts.a: broken symbolic link to `/usr/lib64/llvm/libLLVMObjCARCOpts.a'


Version-Release number of selected component (if applicable):
llvm-ocaml-devel-3.3-0.6.rc3.fc19.x86_64

How reproducible:
always


Steps to Reproduce:
1. yum install llvm-ocaml-devel
2. look into /usr/lib64/ocaml/
3. observe there are broken symlinks

Actual results:
Broken symlinks to libraries.

Expected results:
Not broken symlinks and correct files in place, be able to compile things
which depends on those libraries.

Additional info:

Comment 1 Michael Schwendt 2013-08-11 11:32:09 UTC
That's due to some of the questionable packaging going on. The actual libs are found in the -static subpackage (following the Static Library Packaging Guidelines):

  %files static
  %defattr(-,root,root,-)
  %{_libdir}/%{name}/*.a

However, the symlinks and a few additional static libs are in the -ocaml-devel subpackage:

  %files ocaml-devel
  %defattr(-,root,root,-)
  %{_libdir}/ocaml/*.a
  %{_libdir}/ocaml/*.cmx*
  %{_libdir}/ocaml/*.mli

Comment 2 Jan Včelák 2013-12-19 21:25:24 UTC
I do not know how devel packages for Ocaml work, but I guess llvm-ocaml-devel package should require llvm-static instead of llvm-devel. I will fix that in the next build.

Comment 3 Fedora Update System 2013-12-20 18:54:28 UTC
llvm-3.3-4.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/llvm-3.3-4.fc19

Comment 4 Fedora Update System 2013-12-20 18:55:49 UTC
llvm-3.3-4.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/llvm-3.3-4.fc20

Comment 5 Fedora Update System 2013-12-22 05:30:56 UTC
Package llvm-3.3-4.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing llvm-3.3-4.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-23760/llvm-3.3-4.fc19
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-12-27 05:57:41 UTC
llvm-3.3-4.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2014-01-07 09:44:22 UTC
llvm-3.3-4.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.