Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hi,
Anybody willing to compile fdupes and fslint (cmd line only version) for the dns323 and make ffp0.5 packages of them? Please ....
http://netdial.caribe.net/~adrian2/fdupes.html
http://www.pixelbeat.org/fslint/
thanks
lu
Offline
or for optware, or just standalone/unpackaged .... anybody?
Offline
I've added these two to optware. Expect ipk's in optware feeds the next time our autobuilder runs.
Offline
great, thank you so much!
lu
Offline
findup (part of fslint) produces the following error:
root@dns323:/mnt/HD_a2# findup \( -path "*/mnt/HD_a2/ipkg" \) -prune -o
write failed: /tmp/sortor89wn: No space left on device
Is it possible to specify a different tmp location when compiling? If so can you recompile is this tool is always going to fail I guess. Also, /opt/bin/supprt/rmlint/merge_hardlinks fails because the shebang calls #!/usr/bin/env python and /usr/bin/env doesn't exist. There is /opt/bin/env though. Is it possible to change this in the .ipk package? I haven't scanned the package to see if there are any more scripts with problems yet.
lu
Offline
For the second problem, I'd suggest you manually symlink /opt/bin/env to /usr/bin/env. Optware does not usually write outside of /opt.
There does not seem to be an obvious place in the fdupes code that specifies TMPDIR. You can try set environment variable TMPDIR and see if that helps. Failing that, you'll need to debug or at least strace the execution, or ask fdupes developer. I'll be happy to integrate any reasonable optware change.
Last edited by bzhou (2008-08-31 19:47:10)
Offline
Ok. I have now tried out both fslint and fdupes. Fdupes takes over 24 hours to compare approx 80,000 files (number of, not size, also some are large files). Fslint (findup) takes a few minutes (10-30, not sure as I didn't time it). fslint scripts (including, but not only, findup) contain several references to /usr/bin/env. Can you:
replace all references of /usr/bin/env to /opt/bin/env in the scripts in this package? It will then work with less configuration upon install. I didn't actually realise that fslint was mostly (all?) scripts - hence my request for it to be compiled. However, it is still very useful to have it as a package for install/deinstall purposes as well as dependency management. I am not familiar with all of the inner workings of opt/.ipk packages, but is it possible to include an env variable when installing an opt package? In order to get it to work on the dns323 I had to:
mkdir /mnt/HD_a2/tmp
export TMPDIR=/mnt/HD_a2/tmp
as well as changing the path to env.
I note your comment that you don't like to write outside of /opt. Fair enough, so how about mkdir /opt/tmp and export TMPDIR=/opt/tmp when installing the package. I assume that optware prefers not to modify the profile or fun_plug, otherwise one would not need to export the opt path manually (or via fun_plug/profile etc).
lu
Offline
Glad that you get it working.
But on your suggestions, I have to disagree.
1) It's a Unix/Linux convention to use "#!/usr/bin/env python" so that the script can find the interpreter as long as it's in the PATH.
The /usr/bin/env is assumed to always be there. On most NAS I've seen it's there.
In optware, we either use "#!/usr/bin/env python" or "#!/opt/bin/python".
I may consider changing the #! line to /opt/bin/python in next rev.
2) TMPDIR is an environment variable that one can setup in profile. On most NAS I've seen, there're plenty of space in /tmp and the system should clean /tmp upon reboot.
Both of these two issues are quite specific to DNS-323 firmware. Remember there are more than a dozen devices that optware supports. If we have a dns-323 specific optware-bootstrap.xsh like other platforms, it makes some sense to do the PATH and TMPDIR setup there. Right now, I just added lines to http://www.nslu2-linux.org/wiki/Optware/Dns323
Offline
bzhou wrote:
1) It's a Unix/Linux convention to use "#!/usr/bin/env python" so that the script can find the interpreter as long as it's in the PATH.
The /usr/bin/env is assumed to always be there. I may consider changing the #! line to /opt/bin/python in next rev.
ok. My dns323 does not have a /usr/bin/env
bzhou wrote:
TMPDIR is an environment variable that one can setup in profile. On most NAS I've seen, there're plenty of space in /tmp and the system should clean /tmp upon reboot.
findup (fslint) fails pretty quickly "write failed: /tmp/sortdc1Z5e: No space left on device" if you don't specify a different tmp via TMPDIR .
bzhou wrote:
Both of these two issues are quite specific to DNS-323 firmware. Remember there are more than a dozen devices that optware supports. If we have a dns-323 specific optware-bootstrap.xsh like other platforms, it makes some sense to do the PATH and TMPDIR setup there. Right now, I just added lines to http://www.nslu2-linux.org/wiki/Optware/Dns323
Ok, I was just making those suggestions so that fslint would work straight on installing the package.
Thanks for providing them.
lu
Offline
I've compiled fdupes (very strange Makefile but i figured it out) for ffp0.5: http://wolf-u.li/download-manager.php?id=42
Offline