GNU bug report logs -
#36477
Add Guix System cross-compilation support
Previous Next
Full log
Message #587 received at 36477 <at> debbugs.gnu.org (full text, mbox):
Mathieu Othacehe <m.othacehe <at> gmail.com> 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’.
This bug report was last modified 5 years and 270 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.