Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110143 - When making stage1 newly, baselayout does not make symlink {lib,usr/lib}
Summary: When making stage1 newly, baselayout does not make symlink {lib,usr/lib}
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High blocker
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-22 07:18 UTC by Yuta SATOH (RETIRED)
Modified: 2006-01-17 11:50 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for baselayout-1.11.13-r1.ebuild (baselayout-1.11.13-r1.ebuild.patch,714 bytes, patch)
2005-10-22 07:21 UTC, Yuta SATOH (RETIRED)
Details | Diff
patch for profiles/default-linux/packages.build (packages.build.patch,450 bytes, patch)
2005-10-22 07:22 UTC, Yuta SATOH (RETIRED)
Details | Diff
patch for baselayout-1.11.13-r1.ebuild (baselayout-1.11.13-r1.ebuild.patch,1.11 KB, patch)
2005-10-22 22:38 UTC, Yuta SATOH (RETIRED)
Details | Diff
baselayout-1.11.14.ebuild.diff (baselayout-1.11.14.ebuild.diff,977 bytes, patch)
2005-12-15 19:34 UTC, Jeremy Huddleston (RETIRED)
Details | Diff
multilib.eclass.patch (ml.eclass,994 bytes, patch)
2006-01-03 10:51 UTC, Jeremy Huddleston (RETIRED)
Details | Diff
patch for baselayout-1.11.13-r1.ebuild (baselayout-1.11.13-r1.ebuild.patch.2,1.03 KB, patch)
2006-01-04 07:42 UTC, Yuta SATOH (RETIRED)
Details | Diff
patch for profiles/default-linux/packages.build (packages.build.patch,334 bytes, patch)
2006-01-12 11:43 UTC, Yuta SATOH (RETIRED)
Details | Diff
baselayout-1.11.14.ebuild patch (bl.patch,1.37 KB, patch)
2006-01-16 08:04 UTC, Chris Gianelloni (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH (RETIRED) gentoo-dev 2005-10-22 07:18:05 UTC
When I made stage1 on PPC64 using catalyst newly, baselayout did not make 
symlink.
I make with stage2 and stage3 continuously, and I have noticed libstdc++-v3 
failing in compile.
I think that this problem occurred since it did not make symlink.

I'll attach the patch which solves this problem. 

Thanks.


Reproducible: Always
Steps to Reproduce:
1. catalyst -C target=snapshot version_stamp=20051020
2. catalyst -C target=stage1 source_subpath=default/stage3-ppc64-64ul-2005.1 
version_stamp=20051020 snapshot=20051020 subarch=ppc64-64ul rel_type=default 
profile=default-linux/ppc/2005.1/ppc64/64bit-userland
3. cd /var/tmp/catalyst/tmp/default/stage1-ppc64-64ul-20051020/tmp/stage1root
4. ls -ld lib*
5. ls -ld usr/lib*
Actual Results:  
# ls -ld lib*
drwxr-xr-x  5 root root  192 Oct 20 14:21 lib
drwxr-xr-x  3 root root 2016 Oct 20 14:21 lib64

# ls -ld usr/lib*
drwxr-xr-x  7 root root  176 Oct 20 14:20 usr/lib
drwxr-xr-x  6 root root 3496 Oct 20 14:12 usr/lib64
drwxr-xr-x  4 root root   96 Oct 20 14:05 usr/libexec


Expected Results:  
# ls -ld lib*
lrwxrwxrwx  1 root root    5 Oct 22 22:33 lib -> lib64
drwxr-xr-x  5 root root 2128 Oct 22 22:36 lib64

# ls -ld usr/lib*
lrwxrwxrwx   1 root root    5 Oct 22 22:33 usr/lib -> lib64
drwxr-xr-x  10 root root 3592 Oct 22 22:36 usr/lib64
drwxr-xr-x   4 root root   96 Oct 22 22:35 usr/libexec
Comment 1 Yuta SATOH (RETIRED) gentoo-dev 2005-10-22 07:21:39 UTC
Created attachment 71199 [details, diff]
patch for baselayout-1.11.13-r1.ebuild
Comment 2 Yuta SATOH (RETIRED) gentoo-dev 2005-10-22 07:22:34 UTC
Created attachment 71200 [details, diff]
patch for profiles/default-linux/packages.build
Comment 3 Yuta SATOH (RETIRED) gentoo-dev 2005-10-22 22:38:18 UTC
Created attachment 71243 [details, diff]
patch for baselayout-1.11.13-r1.ebuild

new patch creates lib64 directory appropriately in ppc64's 64bit-userland
profile.
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2005-12-06 14:39:14 UTC
Alright boys and girls.  This is being upgraded to a blocker because it *will*
keep both PPC64 and AMD64 from building the 2006.0 release, which we have
already started working on initial QA testing.  What do I need to do to get this
expedited?
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2005-12-15 19:29:27 UTC
there is nothing binary about dev-state and udev-state... 
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2005-12-15 19:34:34 UTC
sorry, I read through this too quick... try this fix:
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2005-12-15 19:34:57 UTC
Created attachment 74852 [details, diff]
baselayout-1.11.14.ebuild.diff
Comment 8 Daniel Ostrow (RETIRED) gentoo-dev 2005-12-16 08:40:09 UTC
That should work. Go ahead and commit it.

--Dan
Comment 9 Yuta SATOH (RETIRED) gentoo-dev 2005-12-16 12:25:26 UTC
Your patch did not solve this problem...
I think that the cause of this problem is the following. 

* get_all_libdirs in multilib.eclass returns not lib64 but lib. Therefore, /usr/lib64 is not made. 
* mkdirs.sh is performed ahead of mklinks.sh by pkg_postinst in baselayout.ebuild, and Symbolic Link (/lib -> /lib64) cannot be created. 

[note]
ppc64's 64bit-userland profile has the feature of amd64's no-multilib profile. 


Thanks for your help.
Comment 10 Yuta SATOH (RETIRED) gentoo-dev 2005-12-16 12:26:31 UTC
result of `ACCEPT_KEYWORDS=~ppc64 ROOT='/tmp/baselayout' USE='build' emerge --nodeps '=baselayout-1.11.14'`

# ls -ld /tmp/baselayout/lib*
drwxr-xr-x  4 root root 112 Dec 17 04:44 /tmp/baselayout/lib
drwxr-xr-x  3 root root 104 Dec 17 04:44 /tmp/baselayout/lib64

# ls -ld /tmp/baselayout/usr/lib*
lrwxrwxrwx  1 root root  5 Dec 17 04:44 /tmp/baselayout/usr/lib -> lib64
Comment 11 Chris Gianelloni (RETIRED) gentoo-dev 2006-01-03 07:36:27 UTC
Any word on this?  We are planning on freezing the snapshot for 2006.0 soon and this is currently the only real showstopper bug.
Comment 12 Jeremy Huddleston (RETIRED) gentoo-dev 2006-01-03 10:51:58 UTC
Created attachment 76098 [details, diff]
multilib.eclass.patch

sorry, I was away on vacation.  Please try this patch to multilib.eclass, and ping me on IRC so we can get this resolved...
Comment 13 Yuta SATOH (RETIRED) gentoo-dev 2006-01-04 07:42:15 UTC
Created attachment 76163 [details, diff]
patch for baselayout-1.11.13-r1.ebuild

eradicator,
Thanks for your patch.

The problem which /usr/lib64 is not created was solved.
But, Symbolic Link (/lib --> /lib64) cannot be created.
Because, /lib directory is created before the work which creates Symbolic Link. 

I attach the new patch which avoids this problem.
Comment 14 Jeremy Huddleston (RETIRED) gentoo-dev 2006-01-06 20:45:43 UTC
Ok, the multilib.eclass patch is committed, and the ebuilds have been patched.
Comment 15 Yuta SATOH (RETIRED) gentoo-dev 2006-01-12 09:31:04 UTC
reopening... The problem is not solved. 

eradicator,
Would you apply my patch (Attachment 76163 [details, diff]) to baselayout.ebuild ? 

kdir function creates the list of directories to create.
And directories are actually created in pkg_postinst. 
It is unsolvable even if it moves the kdir command in src_install...
Comment 16 Yuta SATOH (RETIRED) gentoo-dev 2006-01-12 11:43:45 UTC
Created attachment 76929 [details, diff]
patch for profiles/default-linux/packages.build

In addition, please apply the patch to package.build. 
This workaround patch fixes the problem on which python-2.4.x installs files in /usr/lib. 
However, I have noticed that this patch is not good. 

Isn't there any idea which solves the problem of python ? 

Thank you.
Comment 17 Yuta SATOH (RETIRED) gentoo-dev 2006-01-12 12:02:40 UTC
add deps on bug #118805 (python problem bug)
Comment 18 Chris Gianelloni (RETIRED) gentoo-dev 2006-01-12 12:13:32 UTC
Removing dependency since packages.build isn't the realm of baselayout and doesn't belong here.

base-system, can you think of any reason why we can't move baselayout first in packages.build until bug 108608 and bug 108805 are resolved?
Comment 19 Chris Gianelloni (RETIRED) gentoo-dev 2006-01-16 08:04:39 UTC
Created attachment 77267 [details, diff]
baselayout-1.11.14.ebuild patch

This patch is against baselayout-1.11.14.ebuild and works for me on amd64...
Comment 20 Chris Gianelloni (RETIRED) gentoo-dev 2006-01-17 11:50:37 UTC
I've added my patch (minus the KEYWORDS stuff) to CVS w/ permission of eradicator...

Thanks to everyone involved... =]