Opened 6 years ago

Closed 5 years ago

#10011 closed bug (fixed)

Makefile-engine broken on Haiku PM

Reported by: kallisti5 Owned by: bonefish
Priority: normal Milestone: R1/beta1
Component: Build System Version: R1/Package Management
Keywords: makefile-engine Cc: siarzhuk
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

  • Copy the makefile from /boot/common/develop/etc/ to a project
  • Make adjustments to the makefile
  • Run make, get: No fule to make target '/boot/system/develop/etc/makefile-engine'

While I agree makefile-engine should be in system... that is going to break a lot of legacy stuff. (or we need to just update the template to reflect the new location)

Change History (7)

comment:1 Changed 6 years ago by anevilyak

Priority: highnormal

comment:2 Changed 6 years ago by kallisti5

it actually looks like $BUILDHOME doesn't agree with the location of the makefile-engine and template. Not sure what the intended path was on PM.. so i'm not going to touch this one.

comment:3 Changed 6 years ago by siarzhuk

Cc: siarzhuk added

comment:4 Changed 6 years ago by bonefish

The BUILDHOME variable is kind of obsolete. IIRC it only exits because some legacy applications use it. Haiku itself doesn't and given that development files can be installed in three different locations, it might not work as expected anyway.

A path to the makefile engine that remains stable regardless of where it is installed, would be "/packages/makefile_engine-*/.self/develop/etc/makefile-engine". If multiple versions of the makefile engine package are installed, there will be multiple matching entries in "/packages/". One (the latest?) would need to be chosen.

comment:5 Changed 6 years ago by siarzhuk

Hm... in hrev46263 my old makefile-engine driven projects were rebuilded successfully. Fixed?

comment:6 Changed 6 years ago by bonefish

As a side effect of removing "/boot/common" the makefile-engine is back in "/boot/system/develop/etc". The makefile should still be adjusted to refer to the "/packages/makefile_engine..." path, though.

comment:7 Changed 5 years ago by bonefish

Resolution: fixed
Status: newclosed

hrev46402 adjusts the template makefile to find makefile-engine regardless of the package's installation location.

Note: See TracTickets for help on using tickets.