FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 07-10-2012, 09:12 PM
Mantas MikulÄ—nas
 
Default glibc 2.16 -- just what is supposed to be in /lib now ??

On Tue, Jul 10, 2012 at 11:15 PM, David C. Rankin
<drankinatty@suddenlinkmail.com> wrote:
> Guys,
>
> I have read the recent thread about glibc problems and I am totally
> confused about what I am still supposed to have in /lib...

Nothing, but everything:
Both "/lib" and "/lib64" should be symlinks to "usr/lib". If they are
directories, fix that.

--
Mantas MikulÄ—nas
 
Old 07-11-2012, 03:52 AM
"David C. Rankin"
 
Default glibc 2.16 -- just what is supposed to be in /lib now ??

On 07/10/2012 04:12 PM, Mantas MikulÄ—nas wrote:
> On Tue, Jul 10, 2012 at 11:15 PM, David C. Rankin
> <drankinatty@suddenlinkmail.com> wrote:
>> > Guys,
>> >
>> > I have read the recent thread about glibc problems and I am totally
>> > confused about what I am still supposed to have in /lib...
> Nothing, but everything:
> Both "/lib" and "/lib64" should be symlinks to "usr/lib". If they are
> directories, fix that.

OK,

So then since /lib is very much still a directory and not a symlink, then I
should:

(1) cp -a /lib /usr
(2) rm -r /lib
(3) ln -s /usr/lib /lib

... and the kernel modules for the running kernel ending up in /usr/lib/modules
and udev ending up in /usr/lib/udev -- are all OK with this? And what is /usr
and /lib as _separate_ partitions on the main box? softlinks won't work across
partition boundaries -- so what then?

--
David C. Rankin, J.D.,P.E.
 
Old 07-11-2012, 04:32 AM
Tom Gundersen
 
Default glibc 2.16 -- just what is supposed to be in /lib now ??

On Wed, Jul 11, 2012 at 5:52 AM, David C. Rankin
<drankinatty@suddenlinkmail.com> wrote:
> So then since /lib is very much still a directory and not a symlink, then I
> should:

First, notice that /lib as a symlink is only in testing so far, so
that might explain why you haven't seen it yet. It could be that your
problem is unrelated...

> (1) cp -a /lib /usr
> (2) rm -r /lib
> (3) ln -s /usr/lib /lib

You probably want to be a bit more careful in order to make sure that
the pacman db is not out of sync. That is, check who owns the files in
/lib, if they are owned by glibc leave them alone, if they are owned
by packages, then rebuild and reinstall the packages with the files in
/usr/lib instead, if they are not owned by anyone then move them over
manually as you described. Once that is done, you should be able to
"pacman -S glibc" and it should create the symlink for you. Also check
Allan's last email to dev-public, it is probably explained better
there.

> ... and the kernel modules for the running kernel ending up in /usr/lib/modules
> and udev ending up in /usr/lib/udev -- are all OK with this?

All official packages have their modules in /usr/lib/modules and their
udev rules in /usr/lib/udev, in fact modules in /lib/modules will no
longer work (if you are using testing).

> And what is /usr
> and /lib as _separate_ partitions on the main box? softlinks won't work across
> partition boundaries -- so what then?

Softlinks work across filesystem boundaries, no problem.

-t
 
Old 07-11-2012, 05:47 AM
David Benfell
 
Default glibc 2.16 -- just what is supposed to be in /lib now ??

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/10/12 20:52, David C. Rankin wrote:
> And what is /usr and /lib as _separate_ partitions on the main box?
> softlinks won't work across partition boundaries -- so what then?

Tom is right. You're thinking of *hard* links, which I think don't
work for directories anyway (though I saw some discussion about
changing that).


