On Tue, Jan 19, 2010 at 05:08:43PM +0100, Carsten Schlote wrote:
> From: Carsten Schlote <c.schl...@konzeptpark.de>
> 
> Updated to 150 as proposed on ptxdist mailinglist. Compiles
> and works (tested with upstart initmethod).

Very nice! You can read it as:
Tested-by: Ladislav Michl <la...@linux-mips.org>
However to hit "Reviewed-by" there is one minor improvement to be done.

> Added new config options for all files installed in package
> dir.
> 
> Added 'install_copy' lines for all files found in package dir
> and as well some more obscure ones not installed by default.
> 
> Added comments and reviews
> 
> Crosscompile Patches:
> - commented out checks for pci.ids and provide link to file directly.
> 
> Signed-off-by: Carsten Schlote <c.schl...@konzeptpark.de>
> ---
>  patches/udev-150/autogen.sh             |    1 +
>  patches/udev-150/fix-crosscompile.patch |   29 +++++
>  patches/udev-150/series                 |    1 +

All above could be probably dropped, see bellow.

>  rules/udev.in                           |  203 
> +++++++++++++++++++++++--------
>  rules/udev.make                         |  160 ++++++++++++++++++++++---
>  5 files changed, 329 insertions(+), 65 deletions(-)
>  create mode 120000 patches/udev-150/autogen.sh
>  create mode 100644 patches/udev-150/fix-crosscompile.patch
>  create mode 100644 patches/udev-150/series
> 
> diff --git a/patches/udev-150/autogen.sh b/patches/udev-150/autogen.sh
> new file mode 120000
> index 0000000..9f8a4cb
> --- /dev/null
> +++ b/patches/udev-150/autogen.sh
> @@ -0,0 +1 @@
> +../autogen.sh
> \ No newline at end of file
> diff --git a/patches/udev-150/fix-crosscompile.patch 
> b/patches/udev-150/fix-crosscompile.patch
> new file mode 100644
> index 0000000..5a811eb
> --- /dev/null
> +++ b/patches/udev-150/fix-crosscompile.patch
> @@ -0,0 +1,29 @@
> +From: Carsten Schlote <c.schl...@konzeptpark.de>
> +Subject: Remove checks for pci.ids to allow cross-compilation.
> +
> +These checks for pci.ids seem to fail. So commented out and
> +path to pci.ids is provided with by commandline option on
> +configure.
> +
> +Signed-off-by: Carsten Schlote <c.schl...@konzeptpark.de>
> +---
> + configure.ac |    6 +++---
> + 1 file changed, 3 insertions(+), 3 deletions(-)
> +
> +Index: udev-146/configure.ac
> +===================================================================
> +--- udev-146.orig/configure.ac       2009-08-10 03:37:42.000000000 +0200
> ++++ udev-146/configure.ac    2009-12-09 10:11:53.000000000 +0100
> +@@ -69,9 +69,9 @@
> +     PKG_CHECK_MODULES(USBUTILS, usbutils >= 0.82)
> +     AC_SUBST([USB_DATABASE], [$($PKG_CONFIG --variable=usbids usbutils)])
> + 
> +-    AC_CHECK_FILES([/usr/share/pci.ids], [pciids=/usr/share/pci.ids])
> +-    AC_CHECK_FILES([/usr/share/hwdata/pci.ids], 
> [pciids=/usr/share/hwdata/pci.ids])
> +-    AC_CHECK_FILES([/usr/share/misc/pci.ids], 
> [pciids=/usr/share/misc/pci.ids])
> ++#   AC_CHECK_FILES([/usr/share/pci.ids], [pciids=/usr/share/pci.ids])
> ++#   AC_CHECK_FILES([/usr/share/hwdata/pci.ids], 
> [pciids=/usr/share/hwdata/pci.ids])
> ++#   AC_CHECK_FILES([/usr/share/misc/pci.ids], 
> [pciids=/usr/share/misc/pci.ids])
> +     AC_ARG_WITH(pci-ids-path,
> +             AS_HELP_STRING([--pci-ids-path=DIR], [Path to pci.ids file]),
> +             [PCI_DATABASE=${withval}],

Since corresponding defines (HAVE__USR_SHARE_PCI_IDS,
HAVE__USR_SHARE_HWDATA_PCI_IDS, HAVE__USR_SHARE_MISC_PCI_IDS) for commented out
tests do not appear to be used anywhere, it is safe to do something like this:
UDEV_ENV        := \
        $(CROSS_ENV) \
        ac_cv_file__usr_share_pci_ids=no \
        ac_cv_file__usr_share_hwdata_pci_ids=no \
        ac_cv_file__usr_share_misc_pci_ids=no
to make configure happy (untested). I have to admit, that checking for
pci-ids-path _after_ failing to find this file because of crosscompilation
is a bit dumb and should be fixed upstream.

        ladis

--
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to