Bug 1748923

Summary: perl-Geo-Proj4-1.09-4.fc32 FTBFS with proj-6.2.0: Proj4.xs:7:10: fatal error: projects.h: No such file or directory
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-Geo-Proj4Assignee: Petr Pisar <ppisar>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: perl-GIS-Distance-0.18-5.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-20 08:09:42 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 Petr Pisar 2019-09-04 13:13:37 UTC
perl-Geo-Proj4-1.09-4.fc32 fails to build in F32:

gcc -c  -I./include -I. -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection   -DVERSION=\"1.09\" -DXS_VERSION=\"1.09\" -fPIC "-I/usr/lib64/perl5/CORE"   Proj4.c
Proj4.xs:7:10: fatal error: projects.h: No such file or directory
    7 | #include "projects.h"
      |          ^~~~~~~~~~~~
compilation terminated.

This is triggered with upgrading proj-devel from 5.2.0 to 6.2.0.

Comment 1 Petr Pisar 2019-09-04 13:14:54 UTC
Upstream struggles with the porting since May 2019.

Comment 2 Petr Pisar 2019-09-20 07:54:12 UTC
I managed to port the code so that it compiles, but tests fail. The reason is that the new Proj API changes semantics. That requires a complete rewrite of perl-Geo-Proj4 because perl-Geo-Proj4 is only a thin wrapper around Proj. The complete rewrite would naturally change perl-Geo-Proj4 API and semantics. That means perl-Geo-Proj4 is dead. Upstream confirmed he cannot work on that.

We need to retire perl-Geo-Proj4.

Affected packages:

perl-Geo-Proj4
perl-Geo-Point -- hard-require perl-Geo-Proj4, will be retired.
perl-GIS-Distance -- uses perl-Geo-Point for optional tests. Optional tests will be disabled.
perl-GIS-Distance-Fast -- hard-require perl-GIS-Distance

Therefore I'm going to retire perl-Geo-Proj4 and perl-Geo-Point. perl-GIS-Distance spec file will be adjusted. perl-GIS-Distance-Fast does not need any changes.

Comment 3 Petr Pisar 2019-09-20 08:09:42 UTC
This package was removed from Fedora 32.