[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#36477] [PATCH v3 16/48] gnu: eudev: Fix cross-compilation.
From: |
Ludovic Courtès |
Subject: |
[bug#36477] [PATCH v3 16/48] gnu: eudev: Fix cross-compilation. |
Date: |
Wed, 04 Sep 2019 15:12:11 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Mathieu Othacehe <address@hidden> skribis:
> * gnu/packages/linux.scm (eudev)[arguments]: Look for xsltproc in both
> native-inputs and inputs. Also, do not run udevadm when cross-compiling.
>
> We need to find another way to generate hwdb.bin file for cross-built systems.
[...]
> (add-before 'bootstrap 'patch-file-names
> - (lambda* (#:key inputs #:allow-other-keys)
> + (lambda* (#:key inputs native-inputs #:allow-other-keys)
> (substitute* "man/make.sh"
> (("/usr/bin/xsltproc")
> - (string-append (assoc-ref inputs "xsltproc")
> + (string-append (assoc-ref
> + (or native-inputs inputs) "xsltproc")
> "/bin/xsltproc")))
Put this way this leads to a rebuild. If you want to have it on master,
you’ll have to use ,@ tricks. (And ‘core-updates’ is frozen.)
> (add-after 'install 'build-hwdb
> (lambda* (#:key outputs #:allow-other-keys)
> ;; Build OUT/etc/udev/hwdb.bin. This allows 'lsusb' and
> ;; similar tools to display product names.
> + ;;
> + ;; XXX: This can't be done when cross-compiling. Find another
> way
> + ;; to generate hwdb.bin for cross-built systems.
> (let ((out (assoc-ref outputs "out")))
> - (invoke (string-append out "/bin/udevadm")
> - "hwdb" "--update")))))
I guess we’d need to add ‘this-package’ to ‘native-inputs’ to do that,
right?
Ludo’.
- [bug#36477] [PATCH v3 06/48] gnu: groff: Fix cross compilation., (continued)
- [bug#36477] [PATCH v3 06/48] gnu: groff: Fix cross compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 04/48] gnu: cmake: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 14/48] gnu: glibc-utf8-locales: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 11/48] gnu: cyrus-sasl: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 13/48] gnu: icu4c: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 16/48] gnu: eudev: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 16/48] gnu: eudev: Fix cross-compilation.,
Ludovic Courtès <=
- [bug#36477] [PATCH v3 19/48] gnu: bdb: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 17/48] gnu: lvm2: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 20/48] gnu: openldap: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 08/48] gnu: bc: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 18/48] gnu: nghttp2: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 21/48] gnu: swig: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 25/48] gnu: doxygen: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 15/48] gnu: boost: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 24/48] gnu: procps: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 23/48] gnu: make-linux-libre: Fix cross-compilation., Mathieu Othacehe, 2019/09/02