- --
David Benfell
benfell@parts-unknown.org


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJP/RNdAAoJELT202JKF+xpsPEP/1t3QUjOWXtHg+nv7m/z1xVj
B09HtlJoseMbuz08nzr3uJybxpr2xig39IvVSLkW9VH+eU8z11 2y8S5mx7CDWnC9
NSN4F3eAZPFKRx7iWJ/14R42J0xHVXS79eauNTuhfzVNNQ8KnrvXOQQ1QAN3LM3g
njcvVBkjoXPuAQK58EHK97ESBG7aZ4fq+nlGd+ZfD4VrwRqUi7 b/SCe6rUOyOWo7
qus/UBSACwe+Cgbaji16x9kO7AmlWuLPhfhbVSDRVEXrrRR0CzBZ3+ RqnZWGreA5
Vk+MWKqHG4cwugIsuK70ZsE0aEsDUjTgwzRSMBg3yRRpR2BmP2 ge8lzkgTxg45u5
0atzX0yzc1j6wNvryWaPvjfgUGlKeNFT75deuPYO9SbuVlCUKT WcNxFu5igk/oaw
fCOuPpLKYh3RyipqxuHuv+YyiZNsfy+4wY0iIQmlgY7yP+9qYF abzW/92Pxe0mio
AAwmLZlgq+wpaYjnpp1QJgBgVN7dEZguV10HBkEXN+mU/20Q5a7TYjDtX+yAfP9h
6TCDZyvoGx3mZXYjdhaA03na1A/wUTcYNMO4sqpANVuK/XtSYAO5reN5APlSkcU1
fiwRH2a4AMZOWaPdzVuKMFtIyg8LH98GGGRtkq+SWGZiJ4YDv9 UEhWpaU3gFDjzc
5E8L+OTSlv1XHLBWPs1b
=bnr6
-----END PGP SIGNATURE-----
 
Old 07-11-2012, 03:57 PM
Squall Lionheart
 
Default glibc 2.16 -- just what is supposed to be in /lib now ??

> Tom is right. You're thinking of *hard* links, which I think don't
> work for directories anyway (though I saw some discussion about
> changing that).
>

You are correct. Hard links must link to another item within the current
partition/volume and cannot cross over, however soft/symbolic links can.
Last time I checked, Apple's file system is the only one that can Hard Link
a directory.
 
Old 07-11-2012, 04:44 PM
Mantas MikulÄ—nas
 
Default glibc 2.16 -- just what is supposed to be in /lib now ??

On Wed, Jul 11, 2012 at 6:57 PM, Squall Lionheart
<headmastersquall@gmail.com> wrote:
>> Tom is right. You're thinking of *hard* links, which I think don't
>> work for directories anyway (though I saw some discussion about
>> changing that).
>>
>
> You are correct. Hard links must link to another item within the current
> partition/volume and cannot cross over, however soft/symbolic links can.
> Last time I checked, Apple's file system is the only one that can Hard Link
> a directory.

(...but cannot hardlink files in a sane way.)

ext4 supports hardlinked directories, can be done using `debugfs` –
Linux just disallows that in link() currently.

--
Mantas MikulÄ—nas
 
Old 07-11-2012, 05:00 PM
Squall Lionheart
 
Default glibc 2.16 -- just what is supposed to be in /lib now ??

> (...but cannot hardlink files in a sane way.)
>
> ext4 supports hardlinked directories, can be done using `debugfs` –
> Linux just disallows that in link() currently.
>

Thank you Mantas for the info. I'm having a hard time finding information
on how to create a hard link on a directory, if you have any resources you
can provide that would be very helpful.
 
Old 07-11-2012, 06:52 PM
"David C. Rankin"
 
Default glibc 2.16 -- just what is supposed to be in /lib now ??

On 07/11/2012 12:00 PM, Squall Lionheart wrote:

(...but cannot hardlink files in a sane way.)

ext4 supports hardlinked directories, can be done using `debugfs` –
Linux just disallows that in link() currently.



Thank you Mantas for the info. I'm having a hard time finding information
on how to create a hard link on a directory, if you have any resources you
can provide that would be very helpful.



Double thanks to Tom, David, Mantas, Squall, and all who responded. I now have
a better appreciation for where my install is (no testing pkgs) and the /lib
-> /usr/lib linking that I will expect in the future. As for the original
rpcgen error, that is still in work and I'll keep digging.


I have a much better appreciation of all the hard work you guys put in keeping
Arch the most current distro in use.



--
David C. Rankin, J.D.,P.E.
 

Thread Tools




All times are GMT. The time now is 09:44 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org