# ls /usr/share/swftools/swfs/ -l -rw-r--r-- 1 root root 126 5 gen 00.21 PreLoaderTemplate.swf lrwxrwxrwx 1 root root 41 5 gen 00.21 default_loader.swf -> usr/share/swftools/swfs/tessel_loader.swf lrwxrwxrwx 1 root root 41 5 gen 00.21 default_viewer.swf -> usr/share/swftools/swfs/simple_viewer.swf -rw-r--r-- 1 root root 371 5 gen 00.21 keyboard_viewer.swf -rw-r--r-- 1 root root 510 5 gen 00.21 simple_viewer.swf -rw-r--r-- 1 root root 12K 5 gen 00.21 swft_loader.swf -rw-r--r-- 1 root root 11K 5 gen 00.21 tessel_loader.swf The two symlinks default_*.swf point to wrong paths.
dropped
Reopening to try to know if this is fixed with latest version
I need some assistance no this During the emerge ... test -f /var/tmp/portage/media-gfx/swftools-20120224/image/usr/share/swftools/swfedia-gfx/swftools-20120224/image/usr/share/swftools/swfs/default_viewer.sw ln -s /var/tmp/portage/media-gfx/swftools-20120224/image/usr/share/swftools/sgfx/swftools-20120224/image/usr/share/swftools/swfs/default_viewer.swf; test -f /var/tmp/portage/media-gfx/swftools-20120224/image/usr/share/swftools/swfedia-gfx/swftools-20120224/image/usr/share/swftools/swfs/default_loader.sw ln -s /var/tmp/portage/media-gfx/swftools-20120224/image/usr/share/swftools/sgfx/swftools-20120224/image/usr/share/swftools/swfs/default_loader.swf; ... this seems to be fine. But during install it bacome usr/... instead of /usr/... I see other packages creating symlinks they use chdir and ln. I can do this with a patch too, but is this a good solution?
I'm seeing the same thing. It seems ebuild incorrectly rewrites symlinks. If it makes easier you can also just remove that particular symlink from swftools (remove the swfs subdirectory from the top-level Makefile)- Given that Gentoo's install doesn't include pdf2swf, that symlink is not actually needed.
Looks the best option to me :-/
I tried to strip the pdf part off as little as possible (hoping to get it fixed soon) This is what I found: >>> Completed installing swftools-20120224 into /var/tmp/portage/media-gfx/swftools-20120224/image/ at this part in the directory /var/tmp/portage/media-gfx/swftools-20120224/image/usr/share/swftools/swfs there IS the two symlinks, and they are pointing to right file. After the portage merge, they are broken. I think this is a problem of portage itself. One solution is to make these symlinks to be relative (as they are pointing to the same directory) but in this case I have to apply another small patch. The other solution is to find out why portage breaks these links...
Fixed with patch. (needed anyway because upstream changed the Makefile.in in a way worse than before)