linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] automatically install correct initscript
@ 2004-03-02  0:46 Robert Love
  2004-03-02  1:04 ` Kay Sievers
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Robert Love @ 2004-03-02  0:46 UTC (permalink / raw)
  To: linux-hotplug

Here we go.

Should work, for SuSE, Red Hat, and Debian - albeit I didn't test it
much :-)

	Robert Love


 Makefile |   11 ++++++++++-
 TODO     |    1 - 
 2 files changed, 10 insertions(+), 2 deletions(-)

diff -urN udev-019/Makefile udev/Makefile
--- udev-019/Makefile	2004-02-27 20:11:47.000000000 -0500
+++ udev/Makefile	2004-03-01 19:45:06.974024600 -0500
@@ -341,6 +341,15 @@
 	-
 endif
 
+install-initscript: etc/init.d/udev etc/init.d/udev.debian etc/init.d/udev.init.LSB
+	@if [ -f /etc/redhat-release ]; then \
+		$(INSTALL_DATA) etc/init.d/udev $(etcdir)/init.d/udev; \
+	elif [ -f /etc/SuSE-release ]; then \
+		$(INSTALL_DATA) etc/init.d/udev.init.LSB $(etcdir)/init.d/udev; \
+	elif [ -f /etc/debian_version ]; then \
+		$(INSTALL_DATA) etc/init.d/udev.debian $(etcdir)/init.d/udev; \
+	fi
+
 install-config: $(GEN_CONFIGS)
 	$(INSTALL) -d $(DESTDIR)$(configdir)
 	@if [ ! -r $(DESTDIR)$(configdir)udev.conf ]; then \
@@ -356,7 +365,7 @@
 		$(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.permissions $(DESTDIR)$(configdir); \
 	fi
 
-install: install-config install-dbus-policy all
+install: install-initscript install-config install-dbus-policy all
 	$(INSTALL) -d $(DESTDIR)$(udevdir)
 	$(INSTALL) -d $(DESTDIR)$(hotplugdir)
 	$(INSTALL_PROGRAM) -D $(ROOT) $(DESTDIR)$(sbindir)/$(ROOT)
diff -urN udev-019/TODO udev/TODO
--- udev-019/TODO	2004-03-01 19:44:47.457991488 -0500
+++ udev/TODO	2004-03-01 19:44:38.682325592 -0500
@@ -7,7 +7,6 @@
 
 
 - more documentation (can never have too much.)
-- install the proper init.d script based on the distro we are running on.
 - persuade the distro packagers to submit their changes (or just steal them
   if we can find them...)
 - create kernel name to devfs name config file so that all of the devfs users




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [patch] automatically install correct initscript
  2004-03-02  0:46 [patch] automatically install correct initscript Robert Love
@ 2004-03-02  1:04 ` Kay Sievers
  2004-03-02  1:08 ` Robert Love
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Kay Sievers @ 2004-03-02  1:04 UTC (permalink / raw)
  To: linux-hotplug

On Tue, 2004-03-02 at 01:46, Robert Love wrote:
> Here we go.
> 
> Should work, for SuSE, Red Hat, and Debian - albeit I didn't test it
> much :-)

Seems that line 380 of the Makefile doesn't play with you :)

Kay



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [patch] automatically install correct initscript
  2004-03-02  0:46 [patch] automatically install correct initscript Robert Love
  2004-03-02  1:04 ` Kay Sievers
@ 2004-03-02  1:08 ` Robert Love
  2004-03-02  1:14 ` Kay Sievers
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Robert Love @ 2004-03-02  1:08 UTC (permalink / raw)
  To: linux-hotplug

On Mon, 2004-03-01 at 20:04, Kay Sievers wrote:

> Seems that line 380 of the Makefile doesn't play with you :)

Ack, I did not even see that!  Thanks.

Let's rip that out, and always use the new built-in logic to determine
what initscript to install.

	Robert Love


 Makefile |   17 ++++++++++-------
 TODO     |    1 -
 2 files changed, 10 insertions(+), 8 deletions(-)

diff -urN udev-019/Makefile udev/Makefile
--- udev-019/Makefile	2004-02-27 20:11:47.000000000 -0500
+++ udev/Makefile	2004-03-01 20:07:20.509296424 -0500
@@ -341,6 +341,15 @@
 	-
 endif
 
