* [PATCH v3] python-pygtk: Restore pkg-config support
@ 2014-11-05 14:28 Gary Thomas
2014-11-05 14:38 ` Gary Thomas
0 siblings, 1 reply; 2+ messages in thread
From: Gary Thomas @ 2014-11-05 14:28 UTC (permalink / raw)
To: openembedded-core; +Cc: Gary Thomas
This patch removes an old "fix" which is no longer required.
A side effect is that the pkg-config control file (pygtk-2.0.pc)
will be installed. This makes it possible to use this library
with other tools. Note: the pygtk-2.0.pc also had a missing 'libdir'
Signed-off-by: Gary Thomas <gary@mlbassoc.com>
---
.../python/python-pygtk/fix-pygtk-2.0.pc.patch | 13 +++++++++++++
meta/recipes-devtools/python/python-pygtk_2.24.0.bb | 9 +--------
2 files changed, 14 insertions(+), 8 deletions(-)
create mode 100644 meta/recipes-devtools/python/python-pygtk/fix-pygtk-2.0.pc.patch
diff --git a/meta/recipes-devtools/python/python-pygtk/fix-pygtk-2.0.pc.patch b/meta/recipes-devtools/python/python-pygtk/fix-pygtk-2.0.pc.patch
new file mode 100644
index 0000000..b615654
--- /dev/null
+++ b/meta/recipes-devtools/python/python-pygtk/fix-pygtk-2.0.pc.patch
@@ -0,0 +1,13 @@
+Upstream-Status: Inappropriate [configuration]
+
+Index: pygtk-2.24.0/pygtk-2.0.pc.in
+===================================================================
+--- pygtk-2.24.0.orig/pygtk-2.0.pc.in
++++ pygtk-2.24.0/pygtk-2.0.pc.in
+@@ -1,5 +1,6 @@
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
++libdir=@libdir@
+ includedir=@includedir@
+ datarootdir=@datarootdir@
+ datadir=@datadir@
diff --git a/meta/recipes-devtools/python/python-pygtk_2.24.0.bb b/meta/recipes-devtools/python/python-pygtk_2.24.0.bb
index 8fc194f..631acb7 100644
--- a/meta/recipes-devtools/python/python-pygtk_2.24.0.bb
+++ b/meta/recipes-devtools/python/python-pygtk_2.24.0.bb
@@ -15,6 +15,7 @@ SRC_URI = "ftp://ftp.gnome.org/pub/gnome/sources/pygtk/2.24/${SRCNAME}-${PV}.tar
file://fix-gtkunixprint.patch \
file://prevent_to_get_display_during_import.patch \
file://nodocs.patch \
+ file://fix-pygtk-2.0.pc.patch \
file://acinclude.m4 \
file://update-dependences-of-defs.c.patch"
@@ -39,14 +40,6 @@ do_configure_prepend() {
sed -i 's:tests docs:tests:' ${S}/Makefile.am
}
-# dirty fix #1: remove dependency on python-pygobject-dev
-do_install_append() {
- find ${D} -name "*.la"|xargs rm -f
- rm -f ${D}/${bindir}/pygtk-codegen-2.0
- rm -rf ${D}/${libdir}/pkgconfig
- sed -i -e '1s|^#!.*python|#!/usr/bin/env python|' ${D}${bindir}/pygtk-demo
-}
-
# dirty fix #2: fix build system paths leaking in
require fix-path.inc
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH v3] python-pygtk: Restore pkg-config support
2014-11-05 14:28 [PATCH v3] python-pygtk: Restore pkg-config support Gary Thomas
@ 2014-11-05 14:38 ` Gary Thomas
0 siblings, 0 replies; 2+ messages in thread
From: Gary Thomas @ 2014-11-05 14:38 UTC (permalink / raw)
To: openembedded-core
On 2014-11-05 07:28, Gary Thomas wrote:
> This patch removes an old "fix" which is no longer required.
> A side effect is that the pkg-config control file (pygtk-2.0.pc)
> will be installed. This makes it possible to use this library
> with other tools. Note: the pygtk-2.0.pc also had a missing 'libdir'
>
> Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Sorry, I missed that part of this had already been merged. I'll send a
new one with the remaining changes (killing of the rest of "fix #1")
> ---
> .../python/python-pygtk/fix-pygtk-2.0.pc.patch | 13 +++++++++++++
> meta/recipes-devtools/python/python-pygtk_2.24.0.bb | 9 +--------
> 2 files changed, 14 insertions(+), 8 deletions(-)
> create mode 100644 meta/recipes-devtools/python/python-pygtk/fix-pygtk-2.0.pc.patch
>
> diff --git a/meta/recipes-devtools/python/python-pygtk/fix-pygtk-2.0.pc.patch b/meta/recipes-devtools/python/python-pygtk/fix-pygtk-2.0.pc.patch
> new file mode 100644
> index 0000000..b615654
> --- /dev/null
> +++ b/meta/recipes-devtools/python/python-pygtk/fix-pygtk-2.0.pc.patch
> @@ -0,0 +1,13 @@
> +Upstream-Status: Inappropriate [configuration]
> +
> +Index: pygtk-2.24.0/pygtk-2.0.pc.in
> +===================================================================
> +--- pygtk-2.24.0.orig/pygtk-2.0.pc.in
> ++++ pygtk-2.24.0/pygtk-2.0.pc.in
> +@@ -1,5 +1,6 @@
> + prefix=@prefix@
> + exec_prefix=@exec_prefix@
> ++libdir=@libdir@
> + includedir=@includedir@
> + datarootdir=@datarootdir@
> + datadir=@datadir@
> diff --git a/meta/recipes-devtools/python/python-pygtk_2.24.0.bb b/meta/recipes-devtools/python/python-pygtk_2.24.0.bb
> index 8fc194f..631acb7 100644
> --- a/meta/recipes-devtools/python/python-pygtk_2.24.0.bb
> +++ b/meta/recipes-devtools/python/python-pygtk_2.24.0.bb
> @@ -15,6 +15,7 @@ SRC_URI = "ftp://ftp.gnome.org/pub/gnome/sources/pygtk/2.24/${SRCNAME}-${PV}.tar
> file://fix-gtkunixprint.patch \
> file://prevent_to_get_display_during_import.patch \
> file://nodocs.patch \
> + file://fix-pygtk-2.0.pc.patch \
> file://acinclude.m4 \
> file://update-dependences-of-defs.c.patch"
>
> @@ -39,14 +40,6 @@ do_configure_prepend() {
> sed -i 's:tests docs:tests:' ${S}/Makefile.am
> }
>
> -# dirty fix #1: remove dependency on python-pygobject-dev
> -do_install_append() {
> - find ${D} -name "*.la"|xargs rm -f
> - rm -f ${D}/${bindir}/pygtk-codegen-2.0
> - rm -rf ${D}/${libdir}/pkgconfig
> - sed -i -e '1s|^#!.*python|#!/usr/bin/env python|' ${D}${bindir}/pygtk-demo
> -}
> -
> # dirty fix #2: fix build system paths leaking in
> require fix-path.inc
>
>
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-05 14:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-05 14:28 [PATCH v3] python-pygtk: Restore pkg-config support Gary Thomas
2014-11-05 14:38 ` Gary Thomas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox