[Lunar-bugs] [bug] kino - kino-jogshuttle and usb.usermap placement

lunar-bugs at lunar-linux.org lunar-bugs at lunar-linux.org
Thu Mar 3 18:34:55 UTC 2005


I've seen :

	kino.spec:89:mv %{buildroot}/usr/etc/hotplug/usb/kino-jogshuttle

and

	linux-hotplug/Makefile:132:hotplugscriptdir = /usr/etc/hotplug/usb

that came from :

	linux-hotplug/Makefile.in:132:hotplugscriptdir = @hotplugscriptdir@

Because we have :

	configure.in:295:    hotplugscriptdir="${prefix}/etc/hotplug/usb"

and :

	config.log:1085:prefix='/usr'

the file ends in the wrong dir...

The correct variable setting in configure.in should have be

	hotplugscriptdir="${sysconfdir}/hotplug/usb"

Thus this patch

--- configure.in        2004-04-10 16:22:07.000000000 +0200
+++ configure.in.fixed  2005-03-03 19:32:49.616047540 +0100
@@ -292,7 +292,7 @@
     hotplugscriptdir="${with_hotplug_script_dir}"
     AC_MSG_RESULT([${hotplugscriptdir}])
 else # start at docdir
-    hotplugscriptdir="${prefix}/etc/hotplug/usb"
+    hotplugscriptdir="${sysconfdir}/hotplug/usb"
     AC_MSG_RESULT([${hotplugscriptdir} (default)])
 fi
 AC_SUBST(hotplugscriptdir)
@@ -304,7 +304,7 @@
     hotplugusermapdir="${with_hotplug_usermap_dir}"
     AC_MSG_RESULT([${hotplugusermapdir}])
 else # start at docdir
-    hotplugusermapdir="${prefix}/lib/hotplug/kino"
+    hotplugusermapdir="${sysconfdir}/hotplug/kino"
     AC_MSG_RESULT([${hotplugusermapdir} (default)])
 fi
 AC_SUBST(hotplugusermapdir)



But you must know whereas it was intended or not by the package... I'm on Kino
ML, if you want I can ask...

Couannette



lunar-bugs at lunar-linux.org a écrit :
> Project:      lunar-linux
> ID:           Version:      <none>
> Component:    moonbase (modules)
> Category:     bug reports
> Priority:     normal
> Assigned to:  <unassigned>
> Reported by:  dveatch
> Updated by:   dveatch
> Status:       active
> Attachment:   http://lunar-linux.org/files/issues/kino-0.7.1.bz2 (5.37 KB)
> 
> The BUILD specifies;
> 
> "--sysconfdir=/etc"
> but the install places "kino-jogshuttle" in;
> 
> "/usr/etc/hotplug/usb"
> instead of
> "/etc/hotplug/usb"
> and puts "usb.usermap" in;
> 
> "/usr/lib/hotplug/kino"
> instead of;
> 
> "/etc/hotplug/kino"
> 
> Actually I think the later should be appended to any exiting
> usb.usermap that may be present in /etc/hotplug
> 
> The BUILD;
> 
> 
> (
> 
>  ./configure  --sysconfdir=/etc        \
>               --prefix=/usr            \
>               --mandir=/usr/share/man  \
>            --localstatedir=/var     \
>            $OPTS                    &&
> 
>  sedit "s/CFLAGS = -O2/CFLAGS = $CFLAGS/" Makefile       &&
>  sedit "s/CXXFLAGS = -O2/CXXFLAGS = $CXXFLAGS/" Makefile &&
> 
>  default_make
> 
> ) > $C_FIFO 2>&1
> 
> I cannot seem to figure out why this is happening.
> 
> 
> dveatch
> 


More information about the Lunar-bugs mailing list