From MAILER-DAEMON Thu Dec 13 23:58:41 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TjNM9-0001mQ-IO
	for mharc-gpsd-dev@gnu.org; Thu, 13 Dec 2012 23:58:41 -0500
Received: from eggs.gnu.org ([208.118.235.92]:34107)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <maciej.grela@gmail.com>) id 1TjJC5-0007OF-IS
	for gpsd-dev@nongnu.org; Thu, 13 Dec 2012 19:32:02 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <maciej.grela@gmail.com>) id 1TjJC4-00037x-KF
	for gpsd-dev@nongnu.org; Thu, 13 Dec 2012 19:32:01 -0500
Received: from mail-vc0-f173.google.com ([209.85.220.173]:44335)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <maciej.grela@gmail.com>) id 1TjJC4-00037t-Fr
	for gpsd-dev@nongnu.org; Thu, 13 Dec 2012 19:32:00 -0500
Received: by mail-vc0-f173.google.com with SMTP id f13so3355399vcb.4
	for <gpsd-dev@nongnu.org>; Thu, 13 Dec 2012 16:31:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=e5Dr8qwpLp8eeULYafSLQROr0Vq6QSmVNs4DALBhMZE=;
	b=gFeLHl9EyX7sXEem4clHBI+e53ZcErEFT5OF5F3tYAljALrirKp/w/Bgi2pfOBYgIS
	WSd6uEG24lQUzKNKtNqOxwBy9KARqxGTUPEDrCDB0NuPApn8iU+y3wb9e0tOxTswdfi/
	f7/kuvgjHUdTZgdpZ/Y9018DnvwK0uVlUbrMrcf4zqXqkKcz4hEVaihzOi28PSQi4vX5
	kjEWJTsG0EhgocAawecVJbQcXNa0/VfKlQcJnw9o8uxZ72bIBvu/c4IJT9P0tozs4UXA
	Jeh7RtneGnNdoCkNrVTb6Vx5HGZQ4qPvBjXO6GFNnMqzVU8U8mU/8g62DPLs1TquszvY
	C2og==
MIME-Version: 1.0
Received: by 10.59.5.229 with SMTP id cp5mr6805776ved.32.1355445119864; Thu,
	13 Dec 2012 16:31:59 -0800 (PST)
Received: by 10.58.245.200 with HTTP; Thu, 13 Dec 2012 16:31:59 -0800 (PST)
Date: Fri, 14 Dec 2012 00:31:59 +0000
Message-ID: <CABvrX2W2XyfEDQeiKeychm-9FJzF=eM=3nomsTcz1ucKS8RCvQ@mail.gmail.com>
From: Maciej Grela <maciej.grela@gmail.com>
To: gpsd-dev@nongnu.org
Content-Type: text/plain; charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.85.220.173
X-Mailman-Approved-At: Thu, 13 Dec 2012 23:58:40 -0500
Subject: [gpsd-dev] [PATCH] Put udev rules in libdir and not always in /lib
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Dec 2012 00:32:02 -0000

Hi,

I've developed a patch for gpsd which improves the way that udev rules
are installed - they are put in libdir and not always in /lib. This
fixes build errors of gpsd on source-based distributions like Exherbo
which don't allow a package to install a plain /lib directory if /lib
is a symlink to /lib64. By using libdir this issue is resolved - if
the build script tells scons to use lib64 as the library destination,
the udev rules also end up there.

