* [Buildroot] PATCH: set BR2_INET_RPC dependency for nfs-utils and portmap
@ 2007-10-13 23:50 Ivan Kuten
2007-10-14 9:30 ` Yann E. MORIN
0 siblings, 1 reply; 4+ messages in thread
From: Ivan Kuten @ 2007-10-13 23:50 UTC (permalink / raw)
To: buildroot
Set BR2_INET_RPC dependency for nfs-utils and portmap:
Index: package/nfs-utils/Config.in
===================================================================
--- package/nfs-utils/Config.in (revision 20237)
+++ package/nfs-utils/Config.in (working copy)
@@ -1,6 +1,7 @@
config BR2_PACKAGE_NFS_UTILS
bool "nfs-utils"
default n
+ depends on BR2_INET_RPC
help
The NFS Linux kernel server.
Warning: We do not force largefile support on here on purpose.
Index: package/portmap/Config.in
===================================================================
--- package/portmap/Config.in (revision 20237)
+++ package/portmap/Config.in (working copy)
@@ -1,6 +1,7 @@
config BR2_PACKAGE_PORTMAP
bool "portmap"
default n
+ depends on BR2_INET_RPC
help
The standard portmapper for RPC services.
Best regards,
Ivan
--------------------------------
Embedded Linux engineer,
Promwad Company: http://www.promwad.com/
Homepage : http://www.ivankuten.com/
--------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread* [Buildroot] PATCH: set BR2_INET_RPC dependency for nfs-utils and portmap 2007-10-13 23:50 [Buildroot] PATCH: set BR2_INET_RPC dependency for nfs-utils and portmap Ivan Kuten @ 2007-10-14 9:30 ` Yann E. MORIN 2007-10-14 12:35 ` Ivan Kuten 0 siblings, 1 reply; 4+ messages in thread From: Yann E. MORIN @ 2007-10-14 9:30 UTC (permalink / raw) To: buildroot On Sunday 14 October 2007 01:50:32 Ivan Kuten wrote: > Set BR2_INET_RPC dependency for nfs-utils and portmap: We had the same issue in BusyBox, and solved it the other way around: have tools needing RPC do a 'select' on RPC, such as (this is not a patch!): ---8<--- Index: package/nfs-utils/Config.in =================================================================== --- package/nfs-utils/Config.in (revision 20237) +++ package/nfs-utils/Config.in (working copy) @@ -1,6 +1,7 @@ config BR2_PACKAGE_NFS_UTILS bool "nfs-utils" default n + select BR2_INET_RPC help The NFS Linux kernel server. Warning: We do not force largefile support on here on purpose. Index: package/portmap/Config.in =================================================================== --- package/portmap/Config.in (revision 20237) +++ package/portmap/Config.in (working copy) @@ -1,6 +1,7 @@ config BR2_PACKAGE_PORTMAP bool "portmap" default n + select BR2_INET_RPC help The standard portmapper for RPC services. ---8<--- This is, imho, better this way because what people really want is NFS or portmap, and might not know that RPC is needed to make those two available. Having NFS and portmap visible and 'select' the needed RPC support is more straightforward. But again, this is my humble opinion. Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +0/33 662376056 | Software Designer | \ / CAMPAIGN | ^ | | --==< ?_? >==-- ?------------.-------: X AGAINST | /e\ There is no | | http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL | """ conspiracy. | ?------------------------------?-------?------------------?--------------------? ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] PATCH: set BR2_INET_RPC dependency for nfs-utils and portmap 2007-10-14 9:30 ` Yann E. MORIN @ 2007-10-14 12:35 ` Ivan Kuten 2007-10-15 21:39 ` Ulf Samuelsson 0 siblings, 1 reply; 4+ messages in thread From: Ivan Kuten @ 2007-10-14 12:35 UTC (permalink / raw) To: buildroot Yann E. MORIN wrote: > On Sunday 14 October 2007 01:50:32 Ivan Kuten wrote: >> Set BR2_INET_RPC dependency for nfs-utils and portmap: > > We had the same issue in BusyBox, and solved it the other way around: have > tools needing RPC do a 'select' on RPC, such as (this is not a patch!): > > ---8<--- > Index: package/nfs-utils/Config.in > =================================================================== > --- package/nfs-utils/Config.in (revision 20237) > +++ package/nfs-utils/Config.in (working copy) > @@ -1,6 +1,7 @@ > config BR2_PACKAGE_NFS_UTILS > bool "nfs-utils" > default n > + select BR2_INET_RPC > help > The NFS Linux kernel server. > Warning: We do not force largefile support on here on purpose. > Index: package/portmap/Config.in > =================================================================== > --- package/portmap/Config.in (revision 20237) > +++ package/portmap/Config.in (working copy) > @@ -1,6 +1,7 @@ > config BR2_PACKAGE_PORTMAP > bool "portmap" > default n > + select BR2_INET_RPC > help > The standard portmapper for RPC services. > > ---8<--- > > This is, imho, better this way because what people really want is NFS or > portmap, and might not know that RPC is needed to make those two available. > > Having NFS and portmap visible and 'select' the needed RPC support is more > straightforward. But again, this is my humble opinion. > Hello Yann, I completely agree with you, your approach is better. BR, Ivan ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] PATCH: set BR2_INET_RPC dependency for nfs-utils and portmap 2007-10-14 12:35 ` Ivan Kuten @ 2007-10-15 21:39 ` Ulf Samuelsson 0 siblings, 0 replies; 4+ messages in thread From: Ulf Samuelsson @ 2007-10-15 21:39 UTC (permalink / raw) To: buildroot ----- Original Message ----- From: "Ivan Kuten" <ivan.kuten@promwad.com> To: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> Cc: <buildroot@uclibc.org> Sent: Sunday, October 14, 2007 2:35 PM Subject: Re: [Buildroot] PATCH: set BR2_INET_RPC dependency for nfs-utils and portmap > Yann E. MORIN wrote: >> On Sunday 14 October 2007 01:50:32 Ivan Kuten wrote: >>> Set BR2_INET_RPC dependency for nfs-utils and portmap: >> >> We had the same issue in BusyBox, and solved it the other way around: >> have >> tools needing RPC do a 'select' on RPC, such as (this is not a patch!): >> >> ---8<--- >> Index: package/nfs-utils/Config.in >> =================================================================== >> --- package/nfs-utils/Config.in (revision 20237) >> +++ package/nfs-utils/Config.in (working copy) >> @@ -1,6 +1,7 @@ >> config BR2_PACKAGE_NFS_UTILS >> bool "nfs-utils" >> default n >> + select BR2_INET_RPC >> help >> The NFS Linux kernel server. >> Warning: We do not force largefile support on here on purpose. >> Index: package/portmap/Config.in >> =================================================================== >> --- package/portmap/Config.in (revision 20237) >> +++ package/portmap/Config.in (working copy) >> @@ -1,6 +1,7 @@ >> config BR2_PACKAGE_PORTMAP >> bool "portmap" >> default n >> + select BR2_INET_RPC >> help >> The standard portmapper for RPC services. >> >> ---8<--- >> >> This is, imho, better this way because what people really want is NFS or >> portmap, and might not know that RPC is needed to make those two >> available. >> >> Having NFS and portmap visible and 'select' the needed RPC support is >> more >> straightforward. But again, this is my humble opinion. >> > > Hello Yann, > > I completely agree with you, your approach is better. > > BR, > Ivan > Isn't RPC a toolchain option? What happens if you 1) build your toolchain with a roofs consisting of busybox alone. 2) enable the NFS and/or other things requiring options which is not supported by the previously built toolchain. You will then get an error... I am not so sure that it is a good idea to have the toolchain and the rootfs in the same ".config" file. If they were separate, then you could every time you did a make: 1) Create a file containing the parameters required by the packages. 2) Compare that file with the file containing the parameter values used to build the toolchain. If the first file has requirements, not met by the toolchain, then the new parameters should be copied to the toolchain/.config and the toolchain should be rebuilt. Kconfig is really not ideal. I would have loved to have a config system which "grayed out" packages which cannot be built using the current toolchain. They should still be selectable, but it should be obvious to the user, that the toolchain will be rebuilt, it this package is chosen. Best Regards Ulf Samuelsson ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-10-15 21:39 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-10-13 23:50 [Buildroot] PATCH: set BR2_INET_RPC dependency for nfs-utils and portmap Ivan Kuten 2007-10-14 9:30 ` Yann E. MORIN 2007-10-14 12:35 ` Ivan Kuten 2007-10-15 21:39 ` Ulf Samuelsson
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox