why is my symlink gone????
glen
glen at pld-linux.org
Sun Jan 8 23:37:43 CET 2012
On 01/09/2012 12:07 AM, glen wrote:
> i tried to find what is so special in there, %files is just the topdir
> where all goes in
nailed it!
i mean i found symptom that could really explain it.
http://cvs.pld-linux.org/cgi-bin/viewvc.cgi/cvs/packages/test/test.spec?revision=1.16.4.69.2.4.2.1.4.3&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.3&view=markup>
so symlinks who have nlink > 1 are problematic: not installed into system:
# l /tmp/rpm-symlinks/
ls: cannot access /tmp/rpm-symlinks/: No such file or directory
# rpm -Uhv rpm-symlinks-2-10.noarch.rpm
Preparing... ###########################################
[100%]
1:rpm-symlinks ###########################################
[100%]
# l /tmp/rpm-symlinks/
total 0
lrwxrwxrwx 1 root root 10 jaan 9 00:34 2.pem -> /etc/fstab
lrwxrwxrwx 1 root root 10 jaan 9 00:34 3.pem -> /etc/fstab
the build log (did not post debug, as imho plain log is sufficent):
$ /usr/bin/rpmbuild -bb test.spec
Executing(%prep): env -i
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/home/glen/bin:/usr/lib64/mailman/bin:/usr/games
HOME=/home/glen TMP=/home/glen/tmp TMPDIR=/home/glen/tmp
SSH_AUTH_SOCK=/tmp/ssh-gZwNKm6359/agent.6359 /bin/sh -e
/home/glen/tmp/rpm-tmp.33617
+ umask 022
+ cd /home/glen/rpm/pld/packages/BUILD
+ cd /home/glen/rpm/pld/packages/BUILD
+ rm -rf rpm-symlinks-2
+ /bin/mkdir -p rpm-symlinks-2
+ cd rpm-symlinks-2
+ /bin/id -u
+ [ 500 = 0 ]
+ true .
+ /bin/chmod -Rf -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): env -i SSH_AUTH_SOCK=/tmp/ssh-gZwNKm6359/agent.6359
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/home/glen/bin:/usr/lib64/mailman/bin:/usr/games
HOME=/home/glen TMP=/home/glen/tmp TMPDIR=/home/glen/tmp /bin/sh -e
/home/glen/tmp/rpm-tmp.33617
+ umask 022
+ cd /home/glen/rpm/pld/packages/BUILD
+ cd rpm-symlinks-2
+ ln -s /etc/fstab 1.pem
+ ln -s /etc/fstab 2.pem
+ exit 0
Executing(%install): env -i
SSH_AUTH_SOCK=/tmp/ssh-gZwNKm6359/agent.6359
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/home/glen/bin:/usr/lib64/mailman/bin:/usr/games
HOME=/home/glen TMP=/home/glen/tmp TMPDIR=/home/glen/tmp /bin/sh -e
/home/glen/tmp/rpm-tmp.91448
+ umask 022
+ cd /home/glen/rpm/pld/packages/BUILD
+ /bin/rm --interactive=never -rf /home/glen/tmp/rpm-symlinks-2-root-glen
+ cd rpm-symlinks-2
+ rm -rf /home/glen/tmp/rpm-symlinks-2-root-glen
+ install -d /home/glen/tmp/rpm-symlinks-2-root-glen/tmp/rpm-symlinks
+ cp -pl 1.pem /home/glen/tmp/rpm-symlinks-2-root-glen/tmp/rpm-symlinks
+ cp -a 2.pem /home/glen/tmp/rpm-symlinks-2-root-glen/tmp/rpm-symlinks
+ ln -s /etc/fstab
/home/glen/tmp/rpm-symlinks-2-root-glen/tmp/rpm-symlinks/3.pem
+ ls -li /home/glen/tmp/rpm-symlinks-2-root-glen/tmp/rpm-symlinks
total 0
204945483 lrwxrwxrwx 2 glen glen 10 Jan 9 00:35 1.pem -> /etc/fstab
305665668 lrwxrwxrwx 1 glen glen 10 Jan 9 00:35 2.pem -> /etc/fstab
305665669 lrwxrwxrwx 1 glen glen 10 Jan 9 00:35 3.pem -> /etc/fstab
+ /usr/lib/rpm/find-debuginfo.sh
/home/glen/rpm/pld/packages/BUILD/rpm-symlinks-2
RPM_BUILD_DIR=/home/glen/BUILD
+ __spec_install_post_strip
+ __spec_install_post_chrpath
+ __spec_install_post_check_so
Searching for shared objects with unresolved symbols... DONE
+ __spec_install_post_compress_docs
+ __spec_install_post_compress_modules
+ __spec_install_post_py_hardlink
Processing files: rpm-symlinks-2-10
Searching for required packages....
Checking for unpackaged file(s): /usr/lib/rpm/check-files
/home/glen/tmp/rpm-symlinks-2-root-glen
Wrote: /home/glen/rpm/pld/packages/RPMS/rpm-symlinks-2-10.noarch.rpm
Executing(%clean): env -i SSH_AUTH_SOCK=/tmp/ssh-gZwNKm6359/agent.6359
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/home/glen/bin:/usr/lib64/mailman/bin:/usr/games
HOME=/home/glen TMP=/home/glen/tmp TMPDIR=/home/glen/tmp /bin/sh -e
/home/glen/tmp/rpm-tmp.91448
+ umask 022
+ cd /home/glen/rpm/pld/packages/BUILD
+ cd rpm-symlinks-2
+ /bin/rm --interactive=never -rf /home/glen/tmp/rpm-symlinks-2-root-glen
+ rm -rf /home/glen/tmp/rpm-symlinks-2-root-glen
--
glen
More information about the pld-devel-en
mailing list