--- gpsd-3.7.orig/SConstruct    2012-07-02 22:48:16.000000000 +0000
+++ gpsd-3.7/SConstruct 2012-12-14 01:25:40.823098941 +0000
@@ -1631,15 +1631,15 @@ if env['python']:
 # is plugged in.

 Utility('udev-install', 'install', [
-    'mkdir -p ' + DESTDIR + '/lib/udev/rules.d',
-    'cp $SRCDIR/gpsd.rules ' + DESTDIR + '/lib/udev/rules.d/25-gpsd.rules',
-    'cp $SRCDIR/gpsd.hotplug ' + DESTDIR + '/lib/udev/',
-    'chmod a+x ' + DESTDIR + '/lib/udev/gpsd.hotplug',
+    'mkdir -p ' + installdir('libdir', True) + '/udev/rules.d',
+    'cp $SRCDIR/gpsd.rules ' + installdir('libdir', True) +
'/udev/rules.d/25-gpsd.rules',
+    'cp $SRCDIR/gpsd.hotplug ' + installdir('libdir', True) + '/udev/',
+    'chmod a+x ' + installdir('libdir', True) + '/udev/gpsd.hotplug',
         ])

 Utility('udev-uninstall', '', [
-    'rm -f /lib/udev/gpsd.hotplug',
-    'rm -f /lib/udev/rules.d/25-gpsd.rules',
+    'rm -f ' + installdir('libdir', True) + "/gpsd.hotplug",
+    'rm -f ' + installdir('libdir', True) + '/udev/rules.d/25-gpsd.rules',
         ])

 Utility('udev-test', '', [

Will you consider including this change to the gpsd source?

Regards,
Maciej Grela


From MAILER-DAEMON Sat Dec 15 20:20:35 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tk2uB-0004Ic-N1
	for mharc-gpsd-dev@gnu.org; Sat, 15 Dec 2012 20:20:35 -0500
Received: from eggs.gnu.org ([208.118.235.92]:53410)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vapier@gentoo.org>) id 1Tk2u9-0004Hd-AH
	for gpsd-dev@nongnu.org; Sat, 15 Dec 2012 20:20:34 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <vapier@gentoo.org>) id 1Tk2u8-0003GX-Ai
	for gpsd-dev@nongnu.org; Sat, 15 Dec 2012 20:20:33 -0500
Received: from smtp.gentoo.org ([140.211.166.183]:46677)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vapier@gentoo.org>) id 1Tk2u8-0003GG-4S
	for gpsd-dev@nongnu.org; Sat, 15 Dec 2012 20:20:32 -0500
Received: from vapier.localnet (localhost [127.0.0.1])
	by smtp.gentoo.org (Postfix) with ESMTP id 7999433DC72;
	Sun, 16 Dec 2012 01:20:30 +0000 (UTC)
From: Mike Frysinger <vapier@gentoo.org>
Organization: wh0rd.org
To: gpsd-dev@nongnu.org
Date: Sat, 15 Dec 2012 20:21:05 -0500
User-Agent: KMail/1.13.7 (Linux/3.6.5; KDE/4.6.5; x86_64; ; )
References: <CABvrX2W2XyfEDQeiKeychm-9FJzF=eM=3nomsTcz1ucKS8RCvQ@mail.gmail.com>
In-Reply-To: <CABvrX2W2XyfEDQeiKeychm-9FJzF=eM=3nomsTcz1ucKS8RCvQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextPart8497402.geNpqq4IGC";
	protocol="application/pgp-signature"; micalg=pgp-sha1
Content-Transfer-Encoding: 7bit
Message-Id: <201212152021.05840.vapier@gentoo.org>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 140.211.166.183
Subject: Re: [gpsd-dev] [PATCH] Put udev rules in libdir and not always in
	/lib
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 16 Dec 2012 01:20:34 -0000

--nextPart8497402.geNpqq4IGC
Content-Type: Text/Plain;
  charset="utf-8"
Content-Transfer-Encoding: 7bit

On Thursday 13 December 2012 19:31:59 Maciej Grela wrote:
> I've developed a patch for gpsd which improves the way that udev rules
> are installed - they are put in libdir and not always in /lib. This
> fixes build errors of gpsd on source-based distributions like Exherbo
> which don't allow a package to install a plain /lib directory if /lib
> is a symlink to /lib64. By using libdir this issue is resolved - if
> the build script tells scons to use lib64 as the library destination,
> the udev rules also end up there.

err, no, that is incorrect.  the correct way is to query udev's .pc file:
	pkg-config --variable=udevdir udev

although in the case of this SConstruct, it should use env['PKG_CONFIG']
-mike

--nextPart8497402.geNpqq4IGC
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iQIcBAABAgAGBQJQzSIBAAoJEEFjO5/oN/WB6fkQAMBtuNzUuFtuTnUUPZHU737R
e4lAfjUHD/wy2id4iAxtUqMAkiXLUCb80Al3MyCTIkUqprymGpwZkcexFy1qxktl
n1lLIz0lbOxGrZ5SCq3SyVIj6aVmNaoDuK2PMXHQxGpBG7KKdDyxP1+xBgJrB9ii
K+u+5rrPENsAC7Anuvvoy6cApMe+A1gDKDCXp1DDTgyZ0e1/3RNYHddDvNWRUtWP
BVhNiNGUusUiutBgxMetescAL6r+HUvBpBfbn2M5r+TZnc5v2vMEBtBLAlsu5j/g
89oTkyKbtWgZgg8c0IFLmHIHtviXbJscOHjbTmGPt7TIOMtDbtgxG90k78D0xgcp
0x8H7SPCgZ/i0RZSb7hSSmLch06wgIZE50QeSBvk9j6yp1ysYEST/Jt9yPAY1y0C
8dSTdV4UEXXrxtGjRc8k0lzG8aWhbDRqIS84RMT1D2KaUyIMQCxg8T0WUGgk64Cm
/G/VSE+MNXBWiT+a+VQ8B5pTZYY887Xh4fEzIl0nj9qCt2Y4g+9TtMN9AQpMirpx
Xt1zg1+IF8Mb8HPCZ3lPZ/D42TamJGmvqLri4zXqPtcSweP1FhFzkx/ZM6IlqTbL
hm1n++eaNjm0i8VmoxNPICf4mM8UTyTO8Fue8PveoJRV558FOHTVrRofZMxYvYHu
X8J8+bVQjYatuK5k4QIC
=7v3W
-----END PGP SIGNATURE-----

--nextPart8497402.geNpqq4IGC--


From MAILER-DAEMON Sun Dec 16 18:28:08 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TkNcu-0005pV-E3
	for mharc-gpsd-dev@gnu.org; Sun, 16 Dec 2012 18:28:08 -0500
Received: from eggs.gnu.org ([208.118.235.92]:56810)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <maciej.grela@gmail.com>) id 1TkNcr-0005pE-2W
	for gpsd-dev@nongnu.org; Sun, 16 Dec 2012 18:28:07 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <maciej.grela@gmail.com>) id 1TkNco-0000QQ-LA
	for gpsd-dev@nongnu.org; Sun, 16 Dec 2012 18:28:04 -0500
Received: from mail-vb0-f45.google.com ([209.85.212.45]:38342)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <maciej.grela@gmail.com>) id 1TkNco-0000Q0-FP
	for gpsd-dev@nongnu.org; Sun, 16 Dec 2012 18:28:02 -0500
Received: by mail-vb0-f45.google.com with SMTP id p1so6724790vbi.4
	for <gpsd-dev@nongnu.org>; Sun, 16 Dec 2012 15:28:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=SmjofccjkBNF3/DZlyf5BVXLQypAWVTv2FLChKop1yI=;
	b=BPne/46juTmMUbNyFiX2gTY1KC8JqnRkqi+/GJFdSA9ZOdGlG3eiLDhaghwil7tfI5
	Q95w77QohTVJVeFWQt2fCkVM7uB+8dQlhBb2/pWR/mDD8sYz2/AKjTYdqJ9fQA0vuHmH
	SCx+ZWyabCDyesvyg35qNkyssQPEB6FgmJV3Z8oBRytq6ZzeZpASu1xrurWZPJ8R49h4
	7WOp1ByMwfGIE4nsPcXyDLN7LNKQnLuNm/2BC41vxq0dY3u3Nr8/yNv+/zCA7bub3sY0
	lCfJQ/U/AP0tzP4vz+YtKl0T0IUijLRXZN25RPp+tqgGOS4Ipw5sC6mHPGBCdKAcD594
	6mcQ==
MIME-Version: 1.0
Received: by 10.52.17.208 with SMTP id q16mr17841037vdd.46.1355700481194; Sun,
	16 Dec 2012 15:28:01 -0800 (PST)
Received: by 10.58.245.200 with HTTP; Sun, 16 Dec 2012 15:28:01 -0800 (PST)
In-Reply-To: <201212152021.05840.vapier@gentoo.org>
References: <CABvrX2W2XyfEDQeiKeychm-9FJzF=eM=3nomsTcz1ucKS8RCvQ@mail.gmail.com>
	<201212152021.05840.vapier@gentoo.org>
Date: Sun, 16 Dec 2012 23:28:01 +0000
Message-ID: <CABvrX2XB4DjQa_wfJtJD9Z+Dyf3r9=9K5iCeTXwU0i0zR6h4MQ@mail.gmail.com>
From: Maciej Grela <maciej.grela@gmail.com>
To: Mike Frysinger <vapier@gentoo.org>
Content-Type: text/plain; charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.85.212.45
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Put udev rules in libdir and not always in
	/lib
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 16 Dec 2012 23:28:07 -0000

