* [Buildroot] Wrong pathnames in libtool and pkgconfig files
@ 2006-10-02 21:18 Andrew E. Mileski
2006-10-02 22:19 ` Erik Andersen
0 siblings, 1 reply; 3+ messages in thread
From: Andrew E. Mileski @ 2006-10-02 21:18 UTC (permalink / raw)
To: buildroot
I'm repeatedly having problems with pathnames in *.la and *.pc files,
since packages are built for / but installed in $(STAGING_DIR). This
breaks packages that rely on these files being accurate.
So far I've resorted to sed'in them, which mostly works:
sed -i filename -e 's#/usr#$(STAGING_DIR)/usr#g'
but is sure to cause problems if not prevented from being repeated.
This effects all packages built using libtool and pkgconfig.
Is there a more correct way to handle this?
--
Andrew E. Mileski
^ permalink raw reply [flat|nested] 3+ messages in thread* [Buildroot] Wrong pathnames in libtool and pkgconfig files
2006-10-02 21:18 [Buildroot] Wrong pathnames in libtool and pkgconfig files Andrew E. Mileski
@ 2006-10-02 22:19 ` Erik Andersen
2007-01-21 10:43 ` Bernhard Fischer
0 siblings, 1 reply; 3+ messages in thread
From: Erik Andersen @ 2006-10-02 22:19 UTC (permalink / raw)
To: buildroot
On Mon Oct 02, 2006 at 05:18:03PM -0400, Andrew E. Mileski wrote:
> I'm repeatedly having problems with pathnames in *.la and *.pc files,
> since packages are built for / but installed in $(STAGING_DIR). This
> breaks packages that rely on these files being accurate.
>
> So far I've resorted to sed'in them, which mostly works:
> sed -i filename -e 's#/usr#$(STAGING_DIR)/usr#g'
> but is sure to cause problems if not prevented from being repeated.
>
> This effects all packages built using libtool and pkgconfig.
>
> Is there a more correct way to handle this?
Ugh. I'd never considered this, but yeah you are right. I do
not know of any way to teach libtool about a cross compiling
setup, so unless someone else has a better idea I think your
idea to use sed is the best thing we have going.
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Wrong pathnames in libtool and pkgconfig files
2006-10-02 22:19 ` Erik Andersen
@ 2007-01-21 10:43 ` Bernhard Fischer
0 siblings, 0 replies; 3+ messages in thread
From: Bernhard Fischer @ 2007-01-21 10:43 UTC (permalink / raw)
To: buildroot
On Mon, Oct 02, 2006 at 04:19:05PM -0600, Erik Andersen wrote:
>On Mon Oct 02, 2006 at 05:18:03PM -0400, Andrew E. Mileski wrote:
>> I'm repeatedly having problems with pathnames in *.la and *.pc files,
>> since packages are built for / but installed in $(STAGING_DIR). This
>> breaks packages that rely on these files being accurate.
>>
>> So far I've resorted to sed'in them, which mostly works:
>> sed -i filename -e 's#/usr#$(STAGING_DIR)/usr#g'
>> but is sure to cause problems if not prevented from being repeated.
>>
>> This effects all packages built using libtool and pkgconfig.
>>
>> Is there a more correct way to handle this?
>
>Ugh. I'd never considered this, but yeah you are right. I do
>not know of any way to teach libtool about a cross compiling
>setup, so unless someone else has a better idea I think your
>idea to use sed is the best thing we have going.
In the meantime Erik did fix those up, so if you experience trouble with
individual packages that still get this wrong, please let us know.
cheers,
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-01-21 10:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-02 21:18 [Buildroot] Wrong pathnames in libtool and pkgconfig files Andrew E. Mileski
2006-10-02 22:19 ` Erik Andersen
2007-01-21 10:43 ` Bernhard Fischer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox