Upgrade to a more recent findutils build

Asked by Ilya Bobyr on 2015-06-17

Hello,

It seems that the current version of findutils packaged for Ubuntu is about 6 years old:

    Subject: GNU findutils version 4.4.2 is released
    Date: Sat, 6 Jun 2009 15:47:38 +0100
    http://lists.gnu.org/archive/html/info-gnu/2009-06/msg00001.html

There are newer versions available, that have bugs fixed besides new features.
In particular, the bug I am facing is that find does not always correctly understands the file system type.
And on my system that causes updatedb to index huge file systems mounted over nfs, even while nfs is marked as excluded in the updatedb.conf.

It seems the latest released version is 4.5.14:

    https://lists.gnu.org/archive/html/bug-findutils/2014-07/msg00021.html

Though, in the notes they say it is a development branch.

I guess my questions would be, what is the best approach to get bug fixes into the stock Ubuntu find?
Try backporting fixes into 4.4 or package 4.5?
Any specific directions on what I may do for the above to happen?

Thank you,
Illia Bobyr

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu findutils Edit question
Assignee:
No assignee Edit question
Last query:
2015-06-18
Last reply:
2015-06-18
Manfred Hampl (m-hampl) said : #1

For getting information about your system please provide the output of the terminal commands

uname -a
lsb_release -crid
apt-cache policy findutils

According to http://www.gnu.org/software/findutils/ and http://ftp.gnu.org/pub/gnu/findutils/ the last official version is 4.4.2 which is the version in the supported Ubuntu releases.

Ubuntu standard is to stay on the official versions and not to use development versions.

Ilya Bobyr (ilya-bobyr) said : #2

Thank you for the response.

I guess it makes sense to use whatever the developers of the package declare as stable.
But in this particular case the most recent stable release is quite old.
That is why I was wondering what would be the best approach.
I should probably ask on the findutils mailing list what is their release and maintenance policy.

As for my box, I have Ubuntu 15.04 and findutils 4.4.2, commands output at the bottom.
As specified in the first message, 4.4.2 is a pretty old release of findutils.
There are bugfixes that are affecting how updatedb works.

For example, here is what find 4.4.2 shows on my box:

    illia@illia-vm1:~$ find / -maxdepth 1 -printf '%F %p\n'

    ext4 /
    ext4 /etc
    ext4 /opt
    ext2 /boot
    proc /proc
    ext4 /lib32
    ext4 /home
    devtmpfs /dev
    ext4 /var
    ext4 /hbuild
    ext4 /tmp
    ext4 /sbin
    ext4 /media
    ext4 /lost+found
    ext4 /lib64
    ext4 /usr
    ext4 /build
    ext4 /vol
    sysfs /sys
    ext4 /root
    ext4 /sources
    ext4 /bin
    tmpfs /run
    ext4 /lib
    ext4 /srv
    ext4 /mnt
    ext4 /cdrom

And here is what the current version (4.5.15) of find shows:

    illia@illia-vm1:~$ ~/works/findutils/find/find / -maxdepth 1 -printf '%F %p\n'
    ext4 /
    ext4 /etc
    ext4 /opt
    ext2 /boot
    proc /proc
    ext4 /lib32
    ext4 /home
    devtmpfs /dev
    ext4 /var
    nfs /hbuild
    ext4 /tmp
    ext4 /sbin
    ext4 /media
    ext4 /lost+found
    ext4 /lib64
    ext4 /usr
    nfs4 /build
    nfs /vol
    sysfs /sys
    ext4 /root
    cifs /sources
    ext4 /bin
    tmpfs /run
    ext4 /lib
    ext4 /srv
    ext4 /mnt
    ext4 /cdrom

Notice how "/hbuild", "/build", "/vol", and "/sources" are shown as "ext4" in the first output, and as "nfs" and "cifs" in the second.
updatedb relies on those file system types to exclude network mounted files systems when generating local files database.
In my case it is trying to index files systems with enormous amounts of files over the network.
Slowing my system and using all the free memory for disk caches.
It also does not happen always but quire frequently for me to be annoyed.

I guess it might be backport just the bugfix into 4.4 branch.

    illia@illia-vm1:~$ uname -a
    Linux illia-vm1 3.19.0-18-generic #18-Ubuntu SMP Tue May 19 18:31:35 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
    illia@illia-vm1:~$ lsb_release -crid
    Distributor ID: Ubuntu
    Description: Ubuntu 15.04
    Release: 15.04
    Codename: vivid
    illia@illia-vm1:~$ apt-cache policy findutils
    findutils:
      Installed: 4.4.2-9build1
      Candidate: 4.4.2-9build1
      Version table:
     *** 4.4.2-9build1 0
            500 http://mirror.os6.org/ubuntu/ vivid/main amd64 Packages
            100 /var/lib/dpkg/status

Manfred Hampl (m-hampl) said : #3

I suggest that you create a bug report. Maybe it is possible to backport the relevant bug fixes into the 4.4.2 version.

Or you can try compiling a 4.5.* version for yourself (Debian experimental has 4.5.14-2).

Can you help with this problem?

Provide an answer of your own, or ask Ilya Bobyr for more information if necessary.

To post a message you must log in.