Message ID | 20210903162027.1935040-2-aduskett@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | Qemu and gobject-introspection fixes | expand |
Hello Adam, Thanks for this patch series! On Fri, 3 Sep 2021 09:20:21 -0700 Adam Duskett <aduskett@gmail.com> wrote: > If GIR_EXTRA_LIBS_PATH is empty, the LD_LIBRARY_PATH variable is > ":.libs:$(dirname $0)/../lib:$(dirname $0)/../../lib". > > As discussed with Yann Morin, add a new variable, "GOI_LIBRARY_PATH" and > prepend ${GIR_EXTRA_LIBS_PATH:+${GIR_EXTRA_LIBS_PATH}:} to the path to fix the > above bug. > > Signed-off-by: Adam Duskett <aduskett@gmail.com> The commit title should have a prefix of package/gobject-introspection/g-ir-scanner-qemuwrapper.in, and also a description that isn't cut of in the middle. These details can be fixed when applying, no need to resend for that. Thanks! Thomas
Applied to master, thanks. I've tried to fix the summary line. On 03/09/2021 18:20, Adam Duskett wrote: > If GIR_EXTRA_LIBS_PATH is empty, the LD_LIBRARY_PATH variable is > ":.libs:$(dirname $0)/../lib:$(dirname $0)/../../lib". > > As discussed with Yann Morin, add a new variable, "GOI_LIBRARY_PATH" and > prepend ${GIR_EXTRA_LIBS_PATH:+${GIR_EXTRA_LIBS_PATH}:} to the path to fix the > above bug. > > Signed-off-by: Adam Duskett <aduskett@gmail.com> > --- > package/gobject-introspection/g-ir-scanner-qemuwrapper.in | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/package/gobject-introspection/g-ir-scanner-qemuwrapper.in b/package/gobject-introspection/g-ir-scanner-qemuwrapper.in > index cad7ef875e..ec066062e2 100644 > --- a/package/gobject-introspection/g-ir-scanner-qemuwrapper.in > +++ b/package/gobject-introspection/g-ir-scanner-qemuwrapper.in > @@ -4,10 +4,11 @@ > # is older than the target kernel. > # Use a modules directory which does not exist so we don't load random things > # which may then get deleted (or their dependencies) and potentially segfault > +GOI_LIBRARY_PATH="${GIR_EXTRA_LIBS_PATH:+${GIR_EXTRA_LIBS_PATH}:}.libs:$(dirname "$0")/../lib:$(dirname "$0")/../../lib" Since the comment above is not related to this assignment, I moved the assignment above the comment. I haven't tested the result so I hope I made no mistakes :-) Regards, Arnout > GIO_MODULE_DIR=$(dirname $0)/../lib/gio/modules-dummy \ > @QEMU_USER@ -r @TOOLCHAIN_HEADERS_VERSION@ \ > -L $(dirname $0)/../../ \ > --E LD_LIBRARY_PATH=${GIR_EXTRA_LIBS_PATH}:.libs:$(dirname $0)/../lib:$(dirname $0)/../../lib \ > +-E LD_LIBRARY_PATH="${GOI_LIBRARY_PATH}" \ > "$@" > > if [[ $? -ne 0 ]]; then >
diff --git a/package/gobject-introspection/g-ir-scanner-qemuwrapper.in b/package/gobject-introspection/g-ir-scanner-qemuwrapper.in index cad7ef875e..ec066062e2 100644 --- a/package/gobject-introspection/g-ir-scanner-qemuwrapper.in +++ b/package/gobject-introspection/g-ir-scanner-qemuwrapper.in @@ -4,10 +4,11 @@ # is older than the target kernel. # Use a modules directory which does not exist so we don't load random things # which may then get deleted (or their dependencies) and potentially segfault +GOI_LIBRARY_PATH="${GIR_EXTRA_LIBS_PATH:+${GIR_EXTRA_LIBS_PATH}:}.libs:$(dirname "$0")/../lib:$(dirname "$0")/../../lib" GIO_MODULE_DIR=$(dirname $0)/../lib/gio/modules-dummy \ @QEMU_USER@ -r @TOOLCHAIN_HEADERS_VERSION@ \ -L $(dirname $0)/../../ \ --E LD_LIBRARY_PATH=${GIR_EXTRA_LIBS_PATH}:.libs:$(dirname $0)/../lib:$(dirname $0)/../../lib \ +-E LD_LIBRARY_PATH="${GOI_LIBRARY_PATH}" \ "$@" if [[ $? -ne 0 ]]; then
If GIR_EXTRA_LIBS_PATH is empty, the LD_LIBRARY_PATH variable is ":.libs:$(dirname $0)/../lib:$(dirname $0)/../../lib". As discussed with Yann Morin, add a new variable, "GOI_LIBRARY_PATH" and prepend ${GIR_EXTRA_LIBS_PATH:+${GIR_EXTRA_LIBS_PATH}:} to the path to fix the above bug. Signed-off-by: Adam Duskett <aduskett@gmail.com> --- package/gobject-introspection/g-ir-scanner-qemuwrapper.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)