2012/12/16 Mike Frysinger <vapier@gentoo.org>:
> On Thursday 13 December 2012 19:31:59 Maciej Grela wrote:
>> I've developed a patch for gpsd which improves the way that udev rules
>> are installed - they are put in libdir and not always in /lib. This
>> fixes build errors of gpsd on source-based distributions like Exherbo
>> which don't allow a package to install a plain /lib directory if /lib
>> is a symlink to /lib64. By using libdir this issue is resolved - if
>> the build script tells scons to use lib64 as the library destination,
>> the udev rules also end up there.
>
> err, no, that is incorrect.  the correct way is to query udev's .pc file:
>         pkg-config --variable=udevdir udev
>
> although in the case of this SConstruct, it should use env['PKG_CONFIG']

Hi,

thanks for pointing that out. Is this way acceptable? My knowledge of
SCons is limited:

diff -urp gpsd-3.7.orig/SConstruct gpsd-3.7/SConstruct
--- gpsd-3.7.orig/SConstruct    2012-07-02 22:48:16.000000000 +0000
+++ gpsd-3.7/SConstruct 2012-12-16 23:19:19.094799497 +0000
@@ -1630,16 +1630,24 @@ if env['python']:
 # GPS ad libitum.  All is well when you get fix reports each time a GPS
 # is plugged in.

+def set_udevdir(env, result):
+    env['udevdir'] = result.rstrip("\r\n");
+    if not env['udevdir']:
+        env['udevdir'] = "/lib/udev";
+
+env.ParseConfig("%s --variable=udevdir udev" % (env['PKG_CONFIG']),
function=set_udevdir)
+
 Utility('udev-install', 'install', [
-    'mkdir -p ' + DESTDIR + '/lib/udev/rules.d',
-    'cp $SRCDIR/gpsd.rules ' + DESTDIR + '/lib/udev/rules.d/25-gpsd.rules',
-    'cp $SRCDIR/gpsd.hotplug ' + DESTDIR + '/lib/udev/',
-    'chmod a+x ' + DESTDIR + '/lib/udev/gpsd.hotplug',
+    'mkdir -p ' + installdir('udevdir', True),
+    'mkdir -p ' + installdir('udevdir', True) + '/rules.d',
+    'cp $SRCDIR/gpsd.rules ' + installdir('udevdir', True) +
'/rules.d/25-gpsd.rules',
+    'cp $SRCDIR/gpsd.hotplug ' + installdir('udevdir', True),
+    'chmod a+x ' + installdir('udevdir', True) + '/gpsd.hotplug',
         ])

 Utility('udev-uninstall', '', [
-    'rm -f /lib/udev/gpsd.hotplug',
-    'rm -f /lib/udev/rules.d/25-gpsd.rules',
+    'rm -f ' + installdir('udevdir', True) + '/gpsd.hotplug',
+    'rm -f ' + installdir('udevdir', True) + '/rules.d/25-gpsd.rules',
         ])

 Utility('udev-test', '', [


I also considered the path inside gpsd.rules, which will not be
correct if gpsd.hotplug will be installed outside /lib/udev. This
fixes it:

diff -urp gpsd-3.7.orig/gpsd.rules gpsd-3.7/gpsd.rules
--- gpsd-3.7.orig/gpsd.rules    2012-06-01 13:18:21.000000000 +0000
+++ gpsd-3.7/gpsd.rules 2012-12-16 23:22:36.907326501 +0000
@@ -22,28 +22,28 @@
 SUBSYSTEM!="tty", GOTO="gpsd_rules_end"

 # Prolific Technology, Inc. PL2303 Serial Port [linux module: pl2303]
-ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", SYMLINK+="gps%n",
RUN+="/lib/udev/gpsd.hotplug"
+ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", SYMLINK+="gps%n",
RUN+="gpsd.hotplug"
 # ATEN International Co., Ltd UC-232A Serial Port [linux module: pl2303]
-ATTRS{idVendor}=="0557", ATTRS{idProduct}=="2008", SYMLINK+="gps%n",
RUN+="/lib/udev/gpsd.hotplug"
+ATTRS{idVendor}=="0557", ATTRS{idProduct}=="2008", SYMLINK+="gps%n",
RUN+="gpsd.hotplug"
 # PS-360 OEM (GPS sold with MS Street and Trips 2005) [linux module: pl2303]
-ATTRS{idVendor}=="067b", ATTRS{idProduct}=="aaa0", SYMLINK+="gps%n",
RUN+="/lib/udev/gpsd.hotplug"
+ATTRS{idVendor}=="067b", ATTRS{idProduct}=="aaa0", SYMLINK+="gps%n",
RUN+="gpsd.hotplug"
 # FTDI 8U232AM / FT232 [linux module: ftdi_sio]
-ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="gps%n",
RUN+="/lib/udev/gpsd.hotplug"
+ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="gps%n",
RUN+="gpsd.hotplug"
 # Cypress M8/CY7C64013 (Delorme uses these) [linux module: cypress_m8]
-ATTRS{idVendor}=="1163", ATTRS{idProduct}=="0100", SYMLINK+="gps%n",
RUN+="/lib/udev/gpsd.hotplug"
+ATTRS{idVendor}=="1163", ATTRS{idProduct}=="0100", SYMLINK+="gps%n",
RUN+="gpsd.hotplug"
 # Cypress M8/CY7C64013 (DeLorme LT-40)
-ATTRS{idVendor}=="1163", ATTRS{idProduct}=="0200", SYMLINK+="gps%n",
RUN+="/lib/udev/gpsd.hotplug"
+ATTRS{idVendor}=="1163", ATTRS{idProduct}=="0200", SYMLINK+="gps%n",
RUN+="gpsd.hotplug"
 # Garmin International GPSmap, various models (tested with Garmin GPS
18 USB)  [linux module: garmin_gps]
-ATTRS{idVendor}=="091e", ATTRS{idProduct}=="0003", SYMLINK+="gps%n",
RUN+="/lib/udev/gpsd.hotplug"
+ATTRS{idVendor}=="091e", ATTRS{idProduct}=="0003", SYMLINK+="gps%n",
RUN+="gpsd.hotplug"
 # Cygnal Integrated Products, Inc. CP210x Composite Device (Used by
Holux m241 and Wintec grays2 wbt-201) [linux module: cp210x]
-ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", SYMLINK+="gps%n",
RUN+="/lib/udev/gpsd.hotplug"
+ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", SYMLINK+="gps%n",
RUN+="gpsd.hotplug"
 # Cygnal Integrated Products, Inc. [linux module: cp210x]
-ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea71", SYMLINK="gps%n",
RUN+="/lib/udev/gpsd.hotplug"
+ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea71", SYMLINK="gps%n",
RUN+="gpsd.hotplug"
 # u-blox AG, u-blox 5 (tested with Navilock NL-402U) [linux module: cdc_acm]
-ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a5", SYMLINK="gps%n",
RUN+="/lib/udev/gpsd.hotplug"
+ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a5", SYMLINK="gps%n",
RUN+="gpsd.hotplug"
 # u-blox AG, u-blox 6 (tested with GNSS Evaluation Kit TCXO) [linux
module: cdc_acm]
-ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a6", SYMLINK="gps%n",
RUN+="/lib/udev/gpsd.hotplug"
+ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a6", SYMLINK="gps%n",
RUN+="gpsd.hotplug"

-ACTION=="remove", RUN+="/lib/udev/gpsd.hotplug"
+ACTION=="remove", RUN+="gpsd.hotplug"

 LABEL="gpsd_rules_end"

With both changes applied gpsd now runs correctly when udevdir=/usr/lib64/udev
What do you think?

Best regards,
Maciej Grela


From MAILER-DAEMON Sun Dec 16 18:58:30 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TkO6I-0005q4-1m
	for mharc-gpsd-dev@gnu.org; Sun, 16 Dec 2012 18:58:30 -0500
Received: from eggs.gnu.org ([208.118.235.92]:60916)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vapier@gentoo.org>) id 1TkO6F-0005hB-4g
	for gpsd-dev@nongnu.org; Sun, 16 Dec 2012 18:58:27 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <vapier@gentoo.org>) id 1TkO6E-0007QN-8K
	for gpsd-dev@nongnu.org; Sun, 16 Dec 2012 18:58:27 -0500
Received: from smtp.gentoo.org ([140.211.166.183]:36922)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vapier@gentoo.org>) id 1TkO6E-0007QH-2W
	for gpsd-dev@nongnu.org; Sun, 16 Dec 2012 18:58:26 -0500
