After an upgrade to sys-fs/e2fsprogs-1.41.6-r1 findfs does not work anymore. It prints the tune2fs help instead of the usual findfs output. Using version sys-fs/e2fsprogs-1.41.3-r1, findfs works as expected. Reproducible: Always Steps to Reproduce: 1. emerge -1 sys-fs/e2fsprogs-1.41.6-r1 2. /sbin/findfs Actual Results: console output: tune2fs 1.41.6 (30-May-2009) Usage: findfs [-c max_mounts_count] [-e errors_behavior] [-g group] [-i interval[d|m|w]] [-j] [-J journal_options] [-l] [-m reserved_blocks_percent] [-o [^]mount_options[,...]] [-r reserved_blocks_count] [-u user] [-C mount_count] [-L volume_label] [-M last_mounted_dir] [-O [^]feature[,...]] [-E extended-option[,...]] [-T last_check_time] [-U UUID] [ -I new_inode_size ] device Expected Results: console output: Usage: findfs LABEL=<label>|UUID=<uuid>
This bug still exists in sys-fs/e2fsprogs-1.41.7
Same result here with e2fsprogs-1.41.7
It seems the configure script defines the needed CONFIG_BUILD_FINDFS only when enabling libblkid. So the code in the ebuild to enable findfs either needs to change configure to define it, or we just inject it into CPPFLAGS.
Ted: considering everyone is moving to the blkid in util-linux rather than e2fsprogs, seems that everyone will have a broken findfs installed ...
So how can this be fixed? I think the findfs code is already in util-linux, could there be a way to enable and build it with util-linux? I noticed that other distributions already use the version in there. Unfortunately I don't know how this could work in Gentoo. Thank you.
oh, i didnt realize findfs had moved to util-linux as well. nothing for Ted to look at then.
looks like Robin's hack to 1.41.6-r1 wasnt complete. we'll probably need to inject the CPPFLAGS too like Matthias said.
added the CPPFLAGS hack to 1.41.7-r1
This is a version skew between e2fsprogs and util-linux-ng. Sounds like Gentoo is using an older version of util-linux-ng that doesn't provide findfs. I don't consider the blkid handoff to util-linux-ng to be complete yet in terms of being BugFree(tm) yet. Gentoo rushing in where other distros fear to trend is great for exposing these bugs, although in this case this is a bug in util-linux-bg. :-)
One more thought. At least in the e2fsprogs makefile, findfs is installed as a hard link to tune2fs. With --disable-findfs, findfs isn't installed any more. So either Gentoo in its packaging is unconditionally installing findfs as a hardlink to tune2fs, OR it is installing findfs as a symlink to tune2fs. It might be worth checking to see what is going on here.
(In reply to comment #9) > This is a version skew between e2fsprogs and util-linux-ng. Sounds like > Gentoo is using an older version of util-linux-ng that doesn't provide findfs. For all to work nice without dependency cicles and other strange stuff, we need to use not yet avail util-linux-2.16. But: This bug was about findfs in e2fsprogs not working correct. Using the util-linux-ng version does work fine. See Bug #269378 for discussion of all issues related to this move.