Re: How to get a list of all kernel modules
On 6/29/07, Kostik Belousov <[EMAIL PROTECTED]> wrote: It would be very convenient to have unified location for ports kernel modules. May be, even hier(7) compliant ? For instance, some random set of ports installed kernel modules to: sysutils/devcpu: /boot/modules/cpu.ko net/ng_car: /boot/kernel/ng_car.ko (this means that ng_car.ko module will be trashed on next kernel update) audio/oss: /usr/local/lib/oss/modules I would propose that kernel module ports should install their KLD(s)into /boot/modules, as that would allow the kernel module to be loaded without specifing a path to the module: kldload instead of: kldload /path/to/module/.ko And allow the KLD to be loaded from /boot/loader.conf. Another option would be to allow only specific types of modules to be placed into /boot/modules (network, filesystem, ...) and then have the remaining modules installed into PREFIX/libexec/kernel_modules (audio, ...). A rc script for the module would then be used to load/unload the module. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
On Sat, Jun 30, 2007 at 10:45:36AM +1000, Edwin Groothuis wrote: > Portmgr works in quiet ways: Last thursday they commited the code > to bsd.port.mk, and linimon@ updated a lot of the ports with the > additional category. I will see if I can make an entry in the Porters > Handbook for it, and then make an USE_KLD flag which installs the > module and runs kldxref etc. It would be very convenient to have unified location for ports kernel modules. May be, even hier(7) compliant ? For instance, some random set of ports installed kernel modules to: sysutils/devcpu: /boot/modules/cpu.ko net/ng_car: /boot/kernel/ng_car.ko (this means that ng_car.ko module will be trashed on next kernel update) audio/oss: /usr/local/lib/oss/modules pgpT1zmulTmlF.pgp Description: PGP signature
Re: How to get a list of all kernel modules
On Tue, Jun 26, 2007 at 08:26:09AM +1000, Edwin Groothuis wrote: > On Mon, Jun 18, 2007 at 10:33:29AM +1000, Edwin Groothuis wrote: > > On Sun, Jun 17, 2007 at 01:36:40AM -0600, M. Warner Losh wrote: > > > In message: <[EMAIL PROTECTED]> > > > Edwin Groothuis <[EMAIL PROTECTED]> writes: > > > : On Sun, Jun 17, 2007 at 09:18:55AM +0200, [LoN]Kamikaze wrote: > > > : > M. Warner Losh wrote: > > > : > > In message: <[EMAIL PROTECTED]> > > > : > > [EMAIL PROTECTED] (Mark Linimon) writes: > > > : > > : On Sun, Jun 17, 2007 at 12:42:01AM -0600, M. Warner Losh wrote: > > > : > > : > I'd kinda hoped there was a pseudo category that I could key > > > off of. > > > : > > : > > > : > > : Kinda sounds like there should be. > > > : > > > > > : > > That would make grepping the info out of INDEX easy > > > : > > > > : > I'm with Mark here, there definitely should be one. > > > : > > > > : > I think it would be best to create it and send a HEADS UP to ports@ > > > or to all > > > : > maintainers. > > > : > > > : If you decide on a name for the category, I'll send-pr it and ask > > > : the maintainer of portlint to incoperate a check for it. > > > > > > 'kmod' would be my first choice. But I don't care as long as I know > > > what it is. > > > > ports/113802: [patch] add virtual category: kmod > > And TPTB have decided to call it: kld. Currently being tested by Pav Portmgr works in quiet ways: Last thursday they commited the code to bsd.port.mk, and linimon@ updated a lot of the ports with the additional category. I will see if I can make an entry in the Porters Handbook for it, and then make an USE_KLD flag which installs the module and runs kldxref etc. Edwin -- Edwin Groothuis |Personal website: http://www.mavetju.org [EMAIL PROTECTED]| Weblog: http://www.mavetju.org/weblog/ ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
On Mon, Jun 18, 2007 at 10:33:29AM +1000, Edwin Groothuis wrote: > On Sun, Jun 17, 2007 at 01:36:40AM -0600, M. Warner Losh wrote: > > In message: <[EMAIL PROTECTED]> > > Edwin Groothuis <[EMAIL PROTECTED]> writes: > > : On Sun, Jun 17, 2007 at 09:18:55AM +0200, [LoN]Kamikaze wrote: > > : > M. Warner Losh wrote: > > : > > In message: <[EMAIL PROTECTED]> > > : > > [EMAIL PROTECTED] (Mark Linimon) writes: > > : > > : On Sun, Jun 17, 2007 at 12:42:01AM -0600, M. Warner Losh wrote: > > : > > : > I'd kinda hoped there was a pseudo category that I could key off > > of. > > : > > : > > : > > : Kinda sounds like there should be. > > : > > > > : > > That would make grepping the info out of INDEX easy > > : > > > : > I'm with Mark here, there definitely should be one. > > : > > > : > I think it would be best to create it and send a HEADS UP to ports@ or > > to all > > : > maintainers. > > : > > : If you decide on a name for the category, I'll send-pr it and ask > > : the maintainer of portlint to incoperate a check for it. > > > > 'kmod' would be my first choice. But I don't care as long as I know > > what it is. > > ports/113802: [patch] add virtual category: kmod And TPTB have decided to call it: kld. Currently being tested by Pav Edwin -- Edwin Groothuis |Personal website: http://www.mavetju.org [EMAIL PROTECTED]| Weblog: http://www.mavetju.org/weblog/ ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
On Sun, Jun 17, 2007 at 03:46:42AM -0400, Kris Kennaway wrote: > > What does it require? Not much: after each package built, somehow > > a notice gets send to a database backend which grabs the tarball, > > grabs the +CONTENTS files and stores that data. > > Fill in the "somehows" and we can hook it up. I've put my ideas on paper (virtual paper), and they can be found at http://wiki.freebsd.org/PackageBuilderHistoricalData It describes what we have today, and what I think we can do with historical data. It consists of two parts: package contents and build logs. At this moment it's just the things I think are important or interesting, and give no guarantee that it will be as exicting as I think it is. I'll start with the latest bullet on that page, and see if we can get something nice out of it. Edwin -- Edwin Groothuis |Personal website: http://www.mavetju.org [EMAIL PROTECTED]| Weblog: http://www.mavetju.org/weblog/ ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
On Sun, Jun 17, 2007 at 01:36:40AM -0600, M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > Edwin Groothuis <[EMAIL PROTECTED]> writes: > : On Sun, Jun 17, 2007 at 09:18:55AM +0200, [LoN]Kamikaze wrote: > : > M. Warner Losh wrote: > : > > In message: <[EMAIL PROTECTED]> > : > > [EMAIL PROTECTED] (Mark Linimon) writes: > : > > : On Sun, Jun 17, 2007 at 12:42:01AM -0600, M. Warner Losh wrote: > : > > : > I'd kinda hoped there was a pseudo category that I could key off of. > : > > : > : > > : Kinda sounds like there should be. > : > > > : > > That would make grepping the info out of INDEX easy > : > > : > I'm with Mark here, there definitely should be one. > : > > : > I think it would be best to create it and send a HEADS UP to ports@ or to > all > : > maintainers. > : > : If you decide on a name for the category, I'll send-pr it and ask > : the maintainer of portlint to incoperate a check for it. > > 'kmod' would be my first choice. But I don't care as long as I know > what it is. ports/113802: [patch] add virtual category: kmod What has been suggested to make too is a description on how to build packages which install kernel modules (The use of kldxref for example) Edwin -- Edwin Groothuis |Personal website: http://www.mavetju.org [EMAIL PROTECTED]| Weblog: http://www.mavetju.org/weblog/ ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
Edwin Groothuis wrote: > On Sun, Jun 17, 2007 at 09:18:55AM +0200, [LoN]Kamikaze wrote: >> M. Warner Losh wrote: >>> In message: <[EMAIL PROTECTED]> >>> [EMAIL PROTECTED] (Mark Linimon) writes: >>> : On Sun, Jun 17, 2007 at 12:42:01AM -0600, M. Warner Losh wrote: >>> : > I'd kinda hoped there was a pseudo category that I could key off of. >>> : >>> : Kinda sounds like there should be. >>> >>> That would make grepping the info out of INDEX easy >> I'm with Mark here, there definitely should be one. >> >> I think it would be best to create it and send a HEADS UP to ports@ or to all >> maintainers. > > If you decide on a name for the category, I'll send-pr it and ask > the maintainer of portlint to incoperate a check for it. > > Edwin The way I understand the Porter's Handbook virtual categories are introduced simply by using them in a port. So the only work that would have to be done is to inform maintainers and update the Porter's Handbook chapter 5.3. Apart from that Warner's suggestion of kmod sounds very reasonable to me. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
On Sun, Jun 17, 2007 at 04:44:17PM +1000, Edwin Groothuis wrote: > On Sun, Jun 17, 2007 at 08:33:22AM +0200, [LoN]Kamikaze wrote: > > I see I misunderstood, sorry about that. So how about that one: > > > > # find /usr/ports/ -type f -name pkg-plist -exec grep -El > > '[EMAIL PROTECTED]:space:]]+/boot' \{} \; | sed -E 's|^/usr/ports/||1' | > > sed -E > > 's|/pkg-plist$||1' > > > > It only works with ports that have a pkg-plist file, though. > > And which do @cwd in it. Doesn't work with multimedia/pvr250 for > example. > > This reminds me of a pet-project of me which I would like to restart, > but which needs to cooperation from the maintainers of the package > building clusters: A database of installed files. And a historical > list of package build failures, but that one isn't relevant here. Historical list of build failures going back to 2003 is available on pointyhat. I used to have logs going back to last century but had to delete them for lack of space. > What does it require? Not much: after each package built, somehow > a notice gets send to a database backend which grabs the tarball, > grabs the +CONTENTS files and stores that data. Fill in the "somehows" and we can hook it up. Kris ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
On Sun, Jun 17, 2007 at 12:42:01AM -0600, M. Warner Losh wrote: > I'd kinda hoped there was a pseudo category that I could key off of. Sounds like a good idea. Kris pgpzDfU2YQLiY.pgp Description: PGP signature
Re: How to get a list of all kernel modules
In message: <[EMAIL PROTECTED]> Edwin Groothuis <[EMAIL PROTECTED]> writes: : On Sun, Jun 17, 2007 at 09:18:55AM +0200, [LoN]Kamikaze wrote: : > M. Warner Losh wrote: : > > In message: <[EMAIL PROTECTED]> : > > [EMAIL PROTECTED] (Mark Linimon) writes: : > > : On Sun, Jun 17, 2007 at 12:42:01AM -0600, M. Warner Losh wrote: : > > : > I'd kinda hoped there was a pseudo category that I could key off of. : > > : : > > : Kinda sounds like there should be. : > > : > > That would make grepping the info out of INDEX easy : > : > I'm with Mark here, there definitely should be one. : > : > I think it would be best to create it and send a HEADS UP to ports@ or to all : > maintainers. : : If you decide on a name for the category, I'll send-pr it and ask : the maintainer of portlint to incoperate a check for it. 'kmod' would be my first choice. But I don't care as long as I know what it is. Warner ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
On Sun, Jun 17, 2007 at 09:18:55AM +0200, [LoN]Kamikaze wrote: > M. Warner Losh wrote: > > In message: <[EMAIL PROTECTED]> > > [EMAIL PROTECTED] (Mark Linimon) writes: > > : On Sun, Jun 17, 2007 at 12:42:01AM -0600, M. Warner Losh wrote: > > : > I'd kinda hoped there was a pseudo category that I could key off of. > > : > > : Kinda sounds like there should be. > > > > That would make grepping the info out of INDEX easy > > I'm with Mark here, there definitely should be one. > > I think it would be best to create it and send a HEADS UP to ports@ or to all > maintainers. If you decide on a name for the category, I'll send-pr it and ask the maintainer of portlint to incoperate a check for it. Edwin -- Edwin Groothuis |Personal website: http://www.mavetju.org [EMAIL PROTECTED]| Weblog: http://www.mavetju.org/weblog/ ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > [EMAIL PROTECTED] (Mark Linimon) writes: > : On Sun, Jun 17, 2007 at 12:42:01AM -0600, M. Warner Losh wrote: > : > I'd kinda hoped there was a pseudo category that I could key off of. > : > : Kinda sounds like there should be. > > That would make grepping the info out of INDEX easy > > Warner > I'm with Mark here, there definitely should be one. I think it would be best to create it and send a HEADS UP to ports@ or to all maintainers. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
In message: <[EMAIL PROTECTED]> [EMAIL PROTECTED] (Mark Linimon) writes: : On Sun, Jun 17, 2007 at 12:42:01AM -0600, M. Warner Losh wrote: : > I'd kinda hoped there was a pseudo category that I could key off of. : : Kinda sounds like there should be. : : Here's my list so far: : : audio/aureal-kmod : audio/emu10kx : comms/hcfmdm : comms/ixj : comms/ltmdm : comms/uticom : comms/vpb-driver : graphics/kix-kmod : graphics/plasma-kmod : misc/zaptel : multimedia/pvr250 : multimedia/pwcbsd : net/acx100 : net/ipw-firmware : net/iwi-firmware : net/ng_daphne : net/nvnet : net/p54u : palm/uppc-kmod : security/vncrypt : sysutils/cd9660_unicode : sysutils/est : sysutils/fusefs-kmod : sysutils/ipmi-kmod : x11/nvidia-driver I think you missed: multimedia/kbtv sysutils/pmap sysutils/biosfont sysutils/devcpu net/ng_car net/ng_netflow net/ipvs although some of these install a lot more than just a single driver. Warner ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
In message: <[EMAIL PROTECTED]> [EMAIL PROTECTED] (Mark Linimon) writes: : On Sun, Jun 17, 2007 at 12:42:01AM -0600, M. Warner Losh wrote: : > I'd kinda hoped there was a pseudo category that I could key off of. : : Kinda sounds like there should be. That would make grepping the info out of INDEX easy Warner ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
On Sun, Jun 17, 2007 at 05:04:47PM +1000, Edwin Groothuis wrote: > On Sun, Jun 17, 2007 at 01:54:57AM -0500, Mark Linimon wrote: > > On Sun, Jun 17, 2007 at 12:42:01AM -0600, M. Warner Losh wrote: > > > I'd kinda hoped there was a pseudo category that I could key off of. > > > > Kinda sounds like there should be. > > > > Here's my list so far: > > > > multimedia/pvr250 > > Plus multimedia/pvrxxx. Plus emulators/snespp. I think you can better grep for \\.ko$, and then later manually remove the ones which install it a /compat directory. Edwin -- Edwin Groothuis |Personal website: http://www.mavetju.org [EMAIL PROTECTED]| Weblog: http://www.mavetju.org/weblog/ ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
In message: <[EMAIL PROTECTED]> Kris Kennaway <[EMAIL PROTECTED]> writes: : On Sun, Jun 17, 2007 at 02:28:19AM -0400, Kris Kennaway wrote: : > On Sun, Jun 17, 2007 at 01:22:57AM -0500, Mark Linimon wrote: : > > On Sun, Jun 17, 2007 at 12:15:16AM -0600, M. Warner Losh wrote: : > > > I want a list of all the ports in /usr/ports that install kernel modules. : > > : > > IIRC they're all in misc/. Let me see if I can come up with a quick list. : > : > Nope, but I'm grepping for them now. : : Partial list: : : Binary file ./linux-kmod-compat-20070326.tbz matches : Binary file ./biosfont-1.1.tbz matches : Binary file ./iwi-firmware-2.4_7.tbz matches : Binary file ./ipw-firmware-1.3_8.tbz matches : Binary file ./linux-js-2.2.tbz matches : Binary file ./kqemu-kmod-1.3.0.p11.tbz matches : Binary file ./ltmdm-1.4_18.tbz matches : : This is from 6.x, and I know there are others, so a more complete grep : will be needed. Grepping for '\.ko$' does fairly well at coming up with a good list. However, there are a few interesting false positives: ./editors/emacs/pkg-plist ./editors/emacs-devel/pkg-plist ./editors/emacs20/pkg-plist ./editors/xemacs/pkg-plist ./editors/xemacs-devel/pkg-plist ./editors/xemacs-devel-mule/pkg-plist ./editors/xemacs21-mule/pkg-plist ./editors/emacs.app/pkg-plist ./korean/hlatex/pkg-plist ./korean/msdosfs/pkg-plist ./korean/pgp.language/pkg-plist ./korean/texinfo/pkg-plist All of these because there are files that I think are in korean with a .ko suffix. and there's only one in misc: ./misc/zaptel/pkg-plist which lists a bunch of .ko's installed into /usr/local/lib/zaptel that turn out to be kernel drivers, but no mention of "/boot" at all. Warner ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > "[LoN]Kamikaze" <[EMAIL PROTECTED]> writes: > : I see I misunderstood, sorry about that. So how about that one: > : > : # find /usr/ports/ -type f -name pkg-plist -exec grep -El > : '[EMAIL PROTECTED]:space:]]+/boot' \{} \; | sed -E 's|^/usr/ports/||1' | > sed -E > : 's|/pkg-plist$||1' > : > : It only works with ports that have a pkg-plist file, though. > > This won't quite work because there are things like: > > % cat multimedia/pvr250/pkg-plist > @unexec rm %%MODULESDIR%%/cxm.ko > @unexec rm %%MODULESDIR%%/cxm_iic.ko > bin/pvr250-setchannel > > I'd kinda hoped there was a pseudo category that I could key off of. > pvr250 is also kinda a mess too, since I can't build it w/o a CD I > don't have... > > Warner The only completely reliable way I see is to install all ports, because the TMPPLIST only reaches its final state in the post-install target. Then you could use my first solution, to grep through the output of pkg_info -qaL ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
On Sun, Jun 17, 2007 at 01:54:57AM -0500, Mark Linimon wrote: > On Sun, Jun 17, 2007 at 12:42:01AM -0600, M. Warner Losh wrote: > > I'd kinda hoped there was a pseudo category that I could key off of. > > Kinda sounds like there should be. > > Here's my list so far: > > multimedia/pvr250 Plus multimedia/pvrxxx. Edwin -- Edwin Groothuis |Personal website: http://www.mavetju.org [EMAIL PROTECTED]| Weblog: http://www.mavetju.org/weblog/ ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
On Sun, Jun 17, 2007 at 12:42:01AM -0600, M. Warner Losh wrote: > I'd kinda hoped there was a pseudo category that I could key off of. Kinda sounds like there should be. Here's my list so far: audio/aureal-kmod audio/emu10kx comms/hcfmdm comms/ixj comms/ltmdm comms/uticom comms/vpb-driver graphics/kix-kmod graphics/plasma-kmod misc/zaptel multimedia/pvr250 multimedia/pwcbsd net/acx100 net/ipw-firmware net/iwi-firmware net/ng_daphne net/nvnet net/p54u palm/uppc-kmod security/vncrypt sysutils/cd9660_unicode sysutils/est sysutils/fusefs-kmod sysutils/ipmi-kmod x11/nvidia-driver ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
In message: <[EMAIL PROTECTED]> Edwin Groothuis <[EMAIL PROTECTED]> writes: : On Sun, Jun 17, 2007 at 12:42:01AM -0600, M. Warner Losh wrote: : > I'd kinda hoped there was a pseudo category that I could key off of. : > pvr250 is also kinda a mess too, since I can't build it w/o a CD I : > don't have... : : Don't blame me, there are lots of ports which require distfiles : which you can't just download :-) I don't blame you. I understand the reasons for it, but it makes it harder to automatically check them. Warner ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
On Sun, Jun 17, 2007 at 12:15:16AM -0600, M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > "[LoN]Kamikaze" <[EMAIL PROTECTED]> writes: > : [LoN]Kamikaze wrote: > : > M. Warner Losh wrote: > : >> Greetings, > : >> > : >> is there an easy way to get a list of all the ports that compile > : >> kernel modules? I'd like to add them to my kernel build. I did this > : >> once before, but I lost all information on how to do it when I lost my > : >> laptop's hard disk after the last bsdcan... > : >> > : >> Warner > : > > : > # find /boot/ -type f -exec pkg_info -W \{} \; > : > : Sorry about that, it takes very long. Better is: > : > : # sh -c 'for mod in `pkg_info -qaL|grep -E "^/+boot"`; { pkg_info -W > "$mod"; } > > This sounds great, except for one problem. This will tell me all the > modules that I've installed that are from ports. Since I've never > installed any from ports, this will not work for what I want. I want > a list of all the ports in /usr/ports that install kernel modules. > I'd even settle for a list of all the ports in /usr/ports that only > install modules. > > Something like > egrep -l '\.ko$' /usr/ports/*/*/pkg-plist | sed -e s=/pkg-plist// > might do the trick, but that blows the command line limits out of the > water. Replacing egrep with 'find' would need to be carefully > constructed to avoid false positives in any work directories I have > laying around. I was hoping for something a little easier to do... Keep in mind that not all ports have a 'pkg-plist' file. Some ports list that info directly in the Makefile. I don't think there is any way of doing what you want without searching through every single Makefile/pkg-plist file in the entire ports tree. -- Erik Trulsson [EMAIL PROTECTED] ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
On Sun, Jun 17, 2007 at 12:42:01AM -0600, M. Warner Losh wrote: > I'd kinda hoped there was a pseudo category that I could key off of. > pvr250 is also kinda a mess too, since I can't build it w/o a CD I > don't have... Don't blame me, there are lots of ports which require distfiles which you can't just download :-) Edwin -- Edwin Groothuis |Personal website: http://www.mavetju.org [EMAIL PROTECTED]| Weblog: http://www.mavetju.org/weblog/ ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
On Sun, Jun 17, 2007 at 01:22:57AM -0500, Mark Linimon wrote: > On Sun, Jun 17, 2007 at 12:15:16AM -0600, M. Warner Losh wrote: > > I want a list of all the ports in /usr/ports that install kernel modules. > > IIRC they're all in misc/. Let me see if I can come up with a quick list. Not all of them are in misc/. One counter-example is emulators/kqemu-kmod, another is x11/nvidia-driver. -- Erik Trulsson [EMAIL PROTECTED] ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
On Sun, Jun 17, 2007 at 08:33:22AM +0200, [LoN]Kamikaze wrote: > I see I misunderstood, sorry about that. So how about that one: > > # find /usr/ports/ -type f -name pkg-plist -exec grep -El > '[EMAIL PROTECTED]:space:]]+/boot' \{} \; | sed -E 's|^/usr/ports/||1' | sed > -E > 's|/pkg-plist$||1' > > It only works with ports that have a pkg-plist file, though. And which do @cwd in it. Doesn't work with multimedia/pvr250 for example. This reminds me of a pet-project of me which I would like to restart, but which needs to cooperation from the maintainers of the package building clusters: A database of installed files. And a historical list of package build failures, but that one isn't relevant here. What does it require? Not much: after each package built, somehow a notice gets send to a database backend which grabs the tarball, grabs the +CONTENTS files and stores that data. What can it be used for? Questions like this for example. Or better CONFLICTS determination. Or historical information ("I get this file /usr/local/share/foo, but I can't find out who installed it") Edwin -- Edwin Groothuis |Personal website: http://www.mavetju.org [EMAIL PROTECTED]| Weblog: http://www.mavetju.org/weblog/ ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
[LoN]Kamikaze wrote: > M. Warner Losh wrote: >> In message: <[EMAIL PROTECTED]> >> "[LoN]Kamikaze" <[EMAIL PROTECTED]> writes: >> : [LoN]Kamikaze wrote: >> : > M. Warner Losh wrote: >> : >> Greetings, >> : >> >> : >> is there an easy way to get a list of all the ports that compile >> : >> kernel modules? I'd like to add them to my kernel build. I did this >> : >> once before, but I lost all information on how to do it when I lost my >> : >> laptop's hard disk after the last bsdcan... >> : >> >> : >> Warner >> : > >> : > # find /boot/ -type f -exec pkg_info -W \{} \; >> : >> : Sorry about that, it takes very long. Better is: >> : >> : # sh -c 'for mod in `pkg_info -qaL|grep -E "^/+boot"`; { pkg_info -W >> "$mod"; } >> >> This sounds great, except for one problem. This will tell me all the >> modules that I've installed that are from ports. Since I've never >> installed any from ports, this will not work for what I want. I want >> a list of all the ports in /usr/ports that install kernel modules. >> I'd even settle for a list of all the ports in /usr/ports that only >> install modules. >> >> Something like >> egrep -l '\.ko$' /usr/ports/*/*/pkg-plist | sed -e s=/pkg-plist// >> might do the trick, but that blows the command line limits out of the >> water. Replacing egrep with 'find' would need to be carefully >> constructed to avoid false positives in any work directories I have >> laying around. I was hoping for something a little easier to do... >> >> Warner > > I see I misunderstood, sorry about that. So how about that one: > > # find /usr/ports/ -type f -name pkg-plist -exec grep -El > '[EMAIL PROTECTED]:space:]]+/boot' \{} \; | sed -E 's|^/usr/ports/||1' | sed > -E > 's|/pkg-plist$||1' > > It only works with ports that have a pkg-plist file, though. It's all a bit tricky, now. This only returns a very small number of ports. Changing '[EMAIL PROTECTED]:space:]]+/boot' to '[EMAIL PROTECTED]:space:]]+/' helps, but returns lots of false positives, too: archivers/dpkg audio/mt-daapd comms/hylafax comms/smstools databases/cyrus-imspd databases/firebird-server databases/firebird2-server databases/sqlrelay devel/linux-js emulators/vmware-guestd6 emulators/snespp emulators/its emulators/vmware-guestd4 emulators/vmware-guestd5 games/freebsd-games games/barrage games/childsplay games/lbreakout games/wanderer games/xpat2 german/staroffice5 mail/fetchmail mail/dspam-devel mail/dspam mail/mimedefang mail/py-spambayes mail/zmailer multimedia/linux-gspca-kmod multimedia/linux-ov511-kmod multimedia/pwcbsd net-mgmt/cisco_conf net-mgmt/ng_ipacct net/acx100 net/asterisk-bristuff net/asterisk12 net/ipvs net/ipw-firmware-kmod net/ipw-firmware net/iwi-firmware-kmod net/iwi-firmware net/openldap23-server net/openpbx.org net/asterisk net/ng_netflow net/nvnet net/openldap24-server news/noffle print/bjfilter360 print/bjfilter850 print/bjfilter850ug print/bjfilter860 print/bjfilter870 print/bjfilters600 print/bjfilters630 print/bjfilters6300 print/bjfiltercom russian/tac+ia security/bioapi security/cyrus-sasl security/drweb security/ipsec-tools security/pam-pgsql security/vncrypt sysutils/apt sysutils/devcpu sysutils/fcron sysutils/graphicboot sysutils/heartbeat sysutils/pmap textproc/dixit www/hinventory-client www/interchange www/linux-flashplugin9 www/middleman www/wwwoffle x11/nvidia-driver I suppose these would have to be hand-checked. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
In message: <[EMAIL PROTECTED]> "[LoN]Kamikaze" <[EMAIL PROTECTED]> writes: : M. Warner Losh wrote: : > In message: <[EMAIL PROTECTED]> : > "[LoN]Kamikaze" <[EMAIL PROTECTED]> writes: : > : [LoN]Kamikaze wrote: : > : > M. Warner Losh wrote: : > : >> Greetings, : > : >> : > : >> is there an easy way to get a list of all the ports that compile : > : >> kernel modules? I'd like to add them to my kernel build. I did this : > : >> once before, but I lost all information on how to do it when I lost my : > : >> laptop's hard disk after the last bsdcan... : > : >> : > : >> Warner : > : > : > : > # find /boot/ -type f -exec pkg_info -W \{} \; : > : : > : Sorry about that, it takes very long. Better is: : > : : > : # sh -c 'for mod in `pkg_info -qaL|grep -E "^/+boot"`; { pkg_info -W "$mod"; } : > : > This sounds great, except for one problem. This will tell me all the : > modules that I've installed that are from ports. Since I've never : > installed any from ports, this will not work for what I want. I want : > a list of all the ports in /usr/ports that install kernel modules. : > I'd even settle for a list of all the ports in /usr/ports that only : > install modules. : > : > Something like : > egrep -l '\.ko$' /usr/ports/*/*/pkg-plist | sed -e s=/pkg-plist// : > might do the trick, but that blows the command line limits out of the : > water. Replacing egrep with 'find' would need to be carefully : > constructed to avoid false positives in any work directories I have : > laying around. I was hoping for something a little easier to do... : > : > Warner : : I see I misunderstood, sorry about that. So how about that one: : : # find /usr/ports/ -type f -name pkg-plist -exec grep -El : '[EMAIL PROTECTED]:space:]]+/boot' \{} \; | sed -E 's|^/usr/ports/||1' | sed -E : 's|/pkg-plist$||1' : : It only works with ports that have a pkg-plist file, though. This won't quite work because there are things like: % cat multimedia/pvr250/pkg-plist @unexec rm %%MODULESDIR%%/cxm.ko @unexec rm %%MODULESDIR%%/cxm_iic.ko bin/pvr250-setchannel I'd kinda hoped there was a pseudo category that I could key off of. pvr250 is also kinda a mess too, since I can't build it w/o a CD I don't have... Warner ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
On Sun, Jun 17, 2007 at 02:28:19AM -0400, Kris Kennaway wrote: > On Sun, Jun 17, 2007 at 01:22:57AM -0500, Mark Linimon wrote: > > On Sun, Jun 17, 2007 at 12:15:16AM -0600, M. Warner Losh wrote: > > > I want a list of all the ports in /usr/ports that install kernel modules. > > > > IIRC they're all in misc/. Let me see if I can come up with a quick list. > > Nope, but I'm grepping for them now. Partial list: Binary file ./linux-kmod-compat-20070326.tbz matches Binary file ./biosfont-1.1.tbz matches Binary file ./iwi-firmware-2.4_7.tbz matches Binary file ./ipw-firmware-1.3_8.tbz matches Binary file ./linux-js-2.2.tbz matches Binary file ./kqemu-kmod-1.3.0.p11.tbz matches Binary file ./ltmdm-1.4_18.tbz matches This is from 6.x, and I know there are others, so a more complete grep will be needed. Kris ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > "[LoN]Kamikaze" <[EMAIL PROTECTED]> writes: > : [LoN]Kamikaze wrote: > : > M. Warner Losh wrote: > : >> Greetings, > : >> > : >> is there an easy way to get a list of all the ports that compile > : >> kernel modules? I'd like to add them to my kernel build. I did this > : >> once before, but I lost all information on how to do it when I lost my > : >> laptop's hard disk after the last bsdcan... > : >> > : >> Warner > : > > : > # find /boot/ -type f -exec pkg_info -W \{} \; > : > : Sorry about that, it takes very long. Better is: > : > : # sh -c 'for mod in `pkg_info -qaL|grep -E "^/+boot"`; { pkg_info -W > "$mod"; } > > This sounds great, except for one problem. This will tell me all the > modules that I've installed that are from ports. Since I've never > installed any from ports, this will not work for what I want. I want > a list of all the ports in /usr/ports that install kernel modules. > I'd even settle for a list of all the ports in /usr/ports that only > install modules. > > Something like > egrep -l '\.ko$' /usr/ports/*/*/pkg-plist | sed -e s=/pkg-plist// > might do the trick, but that blows the command line limits out of the > water. Replacing egrep with 'find' would need to be carefully > constructed to avoid false positives in any work directories I have > laying around. I was hoping for something a little easier to do... > > Warner I see I misunderstood, sorry about that. So how about that one: # find /usr/ports/ -type f -name pkg-plist -exec grep -El '[EMAIL PROTECTED]:space:]]+/boot' \{} \; | sed -E 's|^/usr/ports/||1' | sed -E 's|/pkg-plist$||1' It only works with ports that have a pkg-plist file, though. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
On Sun, Jun 17, 2007 at 01:22:57AM -0500, Mark Linimon wrote: > On Sun, Jun 17, 2007 at 12:15:16AM -0600, M. Warner Losh wrote: > > I want a list of all the ports in /usr/ports that install kernel modules. > > IIRC they're all in misc/. Let me see if I can come up with a quick list. Nope, but I'm grepping for them now. Kris pgpfuKFR7uV0y.pgp Description: PGP signature
Re: How to get a list of all kernel modules
On Sun, Jun 17, 2007 at 12:15:16AM -0600, M. Warner Losh wrote: > I want a list of all the ports in /usr/ports that install kernel modules. IIRC they're all in misc/. Let me see if I can come up with a quick list. mcl ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
In message: <[EMAIL PROTECTED]> "[LoN]Kamikaze" <[EMAIL PROTECTED]> writes: : [LoN]Kamikaze wrote: : > M. Warner Losh wrote: : >> Greetings, : >> : >> is there an easy way to get a list of all the ports that compile : >> kernel modules? I'd like to add them to my kernel build. I did this : >> once before, but I lost all information on how to do it when I lost my : >> laptop's hard disk after the last bsdcan... : >> : >> Warner : > : > # find /boot/ -type f -exec pkg_info -W \{} \; : : Sorry about that, it takes very long. Better is: : : # sh -c 'for mod in `pkg_info -qaL|grep -E "^/+boot"`; { pkg_info -W "$mod"; } This sounds great, except for one problem. This will tell me all the modules that I've installed that are from ports. Since I've never installed any from ports, this will not work for what I want. I want a list of all the ports in /usr/ports that install kernel modules. I'd even settle for a list of all the ports in /usr/ports that only install modules. Something like egrep -l '\.ko$' /usr/ports/*/*/pkg-plist | sed -e s=/pkg-plist// might do the trick, but that blows the command line limits out of the water. Replacing egrep with 'find' would need to be carefully constructed to avoid false positives in any work directories I have laying around. I was hoping for something a little easier to do... Warner ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
[LoN]Kamikaze wrote: > M. Warner Losh wrote: >> Greetings, >> >> is there an easy way to get a list of all the ports that compile >> kernel modules? I'd like to add them to my kernel build. I did this >> once before, but I lost all information on how to do it when I lost my >> laptop's hard disk after the last bsdcan... >> >> Warner > > # find /boot/ -type f -exec pkg_info -W \{} \; Sorry about that, it takes very long. Better is: # sh -c 'for mod in `pkg_info -qaL|grep -E "^/+boot"`; { pkg_info -W "$mod"; } ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get a list of all kernel modules
M. Warner Losh wrote: > Greetings, > > is there an easy way to get a list of all the ports that compile > kernel modules? I'd like to add them to my kernel build. I did this > once before, but I lost all information on how to do it when I lost my > laptop's hard disk after the last bsdcan... > > Warner # find /boot/ -type f -exec pkg_info -W \{} \; ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
How to get a list of all kernel modules
Greetings, is there an easy way to get a list of all the ports that compile kernel modules? I'd like to add them to my kernel build. I did this once before, but I lost all information on how to do it when I lost my laptop's hard disk after the last bsdcan... Warner ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"