Acknowledgement sent
to Daniel Kahn Gillmor <[email protected]>:
New Bug report received and forwarded. Copy sent to Norbert Tretkowski <[email protected]>.
(Wed, 14 Jul 2010 22:42:04 GMT) (full text, mbox, link).
Package: lsof
Version: 4.81.dfsg.1-1
lsof fails to build from source on debian's non-linux variants
(kfreebsd-i386, kfreebsd-amd64, and hurd-i386).
This appears to be at least partly because of a hardcoded line in
debian/rules:
./Configure -n linux
which obviously is wrong on these other platforms.
Here is a recent failed build log on kfreebsd-amd64:
https://buildd.debian.org/fetch.cgi?pkg=lsof;ver=4.81.dfsg.1-1;arch=kfreebsd-amd64;stamp=1245273862
Note that lsof's upstream claims at least that it builds fine on FreeBSD:
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/README
(no mention of hurd there).
christoph tried today just changing debian/rules to use
./Configure -n freebsd
but that didn't work either:
> 16:45 < christoph> jep but changing to freebsd doesn't work
> 16:46 < christoph> Creating ./lockf_owner.h from /sys/kern/kern_lockf.c
> 16:46 < christoph> FATAL ERROR: can't read /sys/kern/kern_lockf.c
> 16:46 < christoph> FATAL ERROR: ./lockf_owner.h creation failed (see 00FAQ)
> 16:47 < dkg> sounds like it needs kernel source available to do that. (from
> 00FAQ)
> 16:47 < dkg> FAQ question 8.6
[...]
> 17:26 < christoph> having the kernel-source package doesn't help has it doesn't
> ship that file .. digging
> 17:27 < christoph> and there doesn't seem to be a package that does
You can access the FAQ directly here:
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ
It would be really nice to have lsof available on kFreeBSD. It's also a
build-dependency of some packages (i ran into this with xdotool, which
uses lsof in the build process' test suite), so its lack on those arches
is actually causing other trouble in the archive.
--dkg
PS if debian-bsd folks reply to this, please CC me as i'm not on the list.
Changed Bug title to 'lsof FTBFS on non-linux arches (kFreeBSD and hurd)' from 'lsof FTBFS on non-linux arches'
Request was from Daniel Kahn Gillmor <[email protected]>
to [email protected].
(Thu, 29 Jul 2010 15:03:07 GMT) (full text, mbox, link).
Acknowledgement sent
to Daniel Kahn Gillmor <[email protected]>:
Extra info received and forwarded to list. Copy sent to Norbert Tretkowski <[email protected]>.
(Thu, 29 Jul 2010 15:15:03 GMT) (full text, mbox, link).
block 590827 with 589103
thanks
On 07/29/2010 11:47 AM, Petr Salinger wrote:
> Package: xdotool
> Version: 1:2.20100602.2915-1
> Severity: serious
> Tags: patch
> User: [email protected]
> Usertags: kfreebsd
>
>
> Hi,
>
> the current version fails to build on GNU/kFreeBSD.
> It looks like lsof is needed on for testsuite.
#589103 is a bug against lsof to make that tool available on for the
kFreeBSDs (and hurd, if possible). lsof does work on regular FreeBSD
systems. debian GNU/kFreeBSD shouldn't be deprived of the tool.
> Please restrict it's b-d only on linux "lsof [linux-any]"
> and allow missing lsof in t/ephemeral-x.sh script.
[...]
> --- xdotool-2.20100701.2961.orig/t/ephemeral-x.sh
> +++ xdotool-2.20100701.2961/t/ephemeral-x.sh
> @@ -69,7 +69,7 @@ fi
> if ! which lsof > /dev/null 2>&1 ; then
> echo "Unable to find lsof. This is a required tool."
> cleanup
> - exit 1
> + exit 0
> fi
I don't think this is an acceptable solution, because it breaks the test
scripts (they actually rely on lsof, the check for their presence isn't
superfluous)
--dkg
Changed Bug title to 'lsof: FTBS on Hurd' from 'lsof FTBFS on non-linux arches (kFreeBSD and hurd)'
Request was from Nicholas Bamber <[email protected]>
to [email protected].
(Tue, 28 Feb 2012 07:48:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Nicholas Bamber <[email protected]>:
Extra info received and forwarded to list. Copy sent to Norbert Tretkowski <[email protected]>.
(Tue, 24 Apr 2012 21:36:27 GMT) (full text, mbox, link).
tag 661575 +help
forwarded 661575 [email protected]
thanks
Abe,
Thanks again for your work on lsof.
There seems to be no support in the lsof code for the Hurd operating
system. I cannot say I am surprised but it does I believe meet your
criteria for support as it is readily available for download and
installation as per http://www.debian.org/ports/hurd/ .
I have copied the Debian Hurd mailing list as they are most likely to
be able to provide patches and advice.
Thanks. Nicholas
Acknowledgement sent
to Samuel Thibault <[email protected]>:
Extra info received and forwarded to list. Copy sent to Norbert Tretkowski <[email protected]>.
(Tue, 24 Apr 2012 22:18:03 GMT) (full text, mbox, link).
Nicholas Bamber, le Tue 24 Apr 2012 22:33:15 +0100, a écrit :
> There seems to be no support in the lsof code for the Hurd operating
> system. I cannot say I am surprised but it does I believe meet your criteria
> for support as it is readily available for download and installation as per
> http://www.debian.org/ports/hurd/ .
>
> I have copied the Debian Hurd mailing list as they are most likely to be
> able to provide patches and advice.
Well, I don't think the Hurd already has interfaces for lsof to get any
information. That would have to be added first...
Samuel
Acknowledgement sent
to Nicholas Bamber <[email protected]>:
Extra info received and forwarded to list. Copy sent to Norbert Tretkowski <[email protected]>.
(Tue, 24 Apr 2012 22:21:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Samuel Thibault <[email protected]>:
Extra info received and forwarded to list. Copy sent to Norbert Tretkowski <[email protected]>.
(Tue, 24 Apr 2012 22:27:06 GMT) (full text, mbox, link).
Nicholas Bamber, le Tue 24 Apr 2012 23:16:42 +0100, a écrit :
> AFAIK I think if the /proc filesystem had /proc/*/fd you'd be pretty much
> there.
Of course, but that doesn't change the actual issue: I don't think there
is any interface to actually implement /proc/*/fd either.
> I guess I should have copied an upstream Hurd mailing list as well.
It does not matter very much actually: most upstream Hurd people are
also subscribed to debian-hurd.
Samuel
Acknowledgement sent
to Roland McGrath <[email protected]>:
Extra info received and forwarded to list. Copy sent to Norbert Tretkowski <[email protected]>.
(Tue, 24 Apr 2012 23:45:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Samuel Thibault <[email protected]>:
Extra info received and forwarded to list. Copy sent to Norbert Tretkowski <[email protected]>.
(Tue, 24 Apr 2012 23:45:05 GMT) (full text, mbox, link).
Roland McGrath, le Tue 24 Apr 2012 16:34:52 -0700, a écrit :
> > Of course, but that doesn't change the actual issue: I don't think there
> > is any interface to actually implement /proc/*/fd either.
>
> See msg.defs.
That will give only ports to the fds. How to get back to actual file
paths?
Samuel
Acknowledgement sent
to Nicholas Bamber <[email protected]>:
Extra info received and forwarded to list. Copy sent to Norbert Tretkowski <[email protected]>.
(Tue, 24 Apr 2012 23:57:12 GMT) (full text, mbox, link).
Acknowledgement sent
to Roland McGrath <[email protected]>:
Extra info received and forwarded to list. Copy sent to Norbert Tretkowski <[email protected]>.
(Tue, 24 Apr 2012 23:57:18 GMT) (full text, mbox, link).
> Roland McGrath, le Tue 24 Apr 2012 16:34:52 -0700, a écrit :
> > > Of course, but that doesn't change the actual issue: I don't think there
> > > is any interface to actually implement /proc/*/fd either.
> >
> > See msg.defs.
>
> That will give only ports to the fds. How to get back to actual file
> paths?
Oh, well that's a different story (and one best discussed on bug-hurd).
There were past proposals about this, but I don't have a pointer.
Thanks,
Roland
Nicholas,
You write:
>
> Thanks again for your work on lsof.
>
> There seems to be no support in the lsof code for the
> Hurd operating
> system. I cannot say I am surprised but it does I believe meet your
> criteria for support as it is readily available for download and
> installation as per http://www.debian.org/ports/hurd/ .
>
> I have copied the Debian Hurd mailing list as they are
> most likely to
> be able to provide patches and advice.
>
> Thanks. Nicholas
Thanks for the inquiry. I am now 8 years into retirement and
have reduced lsof work to the minimum necessary to support a
few remaining dialects, including mainstream Linux. As a
result I'm not inclined to take on a new port.
Since the lsof sources are open software with just a few
restrictions imposed by the Purdue copyright, it would be
permissible for someone else to do the Hurd port.
Regards,
Vic
Acknowledgement sent
to Samuel Thibault <[email protected]>:
Extra info received and forwarded to list. Copy sent to Norbert Tretkowski <[email protected]>.
(Wed, 25 Apr 2012 00:27:03 GMT) (full text, mbox, link).
Nicholas Bamber, le Wed 25 Apr 2012 00:53:59 +0100, a écrit :
> That actually rings a bell from some other Hurd issue. Isn't there some bit
> of purest thinking that we have no right to assume that a file descripter
> actually implies a physical file, hence the question just cannot be asked.
There is sense in that, yes. That can also happen on Linux actually,
when the file is removed.
The best you can have is what path was used to open it. In the Hurd,
only the process itself knows.
> If that is so then the best Hurd might ever be able to offer lsof is the
> current /proc file system.
The process can be asked for the path. It just has to avoid throwing it
away after opening it, and define an interface to fetch it.
Samuel
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.