Ignores install-directory for programs/libraries

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

Bug Description

bake apparently ignores the install directory I specify for a program or library. Here's a simple Recipe:

===
package.name = test
package.version = 0.0.1

programs.test {
  sources = test.vala
  install-directory=/a/b/c
}
===

When I build, bake attempts to install in /usr/bin, not /a/b/c:

$ bake install
MKDIR /usr/bin
CP test /usr/bin/test
cp: cannot create regular file ‘/usr/bin/test’: Permission denied
cp test /usr/bin/test
[Command exited with return value 1]
[Build failed]
$

Related branches

Revision history for this message
Adam Dingle (adam-yorba) wrote :

Actually I've found that if I specify a binary-directory at top level, Bake will install there:

===
package.name = test
package.version = 0.0.1

binary-directory=/a/b/c

programs.test {
  sources = test.vala
}
===

$ bake install
MKDIR /a/b/c
mkdir: cannot create directory ‘/a’: Permission denied
mkdir -p /a/b/c
[Command exited with return value 1]
[Build failed]
$

Is this just a documentation bug? In other words, is the existing behavior correct?

Revision history for this message
Robert Ancell (robert-ancell) wrote : Re: bake ignores install-directory for programs/libraries

I think I just haven't implemented the install-directory override for programs and libraries.

Changed in bake:
status: New → Triaged
importance: Undecided → Medium
summary: - bake ignores install-directory
+ bake ignores install-directory for programs/libraries
summary: - bake ignores install-directory for programs/libraries
+ Ignores install-directory for programs/libraries
Changed in bake:
status: Triaged → Fix Committed
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
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.