Haha, I gave you a patch, sorry. The patch just describes which change you need to make. If you really want to have an easy life, then restore the original ebuild (rsync if you will) and run this:
% patch libinput-1.13.2.ebuild < path/to/the-patch-content.patch
Then you can run ebuild .. digest.
There is a chance the patch won't apply, because I didn't attach it.
In this case I think it's quicker if you "read" the patch yourself, find
the location what the patch is about, and make the change (as indicated
by the lines prefixed with - (removed) and + (added)).
Does this help you?
Fabian
On 27-06-2019 12:41:34 +0100, Michael Fothergill wrote:
> Many thanks again.
>
> OK I went into the ebuild directory for libinput.
>
> I then edited the ebuild file and added the code you gave at the end of the
> file:
>
> src_install() {
> meson_src_install
> if use doc ; then
> docinto html
> dodoc -r "${BUILD_DIR}"/Documentation/.
> fi
> }
>
> pkg_postinst() {
> udevadm hwdb --update --root="${ROOT%/}"
> }
>
> --- a/dev-libs/libinput/libinput-1.13.2.ebuild
> +++ b/dev-libs/libinput/libinput-1.13.2.ebuild
> @@ -60,7 +60,7 @@ src_configure() {
> $(meson_use doc documentation)
> $(meson_use input_devices_wacom libwacom)
> -Dtests=false # tests are restricted
> - -Dudev-dir="$(get_udevdir)"
> + -Dudev-dir="${EPREFIX}$(get_udevdir)"
> )
> meson_src_configure
> }
>
> I then ran
>
> ebuild libinput-1.13.2.ebuild digest
>
> and got an error message:
>
> mikef@fart:~/gentoo/usr/portage/dev-libs/libinput$ ebuild
> libinput-1.13.2.ebuild digest
> * ERROR: dev-libs/libinput-1.13.2::gentoo failed (depend phase):
> * External commands disallowed while sourcing ebuild: ---
> a/dev-libs/libinput/libinput-1.13.2.ebuild
> *
> * Call stack:
> * ebuild.sh, line 623: Called source
> '/home/mikef/gentoo/usr/portage/dev-libs/libinput/libinput-1.13.2.ebuild'
> * libinput-1.13.2.ebuild, line 80: Called command_not_found_handle '---'
> 'a/dev-libs/libinput/libinput-1.13.2.ebuild'
> * ebuild.sh, line 88: Called die
> * The specific snippet of code:
> * die "External commands disallowed while sourcing ebuild: ${*}"
> *
> * If you need support, post the output of `emerge --info
> '=dev-libs/libinput-1.13.2::gentoo'`,
> * the complete build log and the output of `emerge -pqv
> '=dev-libs/libinput-1.13.2::gentoo'`.
> * The ebuild environment file is located at
> '/home/mikef/gentoo/var/tmp/portage/dev-libs/libinput-1.13.2/temp/environment'.
> * Working directory:
> '/home/mikef/gentoo/var/tmp/portage/dev-libs/libinput-1.13.2/homedir'
> * S:
> '/home/mikef/gentoo/var/tmp/portage/dev-libs/libinput-1.13.2/work/libinput-1.13.2'
> mikef@fart:~/gentoo/usr/portage/dev-libs/libinput$
>
> Was I meant to add it to the existing code as I just did?
>
> Comments appreciated.
>
> Regards
>
> MF
>
>
> read_char: errno==EILSEQ; invalid byte sequence for UTF-8:
--
Fabian Groffen
Gentoo on a different level
signature.asc
Description: PGP signature
