Bug 1002828

Summary: Review Request: pure-glpk - GLPK interface for the Pure programming language
Product: [Fedora] Fedora Reporter: Christopher Meng <i>
Component: Package ReviewAssignee: T.C. Hollingsworth <tchollingsworth>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: i, package-review, tchollingsworth
Target Milestone: ---Flags: tchollingsworth: fedora-review+
petersen: fedora-cvs+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: pure-glpk-0.4-2.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-13 02:54:59 UTC Type: ---
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
build log none

Description Christopher Meng 2013-08-30 05:41:09 UTC
Spec URL: http://cicku.me/pure-glpk.spec
SRPM URL: http://cicku.me/pure-glpk-0.4-1.fc21.src.rpm
Description: This module provides a feature complete GLPK interface for the Pure 
programming language, which lets you use all capabilities of the GNU Linear 
Programming Kit (GLPK) directly from Pure.

GLPK (see http://www.gnu.org/software/glpk) contains an efficient simplex
LP solver, a simplex LP solver in exact arithmetics, an interior-point solver,
a branch-and-cut solver for mixed integer programming and some specialized
algorithms for net/grid problems. Using this interface you can build, modify
and solve the problem, retrieve the solution, load and save the problem and
solution data in standard formats and use any of advanced GLPK features.

The interface uses native Pure data types - lists and tuples - so that you
need not perform any data conversions to/from GLPK internal data structures.
Fedora Account System Username: cicku

Comment 1 T.C. Hollingsworth 2013-11-12 00:33:59 UTC
Created attachment 822697 [details]
build log

Fails to build from source.  See the attached build log for details.

Comment 2 Christopher Meng 2013-11-21 04:49:09 UTC
Missing BR:gmp-devel added, sorry for no release number bumped.

Please try again with comment 0.

Comment 3 T.C. Hollingsworth 2013-12-20 23:45:33 UTC
Now it's missing a different include.  :-(

+ make 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mtune=generic' -j4
cc -shared -o glpk.so glpk.c  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mtune=generic -fPIC  -lodbc -lglpk -lpure -lgmp -lltdl -lz 
In file included from glpk.c:28:0:
/usr/include/pure/runtime.h:38:18: fatal error: mpfr.h: No such file or directory
 #include <mpfr.h>
                  ^
compilation terminated.
make: *** [glpk.so] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.Rt9ahg (%build)
    Bad exit status from /var/tmp/rpm-tmp.Rt9ahg (%build)

Comment 4 Christopher Meng 2013-12-22 03:48:14 UTC
Sigh...

mpfr-devel added.

Scratched and fine now: http://koji.fedoraproject.org/koji/taskinfo?taskID=6324853

Only issue is that pure language is not available on ARM. pure 0.57 failed with %check section, others are fine: http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=2188909. But pure 0.58 is the latest version, I don't know if it has fixed the problem(I think not)

So I will add ExclusiveArch later or find a solution for that.

Thanks.

Comment 5 T.C. Hollingsworth 2013-12-22 04:04:46 UTC
(In reply to Christopher Meng from comment #4)
> Only issue is that pure language is not available on ARM. pure 0.57 failed
> with %check section, others are fine:
> http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=2188909. But pure
> 0.58 is the latest version, I don't know if it has fixed the problem(I think
> not)
> 
> So I will add ExclusiveArch later or find a solution for that.

ARM is primary now so I'm not supposed to approve without it being excluded somehow.  :-(

But hang on, lemme see if pure can be fixed real quick.  I'm scratch-building it now to see what's wrong, since logs got garbage collected. :-(

Comment 6 T.C. Hollingsworth 2013-12-22 06:15:34 UTC
pure really doesn't work on arm.  Hello, world! even fails.  See bug 835315.

I've added ExcludeArch on %{arm} to pure for now.  Please do the same to this package.

Comment 7 Christopher Meng 2013-12-27 12:18:24 UTC
Spec URL: http://cicku.me/pure-glpk.spec
SRPM URL: http://cicku.me/pure-glpk-0.4-2.fc21.src.rpm

Comment 8 T.C. Hollingsworth 2013-12-27 19:59:11 UTC
Looks good now.  This package is APPROVED!

Comment 9 Christopher Meng 2013-12-28 04:09:38 UTC
New Package SCM Request
=======================
Package Name: pure-glpk
Short Description: GLPK interface for the Pure programming language
Owners: cicku
Branches: f19 f20

Comment 10 Jens Petersen 2014-01-02 12:12:23 UTC
Git done (by process-git-requests).

Comment 11 Fedora Update System 2014-01-03 02:15:25 UTC
pure-glpk-0.4-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/pure-glpk-0.4-2.fc20

Comment 12 Fedora Update System 2014-01-03 02:15:37 UTC
pure-glpk-0.4-2.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/pure-glpk-0.4-2.fc19

Comment 13 Fedora Update System 2014-01-03 14:58:00 UTC
pure-glpk-0.4-2.fc19 has been pushed to the Fedora 19 testing repository.

Comment 14 Fedora Update System 2014-01-13 02:54:59 UTC
pure-glpk-0.4-2.fc20 has been pushed to the Fedora 20 stable repository.

Comment 15 Fedora Update System 2014-01-13 03:01:12 UTC
pure-glpk-0.4-2.fc19 has been pushed to the Fedora 19 stable repository.