Received: from vapier.localnet (localhost [127.0.0.1])
	by smtp.gentoo.org (Postfix) with ESMTP id 222B733DC7A;
	Sun, 16 Dec 2012 23:58:25 +0000 (UTC)
From: Mike Frysinger <vapier@gentoo.org>
Organization: wh0rd.org
To: Maciej Grela <maciej.grela@gmail.com>
Date: Sun, 16 Dec 2012 18:58:24 -0500
User-Agent: KMail/1.13.7 (Linux/3.6.5; KDE/4.6.5; x86_64; ; )
References: <CABvrX2W2XyfEDQeiKeychm-9FJzF=eM=3nomsTcz1ucKS8RCvQ@mail.gmail.com>
	<201212152021.05840.vapier@gentoo.org>
	<CABvrX2XB4DjQa_wfJtJD9Z+Dyf3r9=9K5iCeTXwU0i0zR6h4MQ@mail.gmail.com>
In-Reply-To: <CABvrX2XB4DjQa_wfJtJD9Z+Dyf3r9=9K5iCeTXwU0i0zR6h4MQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextPart1947753.hsQDfaS86z";
	protocol="application/pgp-signature"; micalg=pgp-sha1
Content-Transfer-Encoding: 7bit
Message-Id: <201212161858.25440.vapier@gentoo.org>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 140.211.166.183
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Put udev rules in libdir and not always in
	/lib
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 16 Dec 2012 23:58:28 -0000

--nextPart1947753.hsQDfaS86z
Content-Type: Text/Plain;
  charset="utf-8"
Content-Transfer-Encoding: quoted-printable

On Sunday 16 December 2012 18:28:01 Maciej Grela wrote:
> +def set_udevdir(env, result):
> +    env['udevdir'] =3D result.rstrip("\r\n");

don't need to specify the whitespace chars.  just use result.rstrip(), or=20
perhaps even result.strip().

the rest looks OK, but i didn't look too hard ;)

> With both changes applied gpsd now runs correctly when
> udevdir=3D/usr/lib64/udev What do you think?

=46WIW, if you're using the ABI dir for ABI-independent files rather than a=
lways=20
using /lib, your distro is probably doing it wrong.
=2Dmike

--nextPart1947753.hsQDfaS86z
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iQIcBAABAgAGBQJQzmAhAAoJEEFjO5/oN/WBH08P/Rz/f6oR98a2mY9eohxAw+5O
mRrDgOqrm7l9oGmYWq9hoWkQGLInH8pzimeBpH+dBL5VmoltuJbCV/uJyP8r3ZC0
gtZtvcO+dew+lYoFmTmncptyUuboyqFjIkdeJK34/8YqderWMq16pyK04yZ5SdCO
3fgamlGLTXVfObIq6TArUDFXqSM8mjv2s9XZIHZ8h/Z6IHt516MqBFkjeCfPqUER
BZzVAcwR9REN2xERfrWTWXh4ZKjMen/swC8XXy5mBEHz43vBSSi8yopBr4Ljh3ZX
tUY9deE8CCTp9XhdCMNQ22KRIgiBo5R/RCKcWNJACgdpXDgYpl/vMD8Cib3TCLem
22I56eI7afHmvmfc+R1rGe+WGLDHOfQSQ0wv0gz2oZJr1chFOMNT4EdOz6BMyQvV
joKioIwYhVtGXJLYuetd0Il84YmwZCON81PoPjICE0DcXAdd74/xdlpMHbJD0U43
YiFD3R4WrPQ+OEcuGAIMVb4R+HymZq3Kk0+1e6Hizy04CoGpcwPjfD+0OigCKP3Q
uuFsvZ2/hWjbK6epyQrrmdkLoRRbFqogm3GEaWgxJ8iND3t7SYa1bJPCuYPcymmq
2Y6cCo8sft8Ry0N8qTQFm29R81AoSPLCOUp2aqWyfpDw5ycN73XSDNutsmnOq22K
UF7k77YoblYoCeGXjf3k
=JOE6
-----END PGP SIGNATURE-----

--nextPart1947753.hsQDfaS86z--


From MAILER-DAEMON Fri Dec 21 10:06:25 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tm4B7-0008CB-MD
	for mharc-gpsd-dev@gnu.org; Fri, 21 Dec 2012 10:06:25 -0500
