findutils_4.2.20-1 dotpup - UPDATED

Stuff that has yet to be sorted into a category.
Post Reply
Message
Author
Bruce B

findutils_4.2.20-1 dotpup - UPDATED

#1 Post by Bruce B »

findutils_4.2.20-1

www.gnu.org/software/findutils/findutils.html

findutils.pup packaged by Bruce B on June 12, 2005

The tools supplied with this package are:

* find - search for files in a directory hierarchy
* locate - list files in databases that match a pattern
* updatedb - update a file name database
* xargs - build and execute command lines from standard input
* sort 2.0 - an additional utility with necessary options to support findutils


Note: This version seems to do a good job of finding files in
vfat partitions, unlike previous versions.

Note: This first release had a problem - please download findutils2.pup further down in this thread.
Attachments
findutils.pup
don't download this version - there is an updated version named findutils2.pup in this thread
(94.37 KiB) Downloaded 1114 times
Last edited by Bruce B on Thu 16 Jun 2005, 23:33, edited 1 time in total.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

? Locate answer

#2 Post by Lobster »

Seemed to install OK :)

I am typing in "locate myfile.txt"
and getting a complete listing of the database (which I built) but that seems all?

Am I doing something wrong?
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Rich
Posts: 278
Joined: Wed 04 May 2005, 19:00
Location: Middlesbrough - UK

#3 Post by Rich »

You and me both Lobster.
Install goes fine, everything that's mentioned in the man page is there and where it should be, but it seems the 'locate' command just lists the database rather than searching it and providing a filtered output.
Could something be missing or in the wrong directory ?

Bruce B

#4 Post by Bruce B »

Thanks for the feedback and sorry. It works fine for me and I tested it many times before uploading it.

However, I will go over everything tonight and see if I can find the problem.

I'll be back.

EDIT - I'm back

I manually uninstalled findutils and reinstalled it using the dotpup in this thread. It worked fine.

Puppy had three files which are not adequate for findutils:

1) sort
2) find
3) xargs

Findutils needs more powerful versions of these files and they are included. Updatedb is a script and has absolute paths to sort and find. For this reason Puppy's sort and find don't get in the way, even though they come earlier in the path statement.

I'm curious of you would do

# which xargs

to see where it is located. It should be in /usr/bin, the size should be 20600.

In any event the paths are extremely important for this utility, because we don't want to run Puppy's same name files which would occur if the updatedb script didn't have absolute paths for find and sort.

Maybe you could try rebuilding the database. A quick way to do it is specify one directory for testing.

# updatedb --localpaths=/root

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

updated results - new dotpup used

#5 Post by Lobster »

for now this:

/usr/bin/xargs (for the which xargs)

this is potentially a very useful set of programs - so thanks for finding and persevering :)

Did you install the extra progs in the above dot pup that you updated?
The below is (part) of the output I am getting after rebuilding the database . . .
the command was locate vtcl.tcl
and the oupput enclosed is the last part

Are we getting closer?


==========

Code: Select all


====== more code appeared =====

/root/vtcl-1.6.0/lib/tree.tcl
/root/vtcl-1.6.0/lib/ttd
/root/vtcl-1.6.0/lib/ttd/ttd.tcl
/root/vtcl-1.6.0/lib/var.tcl
/root/vtcl-1.6.0/lib/vtclib.tcl
/root/vtcl-1.6.0/lib/widget.tcl
/root/vtcl-1.6.0/sample
/root/vtcl-1.6.0/sample/User_Compound.tcl
/root/vtcl-1.6.0/sample/hierarchy.tcl
/root/vtcl-1.6.0/sample/notebook.tcl
/root/vtcl-1.6.0/sample/notebook_recurse.tcl
/root/vtcl-1.6.0/sample/panedwindow.tcl
/root/vtcl-1.6.0/sample/sampleBLT.tcl
/root/vtcl-1.6.0/vtcl.tcl
/root/vtcl-1.6.0/vtclmac
#
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Bruce B

#6 Post by Bruce B »

I seem to have fixed it. The basic problem was busybox's utilities didn't have the features necessary for findutils.

I was able to read the updatedb script and make the necessary changes to use the proper utilities.

Locate is a binary file and I could not read it. As it worked out locate was using busybox's sort utility and it was not working properly.

Please download the attached file and manually copy updatedb and sort to /usr/bin

