First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 123253
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo/BSD Team <bsd@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Benigno B. Junior (RETIRED) <bbj@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
findutils-4.3.0-bsd.patch findutils-4.3.0-bsd.patch patch Benigno B. Junior (RETIRED) 2006-02-18 04:43 0000 794 bytes Details | Diff
findutils-4.3.0.ebuild-bsd.patch findutils-4.3.0.ebuild-bsd.patch patch Benigno B. Junior (RETIRED) 2006-02-18 04:44 0000 430 bytes Details | Diff
findutils-ebuild.patch Ebuild patch patch Diego E. 'Flameeyes' Pettenò 2006-02-22 03:59 0000 1.35 KB Details | Diff
findutils-ebuild.patch Ebuild patch patch Diego E. 'Flameeyes' Pettenò 2006-02-22 04:14 0000 1.37 KB Details | Diff
findutils-4.3.0-statvfs-hack.patch findutils-4.3.0-statvfs-hack.patch patch Benigno B. Junior (RETIRED) 2006-02-22 16:07 0000 2.99 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 123253 depends on: Show dependency tree
Bug 123253 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-02-18 04:41 0000
I've been searching for statfs inside NetBSD's headers and it seems to be
changed to statvfs, but findutils doesn't see this in it's configuration step.

So I'm attaching a working ebuild and patch for Gentoo/NetBSD and Linux (I
tested it on Linux, and there's no inteference). We have no problem like this
bug #114747 and we cannot use our own regex.h, so the patch for the ebuild is
needed. I don't know about this statfs on others systems, but it might work on
some. Changing it to fit others BSD's might be easy.

I'm going to attach the things in the next posts.

------- Comment #1 From Benigno B. Junior (RETIRED) 2006-02-18 04:43:01 0000 -------
Created an attachment (id=80090) [details]
findutils-4.3.0-bsd.patch

Here's the patch for the sources.

------- Comment #2 From Benigno B. Junior (RETIRED) 2006-02-18 04:44:06 0000 -------
Created an attachment (id=80091) [details]
findutils-4.3.0.ebuild-bsd.patch

Here's the patch for the ebuild.

------- Comment #3 From Diego E. 'Flameeyes' Pettenò 2006-02-18 05:37:33 0000 -------
Need to check this a bit more, findutils 4.3.0 still doesn't work on either
fbsd and dfly with this patch.

I tried also to update gnulib's support but it's a bit messed up.
I think we'll need to wait for findutils 4.3.1 hoping they'll update gnulib..

------- Comment #4 From Diego E. 'Flameeyes' Pettenò 2006-02-22 03:41:14 0000 -------
Benigno, did you check if newer gnulib has that problem fixed?

------- Comment #5 From Diego E. 'Flameeyes' Pettenò 2006-02-22 03:58:34 0000 -------
Okay seems like the use of external regex breaks fbsd badly.
I'm going to attach the an updated ebuild patch that enables the internal regex
when the libc does not provide the one used.

The nbsd patch is sort of a problem, it breaks at least FreeBSD, so it has to
be fixed and generalised and sent to gnulib maintainers (not to findutils
maintainer that are just using gnulib), when that is done, findutils
maintainers should be told to update the gnulib they use so that fixed version
can be pulled in.

------- Comment #6 From Diego E. 'Flameeyes' Pettenò 2006-02-22 03:59:35 0000 -------
Created an attachment (id=80422) [details]
Ebuild patch

------- Comment #7 From Diego E. 'Flameeyes' Pettenò 2006-02-22 04:14:04 0000 -------
Created an attachment (id=80424) [details]
Ebuild patch

Forgot ${myconf}.

------- Comment #8 From Benigno B. Junior (RETIRED) 2006-02-22 16:06:36 0000 -------
(In reply to comment #4)
> Benigno, did you check if newer gnulib has that problem fixed?
> 

I only found fsusage.m4 and its corresponding source fsusage.c, which seems to
use statvfs, but importing it is a bit ridiculous (50kb+) and will not do what
we need without changing mountlist.c. I'll send an email to findutils' upstream
about this.

So I created an ugly hack (I know it might be stupid for upstream, though),
which only affect the system that has no statfs.h but has statvfs.h (the case
of NetBSD 2+. Is there other in the way?). Sir reb, do you need this?

I used the eautoconf to regenerate the configure script. I'm attaching the
patch in the next post. If someone knows how to correct this in a pretty way,
please, don't hesitate in helping! This is what I could do with minimal
changes. :)

------- Comment #9 From Benigno B. Junior (RETIRED) 2006-02-22 16:07:52 0000 -------
Created an attachment (id=80484) [details]
findutils-4.3.0-statvfs-hack.patch

It's there.

------- Comment #10 From SpanKY 2006-04-10 19:56:18 0000 -------
so do we have a clean fix here ?

------- Comment #11 From Benigno B. Junior (RETIRED) 2006-04-10 20:35:58 0000 -------
No. I've sent some emails to gnulib's upstream, but didn't get them back.
Newers coreutils have the same problem. Let's just schedule this for later,
it's not really mandatory now, since 4.1 still works.. :)

------- Comment #12 From Diego E. 'Flameeyes' Pettenò 2006-04-18 11:43:39 0000 -------
As Mike broke also the working findutils...

------- Comment #13 From Diego E. 'Flameeyes' Pettenò 2006-04-18 12:10:18 0000 -------
Is it an hack? Yes.
Is it ugly? Yes.

Did you break the only working version? Yes.

So thank you all for playing the ugly hack game :P


Serious bit: as this was broken, and the fix for glibc breaks the rest, I
consider this whole mess unfixable in other ways until upstream reacts, so I
added the needed fixes anyway.
Mike please next time you do something that you know breaks for us, do it in a
revbump and drop the keyword. Thanks.

------- Comment #14 From SpanKY 2006-04-18 15:30:26 0000 -------
the bug stays open until the hack is gone from portage

------- Comment #15 From Diego E. 'Flameeyes' Pettenò 2006-04-18 15:34:31 0000 -------
okay then.

------- Comment #16 From SpanKY 2006-09-16 19:40:39 0000 -------
4.3.1 should work properly

First Last Prev Next    No search results available      Search page      Enter new bug