Received: from eggs.gnu.org ([208.118.235.92]:41612)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <roy@rbdb.net>) id 1Tlujg-0001fG-3n
	for gpsd-dev@nongnu.org; Fri, 21 Dec 2012 00:01:29 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <roy@rbdb.net>) id 1Tlujd-0001a7-PH
	for gpsd-dev@nongnu.org; Fri, 21 Dec 2012 00:01:28 -0500
Received: from mail-ee0-f41.google.com ([74.125.83.41]:62463)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <roy@rbdb.net>)
	id 1Tlujd-0001Zn-JO
	for gpsd-dev@nongnu.org; Fri, 21 Dec 2012 00:01:25 -0500
Received: by mail-ee0-f41.google.com with SMTP id d41so2208114eek.0
	for <gpsd-dev@nongnu.org>; Thu, 20 Dec 2012 21:01:24 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=mime-version:x-originating-ip:date:message-id:subject:from:to
	:content-type:x-gm-message-state;
	bh=719rFYQsyTnT0oEIhaqVU3WqMSUErn/sK8z0qUUuDlE=;
	b=Svk8tDpzLkAV+G6LXIGRvag1HNHgz69n1rMKzrD0kAquzVBnJnUwc23Qptn3xdKzoH
	uNadpQKsj2sm5SQcLNMyaSKv1+ZzKlx2ctkGRTXn9FthJdKjDfmVM8WzCxenye+hvA8o
	ciZ5XX0YcYC3NCv0ljwgn7EaPX1Qss++28FcIaUFAckBqPoO1/jI66zVbw6K/2ynlMDF
	lPCGxI+jAtZZn35YFfo6HJlVppPFTqGygaggmG9C9MUyh1tN+5T90z2REG3mjQLL5tBY
	uaGUgf55bpumwdrr7oTualqAkJzmtQiyFY/BoLsVaZ2wM+brONvc0eBjyY+fpRmG2rWe
	rL1A==
MIME-Version: 1.0
Received: by 10.14.173.69 with SMTP id u45mr28960588eel.21.1356066083934; Thu,
	20 Dec 2012 21:01:23 -0800 (PST)
Received: by 10.14.219.193 with HTTP; Thu, 20 Dec 2012 21:01:23 -0800 (PST)
X-Originating-IP: [124.168.227.57]
Date: Fri, 21 Dec 2012 16:01:23 +1100
Message-ID: <CACEnT=d9XpfY1xZT6jjqGGA+mKjGWM8OpAoFk_D2-LXLYMQ9bQ@mail.gmail.com>
From: Roy Barkas <roy@rbdb.net>
To: gpsd-dev@nongnu.org
Content-Type: multipart/alternative; boundary=047d7b6039f43991d204d155bdda
X-Gm-Message-State: ALoCoQmFEBah4lattVGXnNx5h0Ip5QUjs4zasyhialP8s/PcxWKFWEqQjgqJDVBkVLA6VokMJuEI
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 74.125.83.41
X-Mailman-Approved-At: Fri, 21 Dec 2012 10:06:24 -0500
Subject: [gpsd-dev] Clueless
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 21 Dec 2012 05:01:30 -0000

--047d7b6039f43991d204d155bdda
Content-Type: text/plain; charset=ISO-8859-1

Eric has just posted a patch that allows for type 24 messages with partno's
other than "A" or "B".

I need to fetch the 3.7 tarball, apply this patch and build it since the
unpatched version is madly filling my syslog with hundreds of thousands of
error messages.

Are there instructions posted somewhere for a person like me who doesn't
normally use GIT and who also doesn't normally build complex c projects?

Cheers;

Roy Barkas
Australia

p.s. Happy Holidays to all!

--047d7b6039f43991d204d155bdda
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Eric has just posted a patch that allows for type 24 messages with partno&#=
39;s other than &quot;A&quot; or &quot;B&quot;.<br><br>I need to fetch the =
3.7 tarball, apply this patch and build it since the unpatched version is m=
adly filling my syslog with hundreds of thousands of error messages.<br>
<br>Are there instructions posted somewhere for a person like me who doesn&=
#39;t normally use GIT and who also doesn&#39;t normally build complex c pr=
ojects?<br><br>Cheers;<br><br>Roy Barkas<br>Australia<br><br>p.s. Happy Hol=
idays to all!<br>

--047d7b6039f43991d204d155bdda--


