Bug 1195960

Summary: SWI-Prolog (pl): library "archive" missing
Product: [Fedora] Fedora Reporter: Joachim Katzer <jokatzer>
Component: plAssignee: Petr Pisar <ppisar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: bagnara, mefoster, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: pl-6.4.1-2.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-09 08:26:16 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:
Attachments:
Description Flags
Proposed patch to fix the problem none

Description Joachim Katzer 2015-02-24 22:12:02 UTC
Description of problem:
Installation of add-ons by calling "pack_install(AddOnName)." fails with a Prolog exception because library archive is not contained by pl package - presumably because of a build problem.

Version-Release number of selected component (if applicable):
6.6.6-4.fc21.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Call swipl
2. ?- pack_install(function_expansion).


Actual results:
 Contacting server at http://www.swi-prolog.org/pack/query ... ok
Install function_expansion.2 from http://packs.ndrix.com/function_expansion/function_expansion-0.1.2.tgz Y/n? 
ERROR: library `archive' does not exist
   Exception: (10) prolog_pack:pack_archive_info('/home/achim/lib/swipl/pack/Downloads/function_expansion-0.1.2.tgz', function_expansion, _G4039, _G4040) ? 


Expected results:
Pack 'function_expansion' gets downloaded and installed.

Additional info:
Following files, necessary for downloading add-ons, are missing in package 'pl':
/usr/lib64/pl-6.6.6/library/archive.pl
/usr/lib64/pl-6.6.6/lib/x86_64-linux/archive4pl.so

Perhaps SWI-Prolog's package 'archive' is not properly compiled or skipped during build process.

Comment 1 Joachim Katzer 2015-02-25 19:24:12 UTC
Created attachment 995314 [details]
Proposed patch to fix the problem

I.M.H.O libarchive-devel is missing in the BuildRequirements.

After adding this build requirement, a new build in a mock environment should 
add the missing files:

/usr/lib64/swipl-6.6.6/lib/x86_64-linux/archive4pl.so
/usr/lib64/swipl-6.6.6/library/archive.pl

Comment 2 Petr Pisar 2015-02-27 08:29:12 UTC
Thank you for the report. Indeed the patch fixes it. I will update the pl package.

Comment 3 Fedora Update System 2015-02-27 09:05:24 UTC
pl-6.6.6-5.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/pl-6.6.6-5.fc22

Comment 4 Fedora Update System 2015-02-27 09:05:46 UTC
pl-6.6.6-5.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/pl-6.6.6-5.fc21

Comment 5 Fedora Update System 2015-02-27 09:31:12 UTC
pl-6.4.1-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/pl-6.4.1-2.fc20

Comment 6 Fedora Update System 2015-02-27 19:43:59 UTC
Package pl-6.6.6-5.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing pl-6.6.6-5.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-2784/pl-6.6.6-5.fc22
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2015-03-09 08:26:16 UTC
pl-6.6.6-5.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2015-03-10 00:55:12 UTC
pl-6.6.6-5.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2015-03-10 00:57:14 UTC
pl-6.4.1-2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.