+install-initscript: etc/init.d/udev etc/init.d/udev.debian etc/init.d/udev.init.LSB
+	@if [ -f /etc/redhat-release ]; then \
+		$(INSTALL_DATA) etc/init.d/udev $(etcdir)/init.d/udev; \
+	elif [ -f /etc/SuSE-release ]; then \
+		$(INSTALL_DATA) etc/init.d/udev.init.LSB $(etcdir)/init.d/udev; \
+	elif [ -f /etc/debian_version ]; then \
+		$(INSTALL_DATA) etc/init.d/udev.debian $(etcdir)/init.d/udev; \
+	fi
+
 install-config: $(GEN_CONFIGS)
 	$(INSTALL) -d $(DESTDIR)$(configdir)
 	@if [ ! -r $(DESTDIR)$(configdir)udev.conf ]; then \
@@ -356,7 +365,7 @@
 		$(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.permissions $(DESTDIR)$(configdir); \
 	fi
 
-install: install-config install-dbus-policy all
+install: install-initscript install-config install-dbus-policy all
 	$(INSTALL) -d $(DESTDIR)$(udevdir)
 	$(INSTALL) -d $(DESTDIR)$(hotplugdir)
 	$(INSTALL_PROGRAM) -D $(ROOT) $(DESTDIR)$(sbindir)/$(ROOT)
@@ -364,12 +373,6 @@
 	$(INSTALL_PROGRAM) -D $(SENDER) $(DESTDIR)$(sbindir)/$(SENDER)
 	$(INSTALL_PROGRAM) -D $(HELPER) $(DESTDIR)$(sbindir)/$(HELPER)
 	$(INSTALL_PROGRAM) -D $(TESTER) $(DESTDIR)$(sbindir)/$(TESTER)
-	@if [ "x$(USE_LSB)" = "xtrue" ]; then \
-		$(INSTALL_PROGRAM) -D etc/init.d/udev.init.LSB $(DESTDIR)$(initdir)/udev; \
-		ln -s $(DESTDIR)$(initdir)/udev $(sbindir)/rcudev; \
-	else \
-		$(INSTALL_PROGRAM) -D etc/init.d/udev $(DESTDIR)$(initdir)/udev; \
-	fi
 	$(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
 	$(INSTALL_DATA) -D udevinfo.8 $(DESTDIR)$(mandir)/man8/udevinfo.8
 	$(INSTALL_DATA) -D udevd.8 $(DESTDIR)$(mandir)/man8/udevd.8
diff -urN udev-019/TODO udev/TODO
--- udev-019/TODO	2004-03-01 19:44:47.457991488 -0500
+++ udev/TODO	2004-03-01 19:44:38.682325592 -0500
@@ -7,7 +7,6 @@
 
 
 - more documentation (can never have too much.)
-- install the proper init.d script based on the distro we are running on.
 - persuade the distro packagers to submit their changes (or just steal them
   if we can find them...)
 - create kernel name to devfs name config file so that all of the devfs users




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [patch] automatically install correct initscript
  2004-03-02  0:46 [patch] automatically install correct initscript Robert Love
  2004-03-02  1:04 ` Kay Sievers
  2004-03-02  1:08 ` Robert Love
@ 2004-03-02  1:14 ` Kay Sievers
  2004-03-02  1:23 ` Robert Love
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Kay Sievers @ 2004-03-02  1:14 UTC (permalink / raw)
  To: linux-hotplug

On Tue, 2004-03-02 at 02:08, Robert Love wrote:
> On Mon, 2004-03-01 at 20:04, Kay Sievers wrote:
> 
> > Seems that line 380 of the Makefile doesn't play with you :)
> 
> Ack, I did not even see that!  Thanks.
> 
> Let's rip that out, and always use the new built-in logic to determine
> what initscript to install.

Yes, it's fine now.
Hmm, whats left? TODO is almost empty for what I'm capable of :)

thanks,
Kay



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [patch] automatically install correct initscript
  2004-03-02  0:46 [patch] automatically install correct initscript Robert Love
                   ` (2 preceding siblings ...)
  2004-03-02  1:14 ` Kay Sievers
@ 2004-03-02  1:23 ` Robert Love
  2004-03-02 20:28 ` Greg KH
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Robert Love @ 2004-03-02  1:23 UTC (permalink / raw)
  To: linux-hotplug

On Mon, 2004-03-01 at 20:08, Robert Love wrote:

> Ack, I did not even see that!  Thanks.
> 
> Let's rip that out, and always use the new built-in logic to determine
> what initscript to install.

Hm, looks like we do not need the %{lsb} and USE_LSB logic at all,
anymore.

Here is the patch, updated, removing both completely.

	Robert Love


 Makefile  |   17 ++++++++++-------
 TODO      |    1 - 
 udev.spec |   10 ----------
 3 files changed, 10 insertions(+), 18 deletions(-)

diff -urN udev-019/Makefile udev/Makefile
--- udev-019/Makefile	2004-02-27 20:11:47.000000000 -0500
+++ udev/Makefile	2004-03-01 20:07:20.509296424 -0500
@@ -341,6 +341,15 @@
 	-
 endif
 
+install-initscript: etc/init.d/udev etc/init.d/udev.debian etc/init.d/udev.init.LSB
+	@if [ -f /etc/redhat-release ]; then \
+		$(INSTALL_DATA) etc/init.d/udev $(etcdir)/init.d/udev; \
+	elif [ -f /etc/SuSE-release ]; then \
+		$(INSTALL_DATA) etc/init.d/udev.init.LSB $(etcdir)/init.d/udev; \
+	elif [ -f /etc/debian_version ]; then \
+		$(INSTALL_DATA) etc/init.d/udev.debian $(etcdir)/init.d/udev; \
+	fi
+
 install-config: $(GEN_CONFIGS)
 	$(INSTALL) -d $(DESTDIR)$(configdir)
 	@if [ ! -r $(DESTDIR)$(configdir)udev.conf ]; then \
@@ -356,7 +365,7 @@
 		$(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.permissions $(DESTDIR)$(configdir); \
 	fi
 
-install: install-config install-dbus-policy all
+install: install-initscript install-config install-dbus-policy all
 	$(INSTALL) -d $(DESTDIR)$(udevdir)
 	$(INSTALL) -d $(DESTDIR)$(hotplugdir)
 	$(INSTALL_PROGRAM) -D $(ROOT) $(DESTDIR)$(sbindir)/$(ROOT)
@@ -364,12 +373,6 @@
 	$(INSTALL_PROGRAM) -D $(SENDER) $(DESTDIR)$(sbindir)/$(SENDER)
 	$(INSTALL_PROGRAM) -D $(HELPER) $(DESTDIR)$(sbindir)/$(HELPER)
 	$(INSTALL_PROGRAM) -D $(TESTER) $(DESTDIR)$(sbindir)/$(TESTER)
-	@if [ "x$(USE_LSB)" = "xtrue" ]; then \
-		$(INSTALL_PROGRAM) -D etc/init.d/udev.init.LSB $(DESTDIR)$(initdir)/udev; \
-		ln -s $(DESTDIR)$(initdir)/udev $(sbindir)/rcudev; \
-	else \
-		$(INSTALL_PROGRAM) -D etc/init.d/udev $(DESTDIR)$(initdir)/udev; \
-	fi
 	$(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
 	$(INSTALL_DATA) -D udevinfo.8 $(DESTDIR)$(mandir)/man8/udevinfo.8
 	$(INSTALL_DATA) -D udevd.8 $(DESTDIR)$(mandir)/man8/udevd.8
diff -urN udev-019/TODO udev/TODO
--- udev-019/TODO	2004-03-01 19:44:47.457991488 -0500
+++ udev/TODO	2004-03-01 19:44:38.682325592 -0500
@@ -7,7 +7,6 @@
 
 
 - more documentation (can never have too much.)
-- install the proper init.d script based on the distro we are running on.
 - persuade the distro packagers to submit their changes (or just steal them
   if we can find them...)
 - create kernel name to devfs name config file so that all of the devfs users
diff -urN udev-019/udev.spec udev/udev.spec
--- udev-019/udev.spec	2004-02-27 20:11:47.000000000 -0500
+++ udev/udev.spec	2004-03-01 20:22:36.516042232 -0500
@@ -27,11 +27,6 @@
 # 1 - debugging enabled
 %define debug 0
 
-# if we want to use the LSB version of the init script or the Redhat one
-# 0 - use Redhat: etc/init.d/udev
-# 1 - use LSB: etc/init.d/udev.init.LSB
-%define lsb 0
-
 # if we want to build the scsi_id "extra" package or not
 # 0 - do not build the package
 # 1 - build it
@@ -100,11 +95,6 @@
 %else
 	USE_SELINUXúlse	\
 %endif
-%if %{lsb}
-	USE_LSB=true		\
-%else
-	USE_LSBúlse		\
-%endif
 	EXTRAS="	\
 %if %{scsi_id}
 	extras/scsi_id	\




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [patch] automatically install correct initscript
  2004-03-02  0:46 [patch] automatically install correct initscript Robert Love
                   ` (3 preceding siblings ...)
  2004-03-02  1:23 ` Robert Love
@ 2004-03-02 20:28 ` Greg KH
  2004-03-03 18:46 ` Chris Larson
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Greg KH @ 2004-03-02 20:28 UTC (permalink / raw)
  To: linux-hotplug

On Mon, Mar 01, 2004 at 08:23:23PM -0500, Robert Love wrote:
> On Mon, 2004-03-01 at 20:08, Robert Love wrote:
> 
> > Ack, I did not even see that!  Thanks.
> > 
> > Let's rip that out, and always use the new built-in logic to determine
> > what initscript to install.
> 
> Hm, looks like we do not need the %{lsb} and USE_LSB logic at all,
> anymore.
> 
> Here is the patch, updated, removing both completely.

Looks great, thanks for it.

Applied,

greg k-h


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [patch] automatically install correct initscript
  2004-03-02  0:46 [patch] automatically install correct initscript Robert Love
                   ` (4 preceding siblings ...)
  2004-03-02 20:28 ` Greg KH
@ 2004-03-03 18:46 ` Chris Larson
  2004-03-03 19:10 ` Greg KH
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Chris Larson @ 2004-03-03 18:46 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 1275 bytes --]

* Robert Love (rml@ximian.com) wrote:
> On Mon, 2004-03-01 at 20:08, Robert Love wrote:
> 
> > Ack, I did not even see that!  Thanks.
> > 
> > Let's rip that out, and always use the new built-in logic to determine
> > what initscript to install.
> 
> Hm, looks like we do not need the %{lsb} and USE_LSB logic at all,
> anymore.
> 
> Here is the patch, updated, removing both completely.
[snip]
> +	@if [ -f /etc/redhat-release ]; then \
> +		$(INSTALL_DATA) etc/init.d/udev $(etcdir)/init.d/udev; \
> +	elif [ -f /etc/SuSE-release ]; then \
> +		$(INSTALL_DATA) etc/init.d/udev.init.LSB $(etcdir)/init.d/udev; \
> +	elif [ -f /etc/debian_version ]; then \
> +		$(INSTALL_DATA) etc/init.d/udev.debian $(etcdir)/init.d/udev; \
> +	fi
[snip]

	Speaking as a package and distribution maintainer and all around CM and
build guy, there are two problems I feel the need to point out.  First,
you're installing into $(etcdir) directly.  Bad, Bad, Bad.  -always-
obey DESTDIR.  -always-.  Second, the distro I'm installing into isn't
necessarily the distro I'm building on.  Any opposition to making the
tests obey DESTDIR as well?
--
Chris Larson - kergoth at handhelds dot org
Embedded Linux Developer - clarson at ti dot com
OpenZaurus Project Maintainer - http://openzaurus.org/

[-- Attachment #2: fix-initscriptinstall-destdir.patch --]
[-- Type: text/plain, Size: 1077 bytes --]


#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#

--- udev-019/Makefile~fix-initscriptinstall-destdir	2004-03-03 03:41:41.000000000 -0500
+++ udev-019/Makefile	2004-03-03 03:43:16.000000000 -0500
@@ -342,12 +342,12 @@
 endif
 
 install-initscript: etc/init.d/udev etc/init.d/udev.debian etc/init.d/udev.init.LSB
-	@if [ -f /etc/redhat-release ]; then \
-		$(INSTALL_DATA) etc/init.d/udev $(etcdir)/init.d/udev; \
-	elif [ -f /etc/SuSE-release ]; then \
-		$(INSTALL_DATA) etc/init.d/udev.init.LSB $(etcdir)/init.d/udev; \
-	elif [ -f /etc/debian_version ]; then \
-		$(INSTALL_DATA) etc/init.d/udev.debian $(etcdir)/init.d/udev; \
+	@if [ -f $(DESTDIR)/etc/redhat-release ]; then \
+		$(INSTALL_DATA) etc/init.d/udev $(DESTDIR)$(etcdir)/init.d/udev; \
+	elif [ -f $(DESTDIR)/etc/SuSE-release ]; then \
+		$(INSTALL_DATA) etc/init.d/udev.init.LSB $(DESTDIR)$(etcdir)/init.d/udev; \
+	elif [ -f $(DESTDIR)/etc/debian_version ]; then \
+		$(INSTALL_DATA) etc/init.d/udev.debian $(DESTDIR)$(etcdir)/init.d/udev; \
 	fi
 
 install-config: $(GEN_CONFIGS)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [patch] automatically install correct initscript
  2004-03-02  0:46 [patch] automatically install correct initscript Robert Love
                   ` (5 preceding siblings ...)
  2004-03-03 18:46 ` Chris Larson
@ 2004-03-03 19:10 ` Greg KH
  2004-03-03 19:21 ` Chris Larson
  2004-03-03 19:36 ` Greg KH
  8 siblings, 0 replies; 10+ messages in thread
From: Greg KH @ 2004-03-03 19:10 UTC (permalink / raw)
  To: linux-hotplug

On Wed, Mar 03, 2004 at 12:46:08PM -0600, Chris Larson wrote:
> 	Speaking as a package and distribution maintainer and all around CM and
> build guy, there are two problems I feel the need to point out.  First,
> you're installing into $(etcdir) directly.  Bad, Bad, Bad.  -always-
> obey DESTDIR.  -always-.  Second, the distro I'm installing into isn't
> necessarily the distro I'm building on.  Any opposition to making the
> tests obey DESTDIR as well?

I already made this change in the 021 release.

As for the cross-distro install issue, do you have any suggestions?

thanks,

greg k-h


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [patch] automatically install correct initscript
  2004-03-02  0:46 [patch] automatically install correct initscript Robert Love
                   ` (6 preceding siblings ...)
  2004-03-03 19:10 ` Greg KH
@ 2004-03-03 19:21 ` Chris Larson
  2004-03-03 19:36 ` Greg KH
  8 siblings, 0 replies; 10+ messages in thread
From: Chris Larson @ 2004-03-03 19:21 UTC (permalink / raw)
  To: linux-hotplug

* Greg KH (greg@kroah.com) wrote:
> On Wed, Mar 03, 2004 at 12:46:08PM -0600, Chris Larson wrote:
> > 	Speaking as a package and distribution maintainer and all around CM and
> > build guy, there are two problems I feel the need to point out.  First,
> > you're installing into $(etcdir) directly.  Bad, Bad, Bad.  -always-
> > obey DESTDIR.  -always-.  Second, the distro I'm installing into isn't
> > necessarily the distro I'm building on.  Any opposition to making the
> > tests obey DESTDIR as well?
> 
> I already made this change in the 021 release.

Oh good, glad to hear it.

> As for the cross-distro install issue, do you have any suggestions?

Well, how about something as simple as using a makefile variable that
contains the name of the initscript to be installed, so that it can be
easily overridden by those building it?
--
Chris Larson - kergoth at handhelds dot org
Embedded Linux Developer - clarson at ti dot com
OpenZaurus Project Maintainer - http://openzaurus.org/


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [patch] automatically install correct initscript
  2004-03-02  0:46 [patch] automatically install correct initscript Robert Love
                   ` (7 preceding siblings ...)
  2004-03-03 19:21 ` Chris Larson
@ 2004-03-03 19:36 ` Greg KH
  8 siblings, 0 replies; 10+ messages in thread
From: Greg KH @ 2004-03-03 19:36 UTC (permalink / raw)
  To: linux-hotplug

On Wed, Mar 03, 2004 at 01:21:34PM -0600, Chris Larson wrote:
> * Greg KH (greg@kroah.com) wrote:
> > On Wed, Mar 03, 2004 at 12:46:08PM -0600, Chris Larson wrote:
> > > 	Speaking as a package and distribution maintainer and all around CM and
> > > build guy, there are two problems I feel the need to point out.  First,
> > > you're installing into $(etcdir) directly.  Bad, Bad, Bad.  -always-
> > > obey DESTDIR.  -always-.  Second, the distro I'm installing into isn't
> > > necessarily the distro I'm building on.  Any opposition to making the
> > > tests obey DESTDIR as well?
> > 
> > I already made this change in the 021 release.
> 
> Oh good, glad to hear it.
> 
> > As for the cross-distro install issue, do you have any suggestions?
> 
> Well, how about something as simple as using a makefile variable that
> contains the name of the initscript to be installed, so that it can be
> easily overridden by those building it?

Sounds good to me, care to write a patch?  :)

thanks,

greg k-h


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-03-03 19:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-02  0:46 [patch] automatically install correct initscript Robert Love
2004-03-02  1:04 ` Kay Sievers
2004-03-02  1:08 ` Robert Love
2004-03-02  1:14 ` Kay Sievers
2004-03-02  1:23 ` Robert Love
2004-03-02 20:28 ` Greg KH
2004-03-03 18:46 ` Chris Larson
2004-03-03 19:10 ` Greg KH
2004-03-03 19:21 ` Chris Larson
2004-03-03 19:36 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).