Bug 1489158

Summary: g.extension fails due to missing include files in grass-devel RPM
Product: [Fedora] Fedora Reporter: markusN <neteler>
Component: grassAssignee: Devrim Gündüz <devrim>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: cz172638, davejohansen, devrim, oliver, pertusus, volker27
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: grass-7.4.0-1.fc28 grass-7.4.0-2.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-17 00:17:14 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
Updated SPEC file for GRASS GIS none

Description markusN 2017-09-06 20:20:25 UTC
In order to compile and install addons with GRASS' g.extension module, the directory /usr/include/grass/Make/ needs to be included in grass-devel.

In addition, a link is needed

/usr/lib64/grass-XXX/include/ -> /usr/include/grass/

since g.extension searches for include/ in /usr/lib[64]/grass-XXX/


Partial solution:

I created a GRASS GIS 7.2 package here with an updated SPEC file which contains the respective commented out code needed here. I am not familiar enough with SPEC files to get it completely working (should not be too complicated, though, to get GRASS' include/ directory packaged). The missing trick is that the paths in include/Make/Platform.make need to be updated to the target directory through a sed operation:

https://copr.fedorainfracloud.org/coprs/neteler/grass72/

https://copr-be.cloud.fedoraproject.org/results/neteler/grass72/fedora-27-x86_64/00597480-grass/grass.spec

Note: the SPEC file is also EPEL ready. "Just" this g.extension include thing is missing.

Comment 1 markusN 2018-01-16 20:12:50 UTC
The g.extension problem got solved, here the new GRASS GIS SPEC file:

https://trac.osgeo.org/grass/browser/grass/trunk/rpm/
- grass.spec
- grass_unversioned.spec

I have built and tested a binary package on COPR:

https://copr.fedorainfracloud.org/coprs/neteler/grass74/

Please update the official SPEC file with these fixes, thanks.

Comment 2 markusN 2018-01-19 22:23:54 UTC
Created attachment 1383616 [details]
Updated SPEC file for GRASS GIS

Comment 3 markusN 2018-01-19 22:26:33 UTC
Updated SPEC file for GRASS GIS (contributed by Markus Metz).

Fixes:
- g.extension bug by fixing "grass-devel" RPM which needs include/grass and include/Make dirs
- updates creation of "grass-gui" RPM

I tried to push it myself to https://src.fedoraproject.org/rpms/grass but I failed due to permission errors.

Comment 4 markusN 2018-01-28 15:42:52 UTC
New GRASS GIS 7.4.0 RPM submitted for review in bug #1539116 which solves this bug.

Comment 5 Fedora Update System 2018-03-25 19:47:33 UTC
grass-7.2.3-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-1788c9054c

Comment 6 Fedora Update System 2018-03-26 15:01:27 UTC
grass-7.2.3-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-1788c9054c

Comment 7 Fedora Update System 2018-04-11 07:14:55 UTC
grass-7.4.0-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-64644ab8c5

Comment 8 Fedora Update System 2018-04-11 22:58:17 UTC
grass-7.4.0-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-64644ab8c5

Comment 9 Fedora Update System 2018-04-17 00:17:14 UTC
grass-7.4.0-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2018-04-27 16:46:49 UTC
grass-7.4.0-2.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-e13babe183

Comment 11 Fedora Update System 2018-04-28 01:53:59 UTC
grass-7.4.0-2.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-e13babe183

Comment 12 Fedora Update System 2018-05-02 12:36:09 UTC
grass-7.4.0-2.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.