Re: Little note on psmisc
On 5/11/07, M.Canales.es <[EMAIL PROTECTED]> wrote: > El Jueves, 10 de Mayo de 2007 21:11, Bruce Dubbs escribió: > > > Looking at the source and then running `genl -help` I get > > > > $ ./genl -help > > Usage: genl [ OPTIONS ] OBJECT | help } > > where OBJECT := { ctrl etc } > >OPTIONS := { -s[tatistics] | -d[etails] | -r[aw] } > > > > But I have no idea what that means. > > After looking also at include/linux/genetlink.h, looks like genl is a tool for > monitoring "generic netlink linux sockets" (what is that??), similar to what > "ip monitor" do for devices, addresses, and routes. > Netlink is a method of communicating between kernel and userspace I believe - the netfilter modules use this new technology to replace the old logging methods. Basically you setup a "socket" in the kernel, and then userspace can use that to communicate to a kernel module - this can be bi-directional and multi-cast too, so you can hang a userspace process on a netlink socket and receive output from the kernel module - useful for accounting, audting, etc. -- -- - Steve Crosby -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: Little note on psmisc
On Saturday 21 April 2007 21:20:37 Chris Staub wrote: > Tijnema ! wrote: > > On 4/21/07, Chris Staub <[EMAIL PROTECTED]> wrote: > >> You're right, this isn't the right list. But I'll answer anyway... > >> > >> I see "oldfuser" in the list of Psmisc programs, in both the stable book Nearly missed this one! Does anyone know what the difference is between 'fuser' and 'oldfuser'? Matt. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: Little note on psmisc
On 5/10/07, Chris Staub <[EMAIL PROTECTED]> wrote: > Dan Nicholson wrote: > > > > Untested, but I think this would work: > > > > find man -name Makefile.in -exec sed -i 's/groups\.1 //' {} ';' > > Oops, I corrected this in CLFS six months ago but it seems I forgot to > email LFS-dev as well...sorry... Eh, it happens. > Anyway, it seems two commands are now needed, due to changes in the > Makefile in the latest Shadow verison. We don't use the find command for > all the various translations in CLFS (though maybe we should) but other > than that it should be the same...here's what we've got... > > sed -i '/groups.1.xml/d' man/Makefile Do we really care if groups.1 is regenerated from groups.1.xml? Even in the event that you actually had xsltproc, it's still not going to get installed due to the other sed. IMO, it's not worth another command on the shadow page. -- Dan -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: Little note on psmisc
On Thursday 10 May 2007 21:06:04 Matthew Burgess wrote: > find . -name Makefile -exec sed -i 's/groups\.1 / /' {} \; Doh #1 - that should be 'find man ...' > Oddly enough, I've ended up with groups.1 being installed on my most recent > jhalfs build. Doh # 2 - that's of course from Coreutils! Regards, Matt -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: Little note on psmisc
On Thursday 10 May 2007 20:57:04 Dan Nicholson wrote: > On 5/10/07, Dan Nicholson <[EMAIL PROTECTED]> wrote: > > Untested, but I think this would work: > > > > find man -name Makefile.in -exec sed -i 's/groups\.1 //' {} ';' > > Seems to work. Before configure, of course. s/Makefile.in/Makefile/ to > keep the command in the spot it is now. The following is a bit safer: find . -name Makefile -exec sed -i 's/groups\.1 / /' {} \; Otherwise we end up with another change on line 225 of Makefile where 'groups.1.xml' becomes '.xml'. Oddly enough, I've ended up with groups.1 being installed on my most recent jhalfs build. The script seems sane enough (it has the sed in it) - we'll see what happens with the next run! Regards, Matt. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: Little note on psmisc
Dan Nicholson wrote: > On 5/10/07, Matthew Burgess <[EMAIL PROTECTED]> wrote: >> Can someone with more Automake/Makefile foo explain to me why those 5 man >> pages aren't being installed please? It might just be a conincidence, but >> they all appear on the same line in the definition of man_MANS in >> man/Makefile! Other man sections that shadow installs files to look OK using >> a similar script to the one above. > > I had the same problem, and now I figured out why. The sed we do is > way too aggressive. > > find man -name Makefile -exec sed -i '/groups/d' {} \; > > In man/Makefile.in, groups appears on the same line as all the other > group* manpages. So, we've conveniently told make not to install them! > This only in a couple subdirectories. > > Untested, but I think this would work: > > find man -name Makefile.in -exec sed -i 's/groups\.1 //' {} ';' > > -- > Dan Oops, I corrected this in CLFS six months ago but it seems I forgot to email LFS-dev as well...sorry... Anyway, it seems two commands are now needed, due to changes in the Makefile in the latest Shadow verison. We don't use the find command for all the various translations in CLFS (though maybe we should) but other than that it should be the same...here's what we've got... sed -i '/groups.1.xml/d' man/Makefile sed -i 's/groups.1//' man/Makefile Actually, I believe the groups.1.xml line is only in the Makefile in the "man" directory so the find should only be needed for the 2nd command... -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: Little note on psmisc
On 5/10/07, Dan Nicholson <[EMAIL PROTECTED]> wrote: > > Untested, but I think this would work: > > find man -name Makefile.in -exec sed -i 's/groups\.1 //' {} ';' Seems to work. Before configure, of course. s/Makefile.in/Makefile/ to keep the command in the spot it is now. -- Dan -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: Little note on psmisc
On 5/10/07, Matthew Burgess <[EMAIL PROTECTED]> wrote: > > Can someone with more Automake/Makefile foo explain to me why those 5 man > pages aren't being installed please? It might just be a conincidence, but > they all appear on the same line in the definition of man_MANS in > man/Makefile! Other man sections that shadow installs files to look OK using > a similar script to the one above. I had the same problem, and now I figured out why. The sed we do is way too aggressive. find man -name Makefile -exec sed -i '/groups/d' {} \; In man/Makefile.in, groups appears on the same line as all the other group* manpages. So, we've conveniently told make not to install them! This only in a couple subdirectories. Untested, but I think this would work: find man -name Makefile.in -exec sed -i 's/groups\.1 //' {} ';' -- Dan -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: Little note on psmisc
On Thursday 10 May 2007 20:29:50 Matthew Burgess wrote: > Can someone with more Automake/Makefile foo explain to me why those 5 man > pages aren't being installed please? Ah, it looks like it's a translation issue, perhaps? root:/usr/share# find . -name groupdel.8 ./man/it/man8/groupdel.8 ./man/cs/man8/groupdel.8 ./man/fr/man8/groupdel.8 ./man/pt_BR/man8/groupdel.8 ./man/sv/man8/groupdel.8 ./man/tr/man8/groupdel.8 root:/usr/share# find . -name groupmems.8 root:/usr/share# find . -name groupmod.8 ./man/cs/man8/groupmod.8 ./man/pt_BR/man8/groupmod.8 ./man/tr/man8/groupmod.8 root:/usr/share# find . -name grpck.8 ./man/ja/man8/grpck.8 ./man/cs/man8/grpck.8 ./man/pl/man8/grpck.8 root:/usr/share# find . -name grpconv.8 ./man/ja/man8/grpconv.8 ./man/pl/man8/grpconv.8 Regards, Matt. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: Little note on psmisc
El Jueves, 10 de Mayo de 2007 21:11, Bruce Dubbs escribió: > Looking at the source and then running `genl -help` I get > > $ ./genl -help > Usage: genl [ OPTIONS ] OBJECT | help } > where OBJECT := { ctrl etc } >OPTIONS := { -s[tatistics] | -d[etails] | -r[aw] } > > But I have no idea what that means. After looking also at include/linux/genetlink.h, looks like genl is a tool for monitoring "generic netlink linux sockets" (what is that??), similar to what "ip monitor" do for devices, addresses, and routes. -- Manuel Canales Esparcia Usuario de LFS nº2886: http://www.linuxfromscratch.org LFS en castellano: http://www.escomposlinux.org/lfs-es http://www.lfs-es.info TLDP-ES: http://es.tldp.org -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: Little note on psmisc
On Thursday 10 May 2007 20:01:04 M.Canales.es wrote: > El Jueves, 10 de Mayo de 2007 19:56, Matthew Burgess escribió: > > > In the same boat as that is groupmems, which is installed by Shadow. > > Again, no source of info as to what it is supposed to do. > > This one have a man page. At least it XML source can be found in > {shadow_sources}/man/groupmems.8.xml Well, something's screwed up with Shadow then (surprise, surprise!): $ for file in `ls -1 /sources/shadow-4.0.18.1/man/*.8`; do ls /usr/share/man/man8/$(basename $file); done; /usr/share/man/man8/chgpasswd.8 /usr/share/man/man8/chpasswd.8 /usr/share/man/man8/faillog.8 /usr/share/man/man8/groupadd.8 ls: cannot access /usr/share/man/man8/groupdel.8: No such file or directory ls: cannot access /usr/share/man/man8/groupmems.8: No such file or directory ls: cannot access /usr/share/man/man8/groupmod.8: No such file or directory ls: cannot access /usr/share/man/man8/grpck.8: No such file or directory ls: cannot access /usr/share/man/man8/grpconv.8: No such file or directory /usr/share/man/man8/grpunconv.8 /usr/share/man/man8/lastlog.8 /usr/share/man/man8/logoutd.8 /usr/share/man/man8/newusers.8 /usr/share/man/man8/nologin.8 /usr/share/man/man8/pwck.8 /usr/share/man/man8/pwconv.8 /usr/share/man/man8/pwunconv.8 /usr/share/man/man8/sulogin.8 /usr/share/man/man8/useradd.8 /usr/share/man/man8/userdel.8 /usr/share/man/man8/usermod.8 /usr/share/man/man8/vigr.8 /usr/share/man/man8/vipw.8 Can someone with more Automake/Makefile foo explain to me why those 5 man pages aren't being installed please? It might just be a conincidence, but they all appear on the same line in the definition of man_MANS in man/Makefile! Other man sections that shadow installs files to look OK using a similar script to the one above. Thanks, Matt. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: Little note on psmisc
M.Canales.es wrote: > El Jueves, 10 de Mayo de 2007 19:56, Matthew Burgess escribió: > >> Indeed, and there's no man page for it, and no useful info in --help for it >> either. I'm certainly not going to go and try to grok the source to figure >> out what on earth it does. > > Looks like is related to generic netlinks control and inet socket monitoring, > but I don't know what it actually do. > >> In the same boat as that is groupmems, which is installed by Shadow. >> Again, no source of info as to what it is supposed to do. > > This one have a man page. At least it XML source can be found in > {shadow_sources}/man/groupmems.8.xml Looking at the source and then running `genl -help` I get $ ./genl -help Usage: genl [ OPTIONS ] OBJECT | help } where OBJECT := { ctrl etc } OPTIONS := { -s[tatistics] | -d[etails] | -r[aw] } But I have no idea what that means. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: Little note on psmisc
El Jueves, 10 de Mayo de 2007 19:56, Matthew Burgess escribió: > Indeed, and there's no man page for it, and no useful info in --help for it > either. I'm certainly not going to go and try to grok the source to figure > out what on earth it does. Looks like is related to generic netlinks control and inet socket monitoring, but I don't know what it actually do. > In the same boat as that is groupmems, which is installed by Shadow. > Again, no source of info as to what it is supposed to do. This one have a man page. At least it XML source can be found in {shadow_sources}/man/groupmems.8.xml -- Manuel Canales Esparcia Usuario de LFS nº2886: http://www.linuxfromscratch.org LFS en castellano: http://www.escomposlinux.org/lfs-es http://www.lfs-es.info TLDP-ES: http://es.tldp.org -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: Little note on psmisc
So, I'm nearly ready to commit a patch to fix up the list of files and libraries for each package. However: > > And while you're fixing, 2 other notes: > > genl is installed by IPRoute, but not in the list > > Hmm, looks like a new program...didn't exist at the time of LFS 6.2. Indeed, and there's no man page for it, and no useful info in --help for it either. I'm certainly not going to go and try to grok the source to figure out what on earth it does. In the same boat as that is groupmems, which is installed by Shadow. Again, no source of info as to what it is supposed to do. Any insight from other list members welcome! Regards, Matt. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: Little note on psmisc
On Saturday 21 April 2007 21:20, Chris Staub wrote: > Tijnema ! wrote: > > > > Look a little bit higher on that page. Until you see: Installed programs: > > fuser, killall, pstree, and pstree.x11 (link to pstree) > > Ah, I see (and forwarding this message to the correct list. Thanks. Also note that the new version of psmisc has another new binary, peekfd. > > In THAT list, there's no oldfuser. :) > > > > And while you're fixing, 2 other notes: > > genl is installed by IPRoute, but not in the list > > Hmm, looks like a new program...didn't exist at the time of LFS 6.2. > > > libvolume_id is installed by udev, but not in the list > > Yup, Udev needs a list of installed libraries. Yeah, I really need to get around to sorting out a file-logging patch for jhalfs so I can track things like this when I carry out package upgrades. My old scripts used to do this, so I'll see about porting my scriptlet over to jhalfs so this doesn't happen quite as often in the future. Regards, Matt. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: Little note on psmisc
Tijnema ! wrote: > On 4/21/07, Chris Staub <[EMAIL PROTECTED]> wrote: >> You're right, this isn't the right list. But I'll answer anyway... >> >> I see "oldfuser" in the list of Psmisc programs, in both the stable book >> - http://www.linuxfromscratch.org/lfs/view/stable/chapter06/psmisc.html >> - and development - >> http://www.linuxfromscratch.org/lfs/view/development/chapter06/psmisc.html. >> I can only guess you are probably looking at an older LFS book. > > > Look a little bit higher on that page. Until you see: Installed programs: > fuser, killall, pstree, and pstree.x11 (link to pstree) Ah, I see (and forwarding this message to the correct list. > In THAT list, there's no oldfuser. :) > > And while you're fixing, 2 other notes: > genl is installed by IPRoute, but not in the list Hmm, looks like a new program...didn't exist at the time of LFS 6.2. > libvolume_id is installed by udev, but not in the list Yup, Udev needs a list of installed libraries. > > Tijnema >> -- >> Thanks for the reports. I'm not an LFS dev, but I do work on CLFS, which has all of these issues as well, so I will fix that book. Now I just noticed the inconsistent alphabetization in the list of GCC programs..."c++" is followed by "cc" and "cpp" in the list of installed programs, but on the program descriptions it's "cc" then "cpp" then "c++"... I know I've gone through the entire list of installed programs based on the detailed "Program Descriptions" section before, but I don't think I've actually tried comparing that list with the one that just lists the program names... It also seems the list of libs for ncurses doesn't have the wide-char names. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page