Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1129292

Summary: postgis fails to build in rawhide due to json-c
Product: [Fedora] Fedora Reporter: Marcin Juszkiewicz <mjuszkie>
Component: postgisAssignee: Jozef Mlich <jmlich>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: admiller, devrim, hhorak, jmlich, praiskup
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-19 09:30:47 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:
Bug Depends On: 1129295    
Bug Blocks: 922257    
Attachments:
Description Flags
backport + spec changes mjuszkie: review?

Description Marcin Juszkiewicz 2014-08-12 14:20:06 UTC
Description of problem:

PostGIS is not buildable in current rawhide as it finds json-c/json.h header but still tries to use non-existing json/json.h one.

Version-Release number of selected component (if applicable):

2.1.3-3

How reproducible:

always

Steps to Reproduce:
1. fedpkg clone -a postgis
2. fedpkg mockbuild
3.

Actual results:

libtool: compile:  gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC -DPIC -Wall -Wmissing-prototypes -I/usr/include -c lwtin.c  -fPIC -DPIC -o .libs/lwtin.o
lwin_geojson.c:20:23: fatal error: json/json.h: No such file or directory
 #include <json/json.h>
                       ^
compilation terminated.

Expected results:

package builds

Additional info:

On AArch64 it is also unable to find proper gdal-config but I have other bug report to fill for it.

Comment 1 Marcin Juszkiewicz 2014-08-12 14:28:53 UTC
Created attachment 926080 [details]
backport + spec changes

Comment 2 Jozef Mlich 2014-08-18 09:01:13 UTC
Thanks for reporting!

It seems, the json-c package is changing very quickly. I have turned it on recently, but it seems it is causing more troubles than benefits it brings. I will disable the package for now.

Comment 3 Christopher Meng 2014-08-19 05:05:53 UTC
(In reply to Jozef Mlich from comment #2)
> Thanks for reporting!
> 
> It seems, the json-c package is changing very quickly. I have turned it on
> recently, but it seems it is causing more troubles than benefits it brings.
> I will disable the package for now.

I bumped the json-c to 0.12, and it has 1 API change without soname bump discovered later.

Please track this with the upstream.

#include <json/json.h> has been obsolete for releases, 0.12 finally drops it.