Bug 1089 - Sysdeps search order not preserved by add-ons.
Summary: Sysdeps search order not preserved by add-ons.
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: admin (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Roland McGrath
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-18 02:06 UTC by Daniel Jacobowitz
Modified: 2005-11-08 01:08 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed: 2005-10-14 23:30:16


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Jacobowitz 2005-07-18 02:06:38 UTC
When ARM was moved to the ports add-on, the search order changed:
ports/sysdeps/arm is now searched before libc/sysdeps/unix/sysv/linux, so
init-fini.c was being built from sysdeps/arm instead of sysv/linux.  That file
was obsolete, which caused a build failure.

I assume this is because add_ons_pfx is the outermost for loop for the sysdeps
directory search.

(Changing the search order for ports may impact the search order for the
nptl/sysdeps tree also.)
Comment 1 Roland McGrath 2005-10-14 23:30:16 UTC
I will look into this.
Comment 2 Sourceware Commits 2005-11-05 02:00:10 UTC
Subject: Bug 1089

CVSROOT:	/cvs/glibc
Module name:	libc
Changes by:	roland@sources.redhat.com	2005-11-05 02:00:03

Modified files:
	.              : configure configure.in 

Log message:
	2005-11-04  Roland McGrath  <roland@redhat.com>
	
	[BZ #1089]
	* configure.in: Change order of add-on sysdeps directories,
	so they are interleaved with main sysdeps directories.
	* configure: Regenerated.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/configure.diff?cvsroot=glibc&r1=1.435&r2=1.436
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/configure.in.diff?cvsroot=glibc&r1=1.443&r2=1.444

Comment 3 Roland McGrath 2005-11-05 02:00:53 UTC
Please confirm that the new trunk configure behavior does the right thing for ports.
Comment 4 Daniel Jacobowitz 2005-11-08 01:08:24 UTC
Perfect timing; I needed this for the ARM NPTL bits I am working on this
evening.  It fixes the build; ports/sysdeps/unix/sysv/linux/arm/eabi/nptl is now
found before nptl/sysdeps/generic/.