why is my symlink gone????

glen glen at pld-linux.org
Sun Jan 8 23:07:55 CET 2012


On 01/08/2012 11:55 PM, Jeffrey Johnson wrote:
> You might also try rearranging lines in the *.spec: there's
> lots of screwy issues that occur when a \r or an unclosed
> quote/bracket sneak into a *.spec. Without a grammar, there
> isn't any simple way to catch the screwiness, its all just
> an ad hoc parser.
i tried to find what is so special in there, %files is just the topdir 
where all goes in

simple spec goes fine
http://cvs.pld-linux.org/cgi-bin/viewvc.cgi/cvs/packages/test/test.spec?revision=1.16.4.69.2.4.2.1.4.1&view=markup 
<http://cvs.pld-linux.org/cgi-bin/viewvc.cgi/cvs/packages/test/test.spec?revision=1.16.4.69.2.4.2.1.4.1&view=markup>

just those reported initially do not:
http://cvs.pld-linux.org/cgi-bin/viewvc.cgi/cvs/packages/test/test.spec?revision=1.16.4.69.2.4.2.1.4.2&view=markup 
<http://cvs.pld-linux.org/cgi-bin/viewvc.cgi/cvs/packages/test/test.spec?revision=1.16.4.69.2.4.2.1.4.2&view=markup>

$ rpm -qpl rpm-symlinks-1-10.noarch.rpm |xargs ls -ld
ls: cannot access /tmp/rpm-symlinks/kk/119afc2e.0: No such file or directory
ls: cannot access /tmp/rpm-symlinks/kk/590f5e9e.0: No such file or directory
ls: cannot access /tmp/rpm-symlinks/kk/9834803d.0: No such file or directory
ls: cannot access /tmp/rpm-symlinks/kk/ESTEID-SK.pem: No such file or 
directory
ls: cannot access /tmp/rpm-symlinks/kk/ESTEID-SK_2007.pem: No such file 
or directory
ls: cannot access /tmp/rpm-symlinks/kk/ESTEID-SK_2011.pem: No such file 
or directory
ls: cannot access /tmp/rpm-symlinks/kk/JUUR-SK.pem: No such file or 
directory
ls: cannot access /tmp/rpm-symlinks/kk/a10d94b7.0: No such file or directory
ls: cannot access /tmp/rpm-symlinks/testlink2: No such file or directory
drwxr-xr-x 3 root root 74 jaan   8 23:59 /tmp/rpm-symlinks
lrwxrwxrwx 1 root root 14 jaan   8 23:59 /tmp/rpm-symlinks/fflink -> 
/etc/fstab.crt
lrwxrwxrwx 1 root root 10 jaan   8 23:59 /tmp/rpm-symlinks/fstablink -> 
/etc/fstab
drwxr-xr-x 2 root root 24 jaan   8 23:59 /tmp/rpm-symlinks/kk
lrwxrwxrwx 1 root root 10 jaan   8 23:59 
/tmp/rpm-symlinks/kk/fstablink.1 -> /etc/fstab
-rw-r--r-- 1 root root  0 jaan   8 23:58 /tmp/rpm-symlinks/testfile
lrwxrwxrwx 1 root root  8 jaan   8 23:59 /tmp/rpm-symlinks/testlink -> 
testfile
glen at wintersunset packages/test $ rpm -qpl 
/home/glen/rpm/pld/packages/RPMS/rpm-symlinks-1-10.noarch.rpm -v
drwxr-xr-x    2 root    root                0 jaan   8 23:59 
/tmp/rpm-symlinks
lrw-r--r--    1 root    root               14 jaan   8 23:59 
/tmp/rpm-symlinks/fflink -> /etc/fstab.crt
lrw-r--r--    1 root    root               10 jaan   8 23:59 
/tmp/rpm-symlinks/fstablink -> /etc/fstab
drwxr-xr-x    2 root    root                0 jaan   8 23:59 
/tmp/rpm-symlinks/kk
lrw-r--r--    1 root    root               11 jaan   8 23:59 
/tmp/rpm-symlinks/kk/119afc2e.0 -> JUUR-SK.pem
lrw-r--r--    1 root    root               18 jaan   8 23:59 
/tmp/rpm-symlinks/kk/590f5e9e.0 -> ESTEID-SK_2007.pem
lrw-r--r--    1 root    root               13 jaan   8 23:59 
/tmp/rpm-symlinks/kk/9834803d.0 -> ESTEID-SK.pem
lrw-r--r--    1 root    root               47 jaan   8 23:59 
/tmp/rpm-symlinks/kk/ESTEID-SK.pem -> 
/usr/share/ca-certificates/esteid/ESTEID-SK.crt
lrw-r--r--    1 root    root               52 jaan   8 23:59 
/tmp/rpm-symlinks/kk/ESTEID-SK_2007.pem -> 
/usr/share/ca-certificates/esteid/ESTEID-SK_2007.crt
lrw-r--r--    1 root    root               52 jaan   8 23:59 
/tmp/rpm-symlinks/kk/ESTEID-SK_2011.pem -> 
/usr/share/ca-certificates/esteid/ESTEID-SK_2011.crt
lrw-r--r--    1 root    root               45 jaan   8 23:59 
/tmp/rpm-symlinks/kk/JUUR-SK.pem -> 
/usr/share/ca-certificates/esteid/JUUR-SK.crt
lrw-r--r--    1 root    root               18 jaan   8 23:59 
/tmp/rpm-symlinks/kk/a10d94b7.0 -> ESTEID-SK_2011.pem
lrw-r--r--    1 root    root               10 jaan   8 23:59 
/tmp/rpm-symlinks/kk/fstablink.1 -> /etc/fstab
-rw-r--r--    1 root    root                0 jaan   8 23:59 
/tmp/rpm-symlinks/testfile
lrw-r--r--    2 root    root                8 jaan   8 23:59 
/tmp/rpm-symlinks/testlink -> testfile
lrw-r--r--    2 root    root                8 jaan   8 23:59 
/tmp/rpm-symlinks/testlink2 -> testfile

