[Sugar-devel] Automake-fu question
andresambrois at gmail.com
Fri Feb 19 13:47:11 EST 2010
To provide mobile-broadband-provider-info support for the 3G feature, I need
to parse some system files, namely /usr/share/zoneinfo/iso3166.tab and
/usr/share/mobile-broadband-provider-info/serviceproviders.xml. In order for
packagers to override those locations I created a config.py.in file that looks
PROVIDERS_PATH = "@prefix@/share/mobile-broadband-provider-
PROVIDERS_FORMAT_SUPPORTED = "2.0"
COUNTRY_CODES_PATH = "@prefix@/share/zoneinfo/iso3166.tab"
Which is then converted by a make rule in Makefile.am into config.py. I
understand this is the recommended approach when using autotools .
One of the problems is that this breaks jhbuild, because it uses
--prefix=/path/to/jhbuild/install. The other is that by default @prefix@ expands
to /usr/local/, which is not the usual location for these files.
The full patch is , if you're interested.
More information about the Sugar-devel