specified LIBRARY_DIRECTORY is used in bake-bootstrap, but not in bake

Bug #1162600 reported by Adam Dingle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bake
Fix Released
High
Unassigned

Bug Description

When I specify a LIBRARY_DIRECTORY when making bake, bake-bootstrap uses that library but the final bake does not. For example, on my 64-bit machine I need to build with

$ make LIBRARY_DIRECTORY=/usr/lib/x86_64-linux-gnu/

Then bake-bootstrap uses that directory in building bake. But the resulting bake does not use that directory: if I run bake on a simple 'hello, world' Vala program I get

===
Unable to compile program test:
 - Package gobject-2.0 not installed
 - Package glib-2.0 not installed
===

The file config.vala generated in building bake contains this line:

public const string LIBRARY_DIRECTORY = "/usr/lib";

So the LIBRARY_DIRECTORY I specified when running make evidently doesn't make it into there.

Related branches

Changed in bake:
status: New → Fix Committed
importance: Undecided → High
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Fixed in 0.1.14

Changed in bake:
status: Fix Committed → Fix Released
Changed in bake:
milestone: none → 0.1.14
Revision history for this message
INIZAN yannick (inizan-yannick) wrote :

Not fixed :

PATH=`pwd`:$PATH ./bake-bootstrap --configure library-directory=/usr/lib/x86_64-linux-gnu/
[Configuring]
  install-directory - / (default)
  system-config-directory - /etc (default)
  system-binary-directory - /sbin (default)
  system-library-directory - /lib (default)
  resource-directory - /usr (default)
  binary-directory - $(options.resource-directory)/bin (default)
  library-directory - /usr/lib/x86_64-linux-gnu/
  data-directory - $(options.resource-directory)/share (default)
  include-directory - $(options.resource-directory)/include (default)
  project-data-directory - $(options.data-directory)/bake (default)
[Configure complete]
PATH=`pwd`:$PATH ./bake-bootstrap
[Entering directory tests/bake-get-symbols]
Unable to compile program test-bake-get-symbols:
 - Package gobject-2.0 not installed
 - Package glib-2.0 not installed
[Build failed]
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.