$ rpm -qpl rpm-symlinks-1-10.noarch.rpm | xargs ls -ld
ls: cannot access /tmp/rpm-symlinks/kk/119afc2e.0: No such file or directory
ls: cannot access /tmp/rpm-symlinks/kk/590f5e9e.0: No such file or directory
ls: cannot access /tmp/rpm-symlinks/kk/9834803d.0: No such file or directory
ls: cannot access /tmp/rpm-symlinks/kk/ESTEID-SK.pem: No such file or 
directory
ls: cannot access /tmp/rpm-symlinks/kk/ESTEID-SK_2007.pem: No such file 
or directory
ls: cannot access /tmp/rpm-symlinks/kk/ESTEID-SK_2011.pem: No such file 
or directory
ls: cannot access /tmp/rpm-symlinks/kk/JUUR-SK.pem: No such file or 
directory
ls: cannot access /tmp/rpm-symlinks/kk/a10d94b7.0: No such file or directory
ls: cannot access /tmp/rpm-symlinks/testlink2: No such file or directory
drwxr-xr-x 3 root root 74 jaan   8 23:59 /tmp/rpm-symlinks
lrwxrwxrwx 1 root root 14 jaan   8 23:59 /tmp/rpm-symlinks/fflink -> 
/etc/fstab.crt
lrwxrwxrwx 1 root root 10 jaan   8 23:59 /tmp/rpm-symlinks/fstablink -> 
/etc/fstab
drwxr-xr-x 2 root root 24 jaan   8 23:59 /tmp/rpm-symlinks/kk
lrwxrwxrwx 1 root root 10 jaan   8 23:59 
/tmp/rpm-symlinks/kk/fstablink.1 -> /etc/fstab
-rw-r--r-- 1 root root  0 jaan   8 23:58 /tmp/rpm-symlinks/testfile
lrwxrwxrwx 1 root root  8 jaan   8 23:59 /tmp/rpm-symlinks/testlink -> 
testfile

> The output will be huge; I'd generate here but it would take hours
> to create some environment that could build with rpm-4.4.9.
we're on rpm 4.5 :)

you can grab just chroot image, it has deps installed just for rpm 4.5 
building:

ftp://ftp.pld-linux.org/people/glen/pld-th-chroot-build-20111007.tar.bz2

-- 
glen



More information about the pld-devel-en mailing list