Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 805005 - dev-db/spatialite-5.0.1-r1 compilation fails with zlib-ng
Summary: dev-db/spatialite-5.0.1-r1 compilation fails with zlib-ng
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-29 09:26 UTC by Bogdan
Modified: 2021-08-01 19:47 UTC (History)
0 users

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


Attachments
emerge --info (emerge.info.log,10.14 KB, text/x-log)
2021-07-29 09:29 UTC, Bogdan
Details
build.log (build.log,11.56 KB, text/x-log)
2021-07-29 09:30 UTC, Bogdan
Details
emerge -pv zlib-ng (zlib-ng.pv.log,365 bytes, text/x-log)
2021-07-29 09:30 UTC, Bogdan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bogdan 2021-07-29 09:26:25 UTC
I switch my system from zlib to zlib-ng.

Compilation of spatialite-5.0.1-r1 fails with an error:
> configure: error: cannot find minizip/unzip.h, bailing out

Instructions for switching system from zlib to zlib-ng:
1) Install zlib-ng package:
  USE="-compat" emerge sys-apps/zlib-ng
2) Remove zlib package from system:
  emerge -C sys-apps/zlib
3) Rebuild zlib-ng as replacement for zlib:
  USE="compat" emerge -1 sys-apps/zlib-ng
4) Apply permanent "compat" use flag for zlib-ng:
  echo "sys-apps/zlib-ng compat" >> /etc/portage/package.use/custom
5) Mark zlib-ng as system package:
  echo "*sys-apps/zlib-ng" >> /etc/portage/profile/packages
6) Mark as installed last installed version of zlib package:
(this needs for packages, which require sys-libs/zlib as dependency)
  echo "sys-libs/zlib-1.2.11-r4" >> /etc/portage/profile/package.provided

Reproducible: Always

Steps to Reproduce:
1. Swap sys-libs/zlib to sys-libs/zlib-ng
2. Compile sci-libs/gdal with spatialite use flag enabled.
3. Compile dev-db/spatialite as dependency for sci-libs/gdal[spatialite].
Actual Results:  
dev-db/spatialite compilation fails.

Expected Results:  
dev-db/spatialite must compiled successfully.
Comment 1 Bogdan 2021-07-29 09:29:02 UTC
Created attachment 727830 [details]
emerge --info
Comment 2 Bogdan 2021-07-29 09:30:17 UTC
Created attachment 727833 [details]
build.log
Comment 3 Bogdan 2021-07-29 09:30:57 UTC
Created attachment 727836 [details]
emerge -pv zlib-ng