* [PATCH] glslang: strip whitespace in pkgconfig file
@ 2021-04-09 15:00 Ross Burton
2021-04-09 16:19 ` [OE-core] " Khem Raj
0 siblings, 1 reply; 2+ messages in thread
From: Ross Burton @ 2021-04-09 15:00 UTC (permalink / raw)
To: openembedded-core
Whilst pkg-config is fine with .pc files containing leading whitespace,
pkgconf is less forgiving.
Signed-off-by: Ross Burton <ross.burton@arm.com>
---
.../0001-generate-glslang-pkg-config.patch | 22 +++++++++----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/meta/recipes-graphics/glslang/glslang/0001-generate-glslang-pkg-config.patch b/meta/recipes-graphics/glslang/glslang/0001-generate-glslang-pkg-config.patch
index ef092f17a1..cddd330971 100644
--- a/meta/recipes-graphics/glslang/glslang/0001-generate-glslang-pkg-config.patch
+++ b/meta/recipes-graphics/glslang/glslang/0001-generate-glslang-pkg-config.patch
@@ -34,14 +34,14 @@ index 00000000..64b6882d
--- /dev/null
+++ b/glslang/glslang.pc.cmake.in
@@ -0,0 +1,11 @@
-+ prefix=@CMAKE_INSTALL_PREFIX@
-+ exec_prefix=@CMAKE_INSTALL_PREFIX@
-+ libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
-+ includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
-+
-+ Name: @PROJECT_NAME@
-+ Description: OpenGL and OpenGL ES shader front end and validator
-+ Requires:
-+ Version: @GLSLANG_VERSION@
-+ Libs: -L${libdir} -lglslang -lOSDependent -lHLSL -lOGLCompiler -lSPVRemapper
-+ Cflags: -I${includedir}
++prefix=@CMAKE_INSTALL_PREFIX@
++exec_prefix=@CMAKE_INSTALL_PREFIX@
++libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
++includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
++
++Name: @PROJECT_NAME@
++Description: OpenGL and OpenGL ES shader front end and validator
++Requires:
++Version: @GLSLANG_VERSION@
++Libs: -L${libdir} -lglslang -lOSDependent -lHLSL -lOGLCompiler -lSPVRemapper
++Cflags: -I${includedir}
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [OE-core] [PATCH] glslang: strip whitespace in pkgconfig file
2021-04-09 15:00 [PATCH] glslang: strip whitespace in pkgconfig file Ross Burton
@ 2021-04-09 16:19 ` Khem Raj
0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2021-04-09 16:19 UTC (permalink / raw)
To: Ross Burton, openembedded-core
On 4/9/21 8:00 AM, Ross Burton wrote:
> Whilst pkg-config is fine with .pc files containing leading whitespace,
> pkgconf is less forgiving.
>
thanks, I was thinking this could be painful, perhaps a QA check might
ease out the issue a bit as well. I dont know how many .pc files will
have this issue. What are usual signs when this fails in this way ?
> Signed-off-by: Ross Burton <ross.burton@arm.com>
> ---
> .../0001-generate-glslang-pkg-config.patch | 22 +++++++++----------
> 1 file changed, 11 insertions(+), 11 deletions(-)
>
> diff --git a/meta/recipes-graphics/glslang/glslang/0001-generate-glslang-pkg-config.patch b/meta/recipes-graphics/glslang/glslang/0001-generate-glslang-pkg-config.patch
> index ef092f17a1..cddd330971 100644
> --- a/meta/recipes-graphics/glslang/glslang/0001-generate-glslang-pkg-config.patch
> +++ b/meta/recipes-graphics/glslang/glslang/0001-generate-glslang-pkg-config.patch
> @@ -34,14 +34,14 @@ index 00000000..64b6882d
> --- /dev/null
> +++ b/glslang/glslang.pc.cmake.in
> @@ -0,0 +1,11 @@
> -+ prefix=@CMAKE_INSTALL_PREFIX@
> -+ exec_prefix=@CMAKE_INSTALL_PREFIX@
> -+ libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
> -+ includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
> -+
> -+ Name: @PROJECT_NAME@
> -+ Description: OpenGL and OpenGL ES shader front end and validator
> -+ Requires:
> -+ Version: @GLSLANG_VERSION@
> -+ Libs: -L${libdir} -lglslang -lOSDependent -lHLSL -lOGLCompiler -lSPVRemapper
> -+ Cflags: -I${includedir}
> ++prefix=@CMAKE_INSTALL_PREFIX@
> ++exec_prefix=@CMAKE_INSTALL_PREFIX@
> ++libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
> ++includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
> ++
> ++Name: @PROJECT_NAME@
> ++Description: OpenGL and OpenGL ES shader front end and validator
> ++Requires:
> ++Version: @GLSLANG_VERSION@
> ++Libs: -L${libdir} -lglslang -lOSDependent -lHLSL -lOGLCompiler -lSPVRemapper
> ++Cflags: -I${includedir}
>
>
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-09 16:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09 15:00 [PATCH] glslang: strip whitespace in pkgconfig file Ross Burton
2021-04-09 16:19 ` [OE-core] " Khem Raj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.