Re: [yocto] [meta-gplv2][PATCH] readline: add config file for pkgconfig

2023-01-30 Thread Yu, Mingli



On 1/18/23 22:50, Richard Purdie wrote:

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know 
the content is safe.

On Wed, 2023-01-18 at 16:43 +0800, Yu, Mingli wrote:

Ping.

Thanks,



It is no longer maintained.

https://git.yoctoproject.org/meta-gplv2/commit/?id=43bf0e8d5985945d19d01f94bfbbda420c4435f3


Thanks for the info!



Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#59098): https://lists.yoctoproject.org/g/yocto/message/59098
Mute This Topic: https://lists.yoctoproject.org/mt/96350157/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-gplv2][PATCH] readline: add config file for pkgconfig

2023-01-18 Thread Richard Purdie
On Wed, 2023-01-18 at 16:43 +0800, Yu, Mingli wrote:
> Ping.
> 
> Thanks,
> 

It is no longer maintained.

https://git.yoctoproject.org/meta-gplv2/commit/?id=43bf0e8d5985945d19d01f94bfbbda420c4435f3

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#59017): https://lists.yoctoproject.org/g/yocto/message/59017
Mute This Topic: https://lists.yoctoproject.org/mt/96350157/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-gplv2][PATCH] readline: add config file for pkgconfig

2023-01-18 Thread Yu, Mingli

Ping.

Thanks,

On 4/12/22 08:38, Yu, Mingli wrote:

From: Mingli Yu 

After bind upgrade to 9.18.x, the below change introduced [1],
all supported libraries have accompanying .pc files now.
ba2376b9e0 Update and cleanup the readline library support

Otherwise, there comes below error during do_configure.
  $ bitbake bind
  | configure: error: Package requirements (readline) were not met:
  |
  | No package 'readline' found

So backport patches [2] to add support .pc file for readline to
fix the above issue.

[1] 
https://gitlab.isc.org/isc-projects/bind9/-/commit/ba2376b9e03b9bd214242c987609a658ef24ec41
[2] 
https://git.savannah.gnu.org/cgit/readline.git/commit/?id=d49a9082c0e15bba8cd3d8cc0a994409cf823cac

Signed-off-by: Mingli Yu 
---
  .../0001-Makefile.in-add-readline.pc.in.patch | 135 ++
  .../readline/readline-5.2/readline.pc.in  |  12 ++
  recipes-core/readline/readline_5.2.bb |   6 +-
  3 files changed, 152 insertions(+), 1 deletion(-)
  create mode 100644 
recipes-core/readline/readline-5.2/0001-Makefile.in-add-readline.pc.in.patch
  create mode 100644 recipes-core/readline/readline-5.2/readline.pc.in