You will be overwritting both files which is the old updatedb with modified paths and the sort link to busybox with a full version sort 2.0

Try again and report back. I will make an updated dotpup as soon as I learn of your success.

Thanks for your patience.
Attachments
findutil-fix.zip
fix for first version of findutils - with instructions to copy updatedb and sort to /usr/bin
(30.29 KiB) Downloaded 1073 times

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

? keep trying . . .

#7 Post by Lobster »

more or less the same after placing the files in the /usr/bin directory

I also ran the updatedb again to see if that was a problem
I got this - which may mean something wrong with my system (though it relates to leafpad . . .

Code: Select all

/usr/bin/find: WARNING: Hard link count is wrong for /usr/lib: this may be a bug in your filesystem driver.  Automatically turning on find's -noleaf option.  Earlier results may have failed to include directories that should have been searched.
/usr/bin/find: /proc/837/fd/4: No such file or directory
/usr/bin/find: /proc/837/fd/4: No such file or directory
/usr/bin/find: /proc/837/fd/4: No such file or directory
/usr/bin/find: /proc/837/fd/4: No such file or directory
/usr/bin/find: /proc/837/fd/4: No such file or directory
/usr/bin/find: /proc/837/fd/4: No such file or directory
/usr/bin/find: /proc/837/fd/4: No such file or directory
/usr/bin/find: /proc/837/fd/4: No such file or directory
/usr/bin/find: /proc/837/fd/4: No such file or directory
/usr/bin/find: /proc/837/fd/4: No such file or directory
/usr/bin/find: /proc/837/fd/4: No such file or directory
/usr/bin/find: /proc/837/fd/4: No such file or directory
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Bruce B

#8 Post by Bruce B »

Lobster, actually that is not a problem with updatedb, it is just giving feedback about the system as it sees it.

Just let it run and see if locate works fine, if you please?

If you want to only process user defined directories rather than the entire system you could use commands such as.

updatedb --localpaths='/bin /root /usr /etc /mnt /sbin'

This way it will only search exactly where you specify.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

same

#9 Post by Lobster »

sorry did not make this clear - did a locate and it is the same as before, getting the whole of the database . . .
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Bruce B

#10 Post by Bruce B »

Fine, thanks for you patience and FEEDBACK, I'll fix it so it works right for you.

Somehow - someway.

Will probably be several hours from now because other things to do. I just made an ELinks dotpup, will you test it for me (us).

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

New dotPuppy created

#11 Post by Lobster »

elinks working fine
You star!
Now you have to tell us lesser mortals the whole process . . .
:)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Rich
Posts: 278
Joined: Wed 04 May 2005, 19:00
Location: Middlesbrough - UK

#12 Post by Rich »

Back on topic........
Just downloaded and installed the patch files for Findutils.
From the original install, I learned that nothing worked without a reboot anyway, so I rebooted the system, deleted the old locatedb database file ( the one in /root ) and ran updatedb again.

I got the same strange message that Lobster got ( which I didn't get originally ), but let it run it's course. Generating the initial database takes a minute or 2 so be patient here.

Then tried the 'locate gimp' opening gambit and it worked !
I can now locate files, all sorts of files !

Cheers Bruce

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#13 Post by Lobster »

He is right, that Rich is right . . .

All working [ahem . . . my fault again . . .:oops: ] I don't think I waited long enough for the updatedb to do its work.

So I ran it again.
And it works!

Two dotpups in one day - we expect great things from you now Bruce

LOL

Good job everyone.

Lets Frisk and jump about. Puppy Rules.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

:)

#14 Post by Lobster »

8)
It must be the swoon season. Locate is very useful - very. However we seem to have quite a big upgrade for what it is doing. Is there space in Puppy? I hope so. . .
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Bruce B

Updated findutils2.pup

#15 Post by Bruce B »

According to your feedback and my testing the problem with findutils, locate using busybox's sort is fixed.

If you already patched it with the kit I provided there is no reason to run this version.

If you do run it - it will add two redundant lines to:

/etc/rc.d/rc.local

However, you might want to download this attachment and save it for future Puppy installations.

Thanks for your patience and help.
Attachments
findutils2.pup
findutils_4.2.20-1 - enhanced file finding utilities. Find files anywhere on your system from the command line.
(120.89 KiB) Downloaded 1903 times

Post Reply