Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685232 - sci-libs/shapelib-1.4.1 cannot compile with the new sci-libs/proj-6.0.0
Summary: sci-libs/shapelib-1.4.1 cannot compile with the new sci-libs/proj-6.0.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL: https://github.com/OSGeo/proj.4/issue...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-05-06 21:37 UTC by PhobosK
Modified: 2019-05-11 14:37 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
shapelib-1.4.1.ebuild.patch (shapelib-1.4.1.ebuild.patch,516 bytes, patch)
2019-05-06 21:37 UTC, PhobosK
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description PhobosK 2019-05-06 21:37:16 UTC
Created attachment 575436 [details, diff]
shapelib-1.4.1.ebuild.patch

The new sci-libs/proj-6.0.0 is preparing for v. 7.0.0 where the usage of proj_api.h will be deprecated, so now at version 6.0.0 an error occurs when trying to use it.
Packages must be updated properly upstream, but till that happens a way to fix this is to append the necessary flags.

The sci-libs/shapelib-1.4.1 package gives the error too:
In file included from shpgeo.h:76:0,
                 from shpcentrd.c:52:
/usr/include/proj_api.h:37:2: error: #error 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H'
 #error 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H'

I am uploading a proposed fix for the ebuild...
Comment 1 Helmut Jarausch 2019-05-07 10:50:25 UTC
An alternative (better) solution is to bump to version 1.5.0
Comment 2 Chris Mayo 2019-05-07 16:38:57 UTC
(In reply to Helmut Jarausch from comment #1)
> An alternative (better) solution is to bump to version 1.5.0

ebuild here (although it is largely a rename minus proj dependency):
https://github.com/gentoo/gentoo/pull/11506
Comment 3 Andrew Petelin 2019-05-10 12:09:18 UTC
The same compilation error in the current stable version -- 1.4.0-r1. Should I post a new bug report for it?
Comment 4 Andrew Petelin 2019-05-10 12:11:18 UTC
Stable libgeotiff-1.4.0 also failed.
Comment 5 Andrew Petelin 2019-05-10 12:12:51 UTC
Oh, it's a problem in unstable proj package, sorry, no more report needed therefore.
Comment 6 Larry the Git Cow gentoo-dev 2019-05-11 14:37:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b467cf776c315eb62a08cd19e0bfe054ec88600

commit 4b467cf776c315eb62a08cd19e0bfe054ec88600
Author:     Chris Mayo <aklhfex@gmail.com>
AuthorDate: 2019-03-25 19:50:48 +0000
Commit:     Stefan Strogin <steils@gentoo.org>
CommitDate: 2019-05-11 14:31:41 +0000

    sci-libs/shapelib: version bump 1.5.0
    
    Closes: https://bugs.gentoo.org/685232
    Package-Manager: Portage-2.3.62, Repoman-2.3.11
    Signed-off-by: Chris Mayo <aklhfex@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/11506
    Signed-off-by: Stefan Strogin <steils@gentoo.org>

 sci-libs/shapelib/Manifest              |  1 +
 sci-libs/shapelib/shapelib-1.5.0.ebuild | 36 +++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)