diff --git 
a/recipes-core/readline/readline-5.2/0001-Makefile.in-add-readline.pc.in.patch 
b/recipes-core/readline/readline-5.2/0001-Makefile.in-add-readline.pc.in.patch
new file mode 100644
index 000..d9d36a0
--- /dev/null
+++ 
b/recipes-core/readline/readline-5.2/0001-Makefile.in-add-readline.pc.in.patch
@@ -0,0 +1,135 @@
+From 20141946db72908e23c11d946937e945fb7e527d Mon Sep 17 00:00:00 2001
+From: Chet Ramey 
+Date: Mon, 11 Apr 2022 18:06:03 +0800
+Subject: [PATCH] Makefile.in: add readline.pc.in
+
+Add config file for pkgconfig.
+
+Upstream-Status: Backport 
[https://git.savannah.gnu.org/cgit/readline.git/commit/?id=d49a9082c0e15bba8cd3d8cc0a994409cf823cac]
+
+Signed-off-by: Mingli Yu 
+---
+ MANIFEST |  1 +
+ Makefile.in  | 26 --
+ configure.in | 11 ++-
+ 3 files changed, 31 insertions(+), 7 deletions(-)
+
+diff --git a/MANIFEST b/MANIFEST
+index b288fb6..f5b583b 100644
+--- a/MANIFEST
 b/MANIFEST
+@@ -19,6 +19,7 @@ config.h.in  f
+ configure f
+ configure.in  f
+ Makefile.in   f
++readline.pc.inf
+ ansi_stdlib.h f
+ chardefs.hf
+ history.h f
+diff --git a/Makefile.in b/Makefile.in
+index 87df428..e4233f7 100644
+--- a/Makefile.in
 b/Makefile.in
+@@ -57,6 +57,7 @@ mandir = @mandir@
+ includedir = @includedir@
+ datadir = @datadir@
+ localedir = $(datadir)/locale
++pkgconfigdir = ${libdir}/pkgconfig
+
+ infodir = @infodir@
+
+@@ -133,7 +134,7 @@ DOCUMENTATION = $(DOCSOURCE) $(DOCOBJECT) $(DOCSUPPORT)
+
+ CREATED_MAKEFILES = Makefile doc/Makefile examples/Makefile shlib/Makefile
+ CREATED_CONFIGURE = config.status config.h config.cache config.log \
+-  stamp-config stamp-h
++  stamp-config stamp-h readline.pc
+ CREATED_TAGS = TAGS tags
+
+ INSTALLED_HEADERS = readline.h chardefs.h keymaps.h history.h tilde.h \
+@@ -217,9 +218,18 @@ uninstall-headers:
+
+ maybe-uninstall-headers: uninstall-headers
+
++install-pc: installdirs
++  -$(INSTALL_DATA) $(BUILD_DIR)/readline.pc 
$(DESTDIR)$(pkgconfigdir)/readline.pc
++
++uninstall-pc:
++  -test -n "$(pkgconfigdir)" && cd $(DESTDIR)$(pkgconfigdir) && \
++  ${RM} readline.pc
++
++maybe-uninstall-pc: uninstall-pc
++
+ install:  $(INSTALL_TARGETS)
+
+-install-static: installdirs $(STATIC_LIBS) install-headers install-doc
++install-static: installdirs $(STATIC_LIBS) install-headers install-doc 
install-pc
+   -$(MV) $(DESTDIR)$(libdir)/libreadline.a 
$(DESTDIR)$(libdir)/libreadline.old
+   $(INSTALL_DATA) libreadline.a $(DESTDIR)$(libdir)/libreadline.a
+   -test -n "$(RANLIB)" && $(RANLIB) $(DESTDIR)$(libdir)/libreadline.a
+@@ -230,17 +240,18 @@ install-static: installdirs $(STATIC_LIBS) 
install-headers install-doc
+ installdirs: $(srcdir)/support/mkinstalldirs
+   -$(SHELL) $(srcdir)/support/mkinstalldirs $(DESTDIR)$(includedir) \
+   $(DESTDIR)$(includedir)/readline $(DESTDIR)$(libdir) \
+-  $(DESTDIR)$(infodir) $(DESTDIR)$(man3dir)
++  $(DESTDIR)$(infodir) $(DESTDIR)$(man3dir) \
++  $(DESTDIR)$(pkgconfigdir)
+
+-uninstall: uninstall-headers uninstall-doc
++uninstall: uninstall-headers uninstall-doc uninstall-pc
+   -test -n "$(DESTDIR)$(libdir)" && cd $(DESTDIR)$(libdir) && \
+   ${RM} libreadline.a libreadline.old libhistory.a libhistory.old 
$(SHARED_LIBS)
+   -( cd shlib; ${MAKE} ${MFLAGS} DESTDIR=${DESTDIR} uninstall )
+
+-install-shared: installdirs install-headers shared install-doc
++install-shared: installdirs install-headers shared install-doc install-pc
+   -( cd shlib ; ${MAKE} ${MFLAGS} DESTDIR=${DESTDIR} install )
+   
+-uninstall-shared: maybe-uninstall-headers
++uninstall-shared: maybe-uninstall-headers maybe-uninstall-pc
+   -( cd shlib; ${MAKE} ${MFLAGS} DESTDIR=${DESTDIR} uninstall )
+
+ 

[yocto] [meta-gplv2][PATCH] readline: add config file for pkgconfig

2022-04-11 Thread Yu, Mingli
From: Mingli Yu 

After bind upgrade to 9.18.x, the below change introduced [1],
all supported libraries have accompanying .pc files now.
ba2376b9e0 Update and cleanup the readline library support

Otherwise, there comes below error during do_configure.
 $ bitbake bind
 | configure: error: Package requirements (readline) were not met:
 |
 | No package 'readline' found

So backport patches [2] to add support .pc file for readline to
fix the above issue.

[1] 
https://gitlab.isc.org/isc-projects/bind9/-/commit/ba2376b9e03b9bd214242c987609a658ef24ec41
[2] 
https://git.savannah.gnu.org/cgit/readline.git/commit/?id=d49a9082c0e15bba8cd3d8cc0a994409cf823cac

Signed-off-by: Mingli Yu 
---
 .../0001-Makefile.in-add-readline.pc.in.patch | 135 ++
 .../readline/readline-5.2/readline.pc.in  |  12 ++
 recipes-core/readline/readline_5.2.bb |   6 +-
 3 files changed, 152 insertions(+), 1 deletion(-)
 create mode 100644 
recipes-core/readline/readline-5.2/0001-Makefile.in-add-readline.pc.in.patch
 create mode 100644 recipes-core/readline/readline-5.2/readline.pc.in

diff --git 
a/recipes-core/readline/readline-5.2/0001-Makefile.in-add-readline.pc.in.patch 
b/recipes-core/readline/readline-5.2/0001-Makefile.in-add-readline.pc.in.patch
new file mode 100644
index 000..d9d36a0
--- /dev/null
+++ 
b/recipes-core/readline/readline-5.2/0001-Makefile.in-add-readline.pc.in.patch
@@ -0,0 +1,135 @@
+From 20141946db72908e23c11d946937e945fb7e527d Mon Sep 17 00:00:00 2001
+From: Chet Ramey 
+Date: Mon, 11 Apr 2022 18:06:03 +0800
+Subject: [PATCH] Makefile.in: add readline.pc.in
+
+Add config file for pkgconfig.
+
+Upstream-Status: Backport 
[https://git.savannah.gnu.org/cgit/readline.git/commit/?id=d49a9082c0e15bba8cd3d8cc0a994409cf823cac]
+
+Signed-off-by: Mingli Yu 
+---
+ MANIFEST |  1 +
+ Makefile.in  | 26 --
+ configure.in | 11 ++-
+ 3 files changed, 31 insertions(+), 7 deletions(-)
+
+diff --git a/MANIFEST b/MANIFEST
+index b288fb6..f5b583b 100644
+--- a/MANIFEST
 b/MANIFEST
+@@ -19,6 +19,7 @@ config.h.in  f
+ configure f
+ configure.in  f
+ Makefile.in   f
++readline.pc.inf
+ ansi_stdlib.h f
+ chardefs.hf
+ history.h f
+diff --git a/Makefile.in b/Makefile.in
+index 87df428..e4233f7 100644
+--- a/Makefile.in
 b/Makefile.in
+@@ -57,6 +57,7 @@ mandir = @mandir@
+ includedir = @includedir@
+ datadir = @datadir@
+ localedir = $(datadir)/locale
++pkgconfigdir = ${libdir}/pkgconfig
+ 
+ infodir = @infodir@
+ 
+@@ -133,7 +134,7 @@ DOCUMENTATION = $(DOCSOURCE) $(DOCOBJECT) $(DOCSUPPORT)
+ 
+ CREATED_MAKEFILES = Makefile doc/Makefile examples/Makefile shlib/Makefile
+ CREATED_CONFIGURE = config.status config.h config.cache config.log \
+-  stamp-config stamp-h
++  stamp-config stamp-h readline.pc
+ CREATED_TAGS = TAGS tags
+ 
+ INSTALLED_HEADERS = readline.h chardefs.h keymaps.h history.h tilde.h \
+@@ -217,9 +218,18 @@ uninstall-headers:
+ 
+ maybe-uninstall-headers: uninstall-headers
+ 
++install-pc: installdirs
++  -$(INSTALL_DATA) $(BUILD_DIR)/readline.pc 
$(DESTDIR)$(pkgconfigdir)/readline.pc
++
++uninstall-pc:
++  -test -n "$(pkgconfigdir)" && cd $(DESTDIR)$(pkgconfigdir) && \
++  ${RM} readline.pc
++
++maybe-uninstall-pc: uninstall-pc
++
+ install:  $(INSTALL_TARGETS)
+ 
+-install-static: installdirs $(STATIC_LIBS) install-headers install-doc
++install-static: installdirs $(STATIC_LIBS) install-headers install-doc 
install-pc
+   -$(MV) $(DESTDIR)$(libdir)/libreadline.a 
$(DESTDIR)$(libdir)/libreadline.old
+   $(INSTALL_DATA) libreadline.a $(DESTDIR)$(libdir)/libreadline.a
+   -test -n "$(RANLIB)" && $(RANLIB) $(DESTDIR)$(libdir)/libreadline.a
+@@ -230,17 +240,18 @@ install-static: installdirs $(STATIC_LIBS) 
install-headers install-doc
+ installdirs: $(srcdir)/support/mkinstalldirs
+   -$(SHELL) $(srcdir)/support/mkinstalldirs $(DESTDIR)$(includedir) \
+   $(DESTDIR)$(includedir)/readline $(DESTDIR)$(libdir) \
+-  $(DESTDIR)$(infodir) $(DESTDIR)$(man3dir)
++  $(DESTDIR)$(infodir) $(DESTDIR)$(man3dir) \
++  $(DESTDIR)$(pkgconfigdir)
+ 
+-uninstall: uninstall-headers uninstall-doc
++uninstall: uninstall-headers uninstall-doc uninstall-pc
+   -test -n "$(DESTDIR)$(libdir)" && cd $(DESTDIR)$(libdir) && \
+   ${RM} libreadline.a libreadline.old libhistory.a libhistory.old 
$(SHARED_LIBS)
+   -( cd shlib; ${MAKE} ${MFLAGS} DESTDIR=${DESTDIR} uninstall )
+ 
+-install-shared: installdirs install-headers shared install-doc
++install-shared: installdirs install-headers shared install-doc install-pc
+   -( cd shlib ; ${MAKE} ${MFLAGS} DESTDIR=${DESTDIR} install )
+   
+-uninstall-shared: maybe-uninstall-headers
++uninstall-shared: maybe-uninstall-headers maybe-uninstall-pc
+   -( cd shlib; ${MAKE} ${MFLAGS} DESTDIR=${DESTDIR} uninstall )
+ 
+ install-doc:  installdirs
+@@ -281,6 +292,9 @@ distclean