Hello,

I have a problem with the ppc64 profile I created for exherbo. The problem is
that I have not set anything regarding multilib and programms end up
installing libraries to */lib. Which is OK; but there is glibc. And glibc
installs to */lib64. So I end up having a system with both lib *and* lib64
directories. This is bad and leads to broken stuff as well to compile issues.

glibc assumes ppc64 is a "biarch" and its configure script sets the library
path to lib64. 

I can think about two solutions for this:

1) Hack the glibc configure script to use */lib, too.
2) Use a multilib profile for ppc64 and let programms install to */lib64
   instead of */lib. (Including lib->lib64 link?)

Regarding 1):
I think we should not patch glibc and use it like everyone else does. Although
hacking the configure script would be easy.

Regarding 2):
I tried to make the ppc64 profile a multilib profile:

#######################################################################
--- a/profiles/default-linux/ppc64/make.defaults
+++ b/profiles/default-linux/ppc64/make.defaults
@@ -11,3 +11,13 @@ CXXFLAGS="${CFLAGS}"
 
 OPTIONS="platform:ppc64"
 
+MULTILIB_ABIS="ppc64 ppc"
+DEFAULT_ABI="ppc64"
+
+CHOST_ppc64="powerpc64-unknown-linux-gnu"
+CDEFINE_ppc64="__powerpc64__"
+LIBDIR_ppc64="lib64"
+
+CHOST_ppc="powerpc-unknown-linux-gnu"
+CDEFINE_ppc="__powerpc__"
+LIBDIR_ppc="lib32"
+
+SYMLINK_LIB="yes"
#######################################################################

Unfortunately this did not work as expected: skeleton-filesystem-layout
installs lib64 and created the lib-lib64 symlinks. OK so far.

Now, paludis does not include "--libdir=/usr/lib64" unless I specify ABI=ppc64
in the profile (as does the amd64 2007.0 profile). Most programs compile and
install to the correct libdir with ABI=ppc64 set; dev-libs/gmp-4.2.2 fails..
The error is:

  checking whether to enable maintainer-specific portions of Makefiles... no
  configure: error: ABI=ppc64 is not among the following valid choices: mode64
    mode32 32

How can I get --libdir=/usr/lib64 without specifying ABI in the profile? Or do
I set the wrong ABI? I really don't know what specifying ABI=ppc64 does...

Yea, this description got pretty long. Sorry for that...

Best regards,

Markus Rothe

Attachment: pgpz44NwRvrbA.pgp
Description: PGP signature

_______________________________________________
Exherbo-dev mailing list
[email protected]
http://lists.exherbo.org/mailman/listinfo/exherbo-dev

Reply via email to