Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 464386

Summary: dev-db/postgis does not respect AR
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: New packagesAssignee: PgSQL Bugs <pgsql-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: sci-geosciences
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    

Description Agostino Sarubbo gentoo-dev 2013-04-03 17:40:30 UTC
You receive this bug because this package does not respect my system's AR ( x86_64-pc-linux-gnu-ar - /usr/bin/x86_64-pc-linux-gnu-ar ) and calls directly ar - /usr/bin/ar
The possible solutions to fix this issue are:
1)Fix the buildsystem, if you can
2)inherit toolchain-funcs and use tc-export AR
3)inherit toolchain-funcs and use emake AR="$(tc-getAR)"


ar rs libpgcommon.a gserialized_gist.o lwgeom_transform.o lwgeom_pg.o
ar rs librtcore.a rt_api.o
Comment 1 Agostino Sarubbo gentoo-dev 2013-04-07 09:54:03 UTC
# grep cpp postgis-2.0.3:20130407-094730.log
checking for cpp... /usr/bin/cpp
  SQL preprocessor:     /usr/bin/cpp -traditional-cpp -P
/usr/bin/cpp -traditional-cpp -P -I../libpgcommon postgis.sql.in.c | grep -v '^#' > postgis.sql.in
/usr/bin/cpp -traditional-cpp -P -I../libpgcommon legacy.sql.in.c | grep -v '^#' > legacy.sql.in
/usr/bin/cpp -traditional-cpp -P -I../libpgcommon legacy_minimal.sql.in.c | grep -v '^#' > legacy_minimal.sql.in
/usr/bin/cpp -traditional-cpp -P -I../../postgis/ -I../../ rtpostgis.sql.in.c | grep -v '^#' > rtpostgis.sql.in
/usr/bin/cpp -traditional-cpp -P -I../../postgis/ -I../../ rtpostgis_drop.sql.in.c | grep -v '^#' > rtpostgis_drop.sql.in
/usr/bin/cpp -traditional-cpp -P -I../../postgis/ -I../../ rtpostgis_upgrade_cleanup.sql.in.c | grep -v '^#' > rtpostgis_upgrade_cleanup.sql.in
/usr/bin/cpp -traditional-cpp -P -I../../postgis/ -I../../ rtpostgis_legacy.sql.in.c | grep -v '^#' > rtpostgis_legacy.sql.in
/usr/bin/cpp -traditional-cpp -P topology.sql.in.c | grep -v '^#' > topology.sql.in
/usr/bin/cpp -traditional-cpp -P topology_drop_before.sql.in.c | grep -v '^#' > topology_drop_before.sql.in
/usr/bin/cpp -traditional-cpp -P topology_drop_after.sql.in.c | grep -v '^#' > topology_drop_after.sql.in
Comment 2 Aaron W. Swenson gentoo-dev 2013-04-08 11:18:10 UTC
Those are SQL files and the CPP is called with a separate variable -- $(SQLPP) instead of $(CPP) -- with specific arguments to produce them. Those SQL files are not further compiled into anything else. The build system doesn't override/ignore CPP{,FLAGS}.

They did set AR instead of ARFLAGS in one Makefile.
Comment 3 Aaron W. Swenson gentoo-dev 2013-08-18 19:18:54 UTC
Fixed in 2.1.0.