Skip to contentSkip to conversation

New: Fontconfig problem problem when building/installing

Buildroot bugzilla at busybox.net 1 participant 13 messages Jul 13, 2009 – Jul 15, 2009

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=455

Host: x86-64
Target: SH4
Summary: Fontconfig problem problem when building/installing
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: lionel.landwerlin at openwide.fr
CC: buildroot at uclibc.org
Estimated Hours: 0.0

Hi,

when building/installing fontconfig, you might find a problem with make trying to call $(STAGING_DIR)/bin/sh. Of course it won't work.

Please find a fix as attachment.

Regards,

Lionel

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 455] Fontconfig problem problem when building/installing

https://bugs.busybox.net/show_bug.cgi?id=455

--- Comment #1 from Lionel Landwerlin <[email protected]> 2009-07-13 19:09:21 UTC --- Created an attachment (id=461)
--> (https://bugs.busybox.net/attachment.cgi?id=461)
Fontconfig fix for build/install

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 455] Fontconfig problem problem when building/installing

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=455

Peter Korsgaard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED

--- Comment #2 from Peter Korsgaard <[email protected]> 2009-07-13 20:20:29 UTC --- Hmm, please make the patch as minimal as possible - E.G. the fix-makealias patch has a bunch of noise because it removes trailing spaces.

I don't get what the problem is as the Makefile calls sh and not $PREFIX/bin/sh
- Is it because you have a sh for the target in $STAGING_DIR/bin and that included in the path?

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 455] Fontconfig problem problem when building/installing

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=455

--- Comment #3 from Lionel Landwerlin <[email protected]> 2009-07-13 21:48:52 UTC --- (In reply to comment #2)

Quoted 7 lines

Hmm, please make the patch as minimal as possible - E.G. the fix-makealias patch has a bunch of noise because it removes trailing spaces.

I don't get what the problem is as the Makefile calls sh and not $PREFIX/bin/sh
- Is it because you have a sh for the target in $STAGING_DIR/bin and that included in the path?

Yes, I have an $(STAGING_DIR)/bin/sh installed.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 455] Fontconfig problem problem when building/installing

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=455

--- Comment #4 from Lionel Landwerlin <[email protected]> 2009-07-13 21:57:24 UTC --- I have another patch that also fixed the problem of glib-genmarshall called
from the staging directory.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 455] Fontconfig problem problem when building/installing

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=455

--- Comment #5 from Lionel Landwerlin <[email protected]> 2009-07-13 21:58:28 UTC --- Created an attachment (id=465)
--> (https://bugs.busybox.net/attachment.cgi?id=465)
External toolchain path order fix

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#6 lore raw

[Buildroot] [Bug 455] Fontconfig problem problem when building/installing

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=455

--- Comment #6 from Peter Korsgaard <[email protected]> 2009-07-14 10:21:43 UTC ---

Quoted 1 line

Yes, I have an $(STAGING_DIR)/bin/sh installed.

Ohh? Where does that come from - Bash? That sounds like a bug in the first place

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#7 lore raw

[Buildroot] [Bug 455] Fontconfig problem problem when building/installing

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=455

--- Comment #7 from Lionel Landwerlin <[email protected]> 2009-07-14 13:03:32 UTC --- (In reply to comment #6)

Quoted 5 lines
Quoted 1 line

Yes, I have an $(STAGING_DIR)/bin/sh installed.

Ohh? Where does that come from - Bash? That sounds like a bug in the first place

That's copied from the external toolchain.
Whatever is in the staging we shouldn't have that kind of problem.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#8 lore raw

[Buildroot] [Bug 455] Fontconfig problem problem when building/installing

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=455

--- Comment #8 from Lionel Landwerlin <[email protected]> 2009-07-14 13:57:30 UTC --- (In reply to comment #7)

Quoted 10 lines

(In reply to comment #6)

Quoted 5 lines
Quoted 1 line

Yes, I have an $(STAGING_DIR)/bin/sh installed.

Ohh? Where does that come from - Bash? That sounds like a bug in the first place

That's copied from the external toolchain.
Whatever is in the staging we shouldn't have that kind of problem.

I think we should remove the staging directory from the PATH variable, as none of the binaries it contains can be executed on the host. If some package need to execute one binary from another package, we should have this compiled for the host.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#9 lore raw

[Buildroot] [Bug 455] Fontconfig problem problem when building/installing

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=455

Lionel Landwerlin <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |INVALID

--- Comment #9 from Lionel Landwerlin <[email protected]> 2009-07-14 20:03:11 UTC --- (In reply to comment #8)

Quoted 8 lines

(In reply to comment #7)

Quoted 7 lines

(In reply to comment #6)

Quoted 5 lines
Quoted 1 line

Yes, I have an $(STAGING_DIR)/bin/sh installed.

Ohh? Where does that come from - Bash? That sounds like a bug in the first place

Quoted 9 lines
Quoted 3 lines

That's copied from the external toolchain.
Whatever is in the staging we shouldn't have that kind of problem.

I think we should remove the staging directory from the PATH variable, as none of the binaries it contains can be executed on the host. If some package need to execute one binary from another package, we should have this compiled for the host.

I confirm that removing the staging dir from the PATH variable also fix the problem. I going to close the bug as there is no problem related to fontconfig but rather to the external toolchain usage.

Thx for helping.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#10 lore raw

[Buildroot] [Bug 455] Fontconfig problem problem when building/installing

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=455

--- Comment #10 from Peter Korsgaard <[email protected]> 2009-07-14 20:21:52 UTC ---

Quoted 4 lines

I think we should remove the staging directory from the PATH variable, as none of the binaries it contains can be executed on the host. If some package need to execute one binary from another package, we should have this compiled for the host.

The problem is the various *-config scripts, like sdl-config which get installed by various packages and *SHOULD* get called instead of whatever is present on the host.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#11 lore raw

[Buildroot] [Bug 455] Fontconfig problem problem when building/installing

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=455

--- Comment #11 from Lionel Landwerlin <[email protected]> 2009-07-14 20:38:18 UTC --- (In reply to comment #10)

Quoted 9 lines
Quoted 4 lines

I think we should remove the staging directory from the PATH variable, as none of the binaries it contains can be executed on the host. If some package need to execute one binary from another package, we should have this compiled for the host.

The problem is the various *-config scripts, like sdl-config which get installed by various packages and *SHOULD* get called instead of whatever is present on the host.

I'm agree, but shouldn't we provides them from the $(HOST_DIR) ?

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#12 lore raw

[Buildroot] [Bug 455] Fontconfig problem problem when building/installing

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=455

--- Comment #12 from Peter Korsgaard <[email protected]> 2009-07-15 07:31:07 UTC --- (In reply to comment #11)

Quoted 5 lines
Quoted 3 lines

The problem is the various *-config scripts, like sdl-config which get installed by various packages and *SHOULD* get called instead of whatever is present on the host.

I'm agree, but shouldn't we provides them from the $(HOST_DIR) ?

Well, it's not that simple. HOST_DIR is for stuff for the host, so a sdl-config there would point to the host libraries, not the target ones. Also notice that these scripts gets installed with make install of the packages, so we don't have direct control over it. And finally don't forget the cross compiler which also gets installed into STAGING_DIR together with the headers/libs, and people expect to simply be able to add STAGING_DIR/usr/bin to their path and be good to go.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.