Dan Nicholson wrote:
> On 5/30/07, DJ Lucas <[EMAIL PROTECTED]> wrote:
>   
>> And another...just a reminder for me unless you get to it first, this
>> test needs to be fixed upstream and in the book:
>>
>> make[2]: Nothing to be done for `install-exec-am'.
>> test -z "/opt/X11/share/X11/xkb/compiled" || mkdir -p --
>> "/opt/X11/share/X11/xkb/compiled"
>> mkdir: cannot create directory `/opt/X11/share/X11/xkb/compiled': File
>> exists
>> make[2]: *** [install-dist_xkbcompiledDATA] Error 1
>> make[2]: Leaving directory `/usr/src/xc/xorg-server-1.2.0/xkb'
>> make[1]: *** [install-am] Error 2
>>
>> Oh great!  What the heck did I destroy when I reacted to that directory
>> without thinking? :-)  grep of the log for xkb reveals libX11, xkbevd,
>> and xkbutils.  xorg-server wasn't logged.  I'll reinstall those three
>> and see if I can figure out where it came from.  A grep for the term
>> 'compiled' reveals nothing but a warning.  So, possibly
>> xkeyboard-config?  I'm just here in user mode, but I should have logged
>> all of it anyway.  I'll smoke it and try to reproduce it a little later
>> on less you get to it first.
>>     
>
> Yeah, that's xkeyboard-config. I think some people posted an sed or
> such to the list a couple months ago to fix that. But actually, I
> can't figure what the problem is. Are you building with MAKEFLAGS set?
> There's often a race condition with mkdir and multiple jobs in make.
> It usually happens when a custom rule is added to an automaked
> Makefile.
>
> --
> Dan
>   
No.  Look at the error again from xorg-server's 'make install' .  The
issue there is that the test is needless in the Makefile.   -z was
passed a quoted non-zero argument, it'll never return false. 
Previously, however, xkeyboard-config installed a broken symlink to a
non-existent directory which is why the command failed.  If the symlink
were correct, or if the directory existed previously, mkdir -p would
have returned 0.

[EMAIL PROTECTED] ~]# rmdir blah
[EMAIL PROTECTED] ~]# mkdir blah2
[EMAIL PROTECTED] ~]# ln -s blah2 blah
[EMAIL PROTECTED] ~]# mkdir -p blah
[EMAIL PROTECTED] ~]# echo $?
0
[EMAIL PROTECTED] ~]# ls -l blah
lrwxrwxrwx 1 root root 5 2007-05-30 16:52 blah -> blah2
[EMAIL PROTECTED] ~]# rmdir blah
rmdir: blah: Not a directory
[EMAIL PROTECTED] ~]# rm blah
[EMAIL PROTECTED] ~]# rmdir blah2
[EMAIL PROTECTED] ~]#


-- DJ Lucas

-- DJ Lucas

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to