[PATCH 0/4] groff: add file-homedir-perl to RDEPENDS

STALE3619d

10 messages, 3 authors, 2016-09-05 · open the first message on its own page

[PATCH 0/4] groff: add file-homedir-perl to RDEPENDS

From: <hidden>
Date: 2016-08-26 02:27:22

The series add file-homedir-perl to RDEPENDS for groff as
glilypond rdepends on File/HomeDir.pm provided by file-homedir-perl

Add new recipe file-homedir-perl

Add new recipe file-which-perl as file-homedir-perl rdepends on
file-which-perl

Add a new recipe extutils-makemaker-perl as file-homedir-perl
depends on extutils-makemaker-perl-native

[PATCH 1/4] groff: add file-homedir-perl to RDEPENDS

From: <hidden>
Date: 2016-08-26 02:27:24

From: Mingli Yu <redacted>

* Add file-homedir-perl to RDEPENDS for groff
  as glilypond provided by groff depends on
  File/HomeDir.pm provided by file-homedir-perl,
  otherwise comes below error

  root@super_micro-1:~# glilypond -h
  Can't locate File/HomeDir.pm in @INC (you may need to
  install the File::HomeDir module) (@INC contains: /etc/perl
  /usr/lib64/perl/site_perl/5.22.1/ /usr/lib64/perl/site_perl/5.22.1
  /usr/lib64/perl/vendor_perl/5.22.1/
  /usr/lib64/perl/vendor_perl/5.22.1 /usr/lib64/perl/5.22.1/
  /usr/lib64/perl/5.22.1 /usr/local/lib/site_perl
  /usr/lib64/perl/5.22.1 .) at /usr/bin/glilypond line 79.
  BEGIN failed--compilation aborted at /usr/bin/glilypond line 79.

Signed-off-by: Mingli Yu <redacted>
---
 meta/recipes-extended/groff/groff_1.22.3.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-extended/groff/groff_1.22.3.bb b/meta/recipes-extended/groff/groff_1.22.3.bb
index af5acbe..7ea028f 100644
--- a/meta/recipes-extended/groff/groff_1.22.3.bb
+++ b/meta/recipes-extended/groff/groff_1.22.3.bb
@@ -17,7 +17,7 @@ SRC_URI[sha256sum] = "3a48a9d6c97750bfbd535feeb5be0111db6406ddb7bb79fc680809cda6
 
 DEPENDS = "groff-native"
 DEPENDS_class-native = ""
-RDEPENDS_${PN} += "perl sed"
+RDEPENDS_${PN} += "perl sed file-homedir-perl"
 
 inherit autotools texinfo
 
-- 
2.8.1

[PATCH 2/4] file-homedir-perl: add new recipe

From: <hidden>
Date: 2016-08-26 02:27:26

From: Mingli Yu <redacted>

* Add file-homedir-perl recipe as glilypond which
  in groff package depends on HomeDir.pm provided
  by file-homedir-perl

Signed-off-by: Mingli Yu <redacted>
---
 .../perl/file-homedir-perl_1.00.bb                 | 32 ++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 meta/recipes-devtools/perl/file-homedir-perl_1.00.bb
diff --git a/meta/recipes-devtools/perl/file-homedir-perl_1.00.bb b/meta/recipes-devtools/perl/file-homedir-perl_1.00.bb
new file mode 100644
index 0000000..1609b5e
--- /dev/null
+++ b/meta/recipes-devtools/perl/file-homedir-perl_1.00.bb
@@ -0,0 +1,32 @@
+DESCRIPTION = "File::HomeDir is a module for locating the directories that are \
+\"owned\" by a user (typicaly your user) and to solve the various \
+issues that arise trying \
+to find them consistently across a wide variety of platforms."
+
+SECTION = "libs"
+LICENSE = "Artistic-1.0 | GPL-2.0"
+PR = "r0"
+
+MAINTAINER=	"Poky <poky@yoctoproject.org>"
+HOMEPAGE=	"https://metacpan.org/release/File-HomeDir"
+
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 \
+file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI = "http://cpan.metacpan.org/authors/id/A/AD/ADAMK/File-HomeDir-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "aa290cab9db52e2f76280fd1febf794e"
+SRC_URI[sha256sum] = "85b94f3513093ec0a25b91f9f2571918519ae6f2b7a1e8546f8f78d09a877143"
+RDEPENDS_${PN} += "file-which-perl"
+DEPENDS += "extutils-makemaker-perl-native"
+
+S = "${WORKDIR}/File-HomeDir-${PV}"
+
+inherit cpan
+
+do_compile() {
+	export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
+	cpan_do_compile
+}
+
+BBCLASSEXTEND = "native"
-- 
2.8.1

[PATCH 3/4] file-which-perl: add new recipe

From: <hidden>
Date: 2016-08-26 02:27:27

From: Mingli Yu <redacted>

* Add file-which-perl recipe as file-homedir-perl
  rdepends on file-which-perl

Signed-off-by: Mingli Yu <redacted>
---
 meta/recipes-devtools/perl/file-which-perl_1.21.bb | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 meta/recipes-devtools/perl/file-which-perl_1.21.bb
diff --git a/meta/recipes-devtools/perl/file-which-perl_1.21.bb b/meta/recipes-devtools/perl/file-which-perl_1.21.bb
new file mode 100644
index 0000000..ac9c0e5
--- /dev/null
+++ b/meta/recipes-devtools/perl/file-which-perl_1.21.bb
@@ -0,0 +1,27 @@
+DESCRIPTION = "File::Which finds the full or relative paths to executable programs on the \
+system. This is normally the function of "which" utility. "which" is \
+typically implemented as either a program or a built in shell command. On \
+some platforms, such as Microsoft Windows it is not provided as part of the \
+core operating system. This module provides a consistent API to this \
+functionality regardless of the underlying platform."
+
+SECTION = "libs"
+LICENSE = "Artisticv1 | GPLv1+"
+PR = "r0"
+
+MAINTAINER=	"Poky <poky@yoctoproject.org>"
+HOMEPAGE=	"https://metacpan.org/release/File-Which"
+
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 \
+file://${COMMON_LICENSE_DIR}/GPL-1.0;md5=e9e36a9de734199567a4d769498f743d"
+
+SRC_URI = "https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/File-Which-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "115a6efe5d7e9621237fcb655c7a0980"
+SRC_URI[sha256sum] = "9def5f10316bfd944e56b7f8a2501be1d44c288325309462aa9345e340854bcc"
+
+S = "${WORKDIR}/File-Which-${PV}"
+
+inherit cpan
+
+BBCLASSEXTEND = "native"
-- 
2.8.1

[PATCH 4/4] extutils-makemaker-perl: add new recipe

From: <hidden>
Date: 2016-08-26 02:27:29

From: Mingli Yu <redacted>

* Add extutils-makemaker-perl recipe as
  file-homedir-perl depends on
  extutils-makemaker-perl-native

* Add no-packlist-neither-perllocal-legacy.patch
  to avoid generating of .packlist and perllocal.pod
  files to avoid conflicts between packages writing
  same file

Signed-off-by: Mingli Yu <redacted>
---
 .../no-packlist-neither-perllocal-legacy.patch     | 96 ++++++++++++++++++++++
 .../perl/extutils-makemaker-perl_7.10.bb           | 27 ++++++
 2 files changed, 123 insertions(+)
 create mode 100644 meta/recipes-devtools/perl/extutils-makemaker-perl/no-packlist-neither-perllocal-legacy.patch
 create mode 100644 meta/recipes-devtools/perl/extutils-makemaker-perl_7.10.bb
diff --git a/meta/recipes-devtools/perl/extutils-makemaker-perl/no-packlist-neither-perllocal-legacy.patch b/meta/recipes-devtools/perl/extutils-makemaker-perl/no-packlist-neither-perllocal-legacy.patch
new file mode 100644
index 0000000..30e55cb
--- /dev/null
+++ b/meta/recipes-devtools/perl/extutils-makemaker-perl/no-packlist-neither-perllocal-legacy.patch
@@ -0,0 +1,96 @@
+--- a/lib/ExtUtils/MM_Unix.pm	2014-12-02 13:44:33.000000000 +0100
++++ b/lib/ExtUtils/MM_Unix.pm	2015-07-08 12:45:07.000000000 +0200
+@@ -2122,11 +2122,6 @@
+ };
+ 
+     push @m,
+-q{		read "}.$self->catfile('$(PERL_ARCHLIB)','auto','$(FULLEXT)','.packlist').q{" \
+-		write "}.$self->catfile('$(DESTINSTALLARCHLIB)','auto','$(FULLEXT)','.packlist').q{" \
+-} unless $self->{NO_PACKLIST};
+-
+-    push @m,
+ q{		"$(INST_LIB)" "$(DESTINSTALLPRIVLIB)" \
+ 		"$(INST_ARCHLIB)" "$(DESTINSTALLARCHLIB)" \
+ 		"$(INST_BIN)" "$(DESTINSTALLBIN)" \
+@@ -2140,10 +2135,6 @@
+ pure_site_install :: all
+ 	$(NOECHO) $(MOD_INSTALL) \
+ };
+-    push @m,
+-q{		read "}.$self->catfile('$(SITEARCHEXP)','auto','$(FULLEXT)','.packlist').q{" \
+-		write "}.$self->catfile('$(DESTINSTALLSITEARCH)','auto','$(FULLEXT)','.packlist').q{" \
+-} unless $self->{NO_PACKLIST};
+ 
+     push @m,
+ q{		"$(INST_LIB)" "$(DESTINSTALLSITELIB)" \
+@@ -2158,10 +2149,6 @@
+ pure_vendor_install :: all
+ 	$(NOECHO) $(MOD_INSTALL) \
+ };
+-    push @m,
+-q{		read "}.$self->catfile('$(VENDORARCHEXP)','auto','$(FULLEXT)','.packlist').q{" \
+-		write "}.$self->catfile('$(DESTINSTALLVENDORARCH)','auto','$(FULLEXT)','.packlist').q{" \
+-} unless $self->{NO_PACKLIST};
+ 
+     push @m,
+ q{		"$(INST_LIB)" "$(DESTINSTALLVENDORLIB)" \
+@@ -2183,43 +2170,7 @@
+ doc_vendor_install :: all
+ 	$(NOECHO) $(NOOP)
+ 
+-} if $self->{NO_PERLLOCAL};
+-
+-    push @m, q{
+-doc_perl_install :: all
+-	$(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLARCHLIB)/perllocal.pod"
+-	-$(NOECHO) $(MKPATH) "$(DESTINSTALLARCHLIB)"
+-	-$(NOECHO) $(DOC_INSTALL) \
+-		"Module" "$(NAME)" \
+-		"installed into" $(INSTALLPRIVLIB) \
+-		LINKTYPE "$(LINKTYPE)" \
+-		VERSION "$(VERSION)" \
+-		EXE_FILES "$(EXE_FILES)" \
+-		>> "}.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{"
+-
+-doc_site_install :: all
+-	$(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLARCHLIB)/perllocal.pod"
+-	-$(NOECHO) $(MKPATH) "$(DESTINSTALLARCHLIB)"
+-	-$(NOECHO) $(DOC_INSTALL) \
+-		"Module" "$(NAME)" \
+-		"installed into" $(INSTALLSITELIB) \
+-		LINKTYPE "$(LINKTYPE)" \
+-		VERSION "$(VERSION)" \
+-		EXE_FILES "$(EXE_FILES)" \
+-		>> "}.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{"
+-
+-doc_vendor_install :: all
+-	$(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLARCHLIB)/perllocal.pod"
+-	-$(NOECHO) $(MKPATH) "$(DESTINSTALLARCHLIB)"
+-	-$(NOECHO) $(DOC_INSTALL) \
+-		"Module" "$(NAME)" \
+-		"installed into" $(INSTALLVENDORLIB) \
+-		LINKTYPE "$(LINKTYPE)" \
+-		VERSION "$(VERSION)" \
+-		EXE_FILES "$(EXE_FILES)" \
+-		>> "}.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{"
+-
+-} unless $self->{NO_PERLLOCAL};
++};
+ 
+     push @m, q{
+ uninstall :: uninstall_from_$(INSTALLDIRS)dirs
+@@ -2570,14 +2521,6 @@
+ 
+     push @m, q{
+ doc_inst_perl :
+-	$(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLARCHLIB)/perllocal.pod"
+-	-$(NOECHO) $(MKPATH) "$(DESTINSTALLARCHLIB)"
+-	-$(NOECHO) $(DOC_INSTALL) \
+-		"Perl binary" "$(MAP_TARGET)" \
+-		MAP_STATIC "$(MAP_STATIC)" \
+-		MAP_EXTRA "`cat $(INST_ARCHAUTODIR)/extralibs.all`" \
+-		MAP_LIBPERL "$(MAP_LIBPERL)" \
+-		>> "}.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{"
+ 
+ };
+ 
diff --git a/meta/recipes-devtools/perl/extutils-makemaker-perl_7.10.bb b/meta/recipes-devtools/perl/extutils-makemaker-perl_7.10.bb
new file mode 100644
index 0000000..0bcf161
--- /dev/null
+++ b/meta/recipes-devtools/perl/extutils-makemaker-perl_7.10.bb
@@ -0,0 +1,27 @@
+DESCRIPTION = "This utility is designed to write a Makefile for an extension module \
+from a Makefile.PL. It is based on the Makefile.SH model provided by \
+Andy Dougherty and the perl5-porters."
+
+SECTION = "libs"
+LICENSE = "Artistic-1.0 | GPL-2.0"
+PR = "r0"
+
+MAINTAINER=	"Poky <poky@yoctoproject.org>"
+HOMEPAGE=	"https://metacpan.org/release/ExtUtils-MakeMaker"
+
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 \
+file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI = "\
+    https://cpan.metacpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-${PV}.tar.gz \
+    file://no-packlist-neither-perllocal-legacy.patch \
+"
+
+SRC_URI[md5sum] = "2639a21adee5e0a903730c12dcba08ec"
+SRC_URI[sha256sum] = "83b76cd49e458a55774e2e8d87bd1107bc159ba4219600c8ef10c6b43b0d94c5"
+
+S = "${WORKDIR}/ExtUtils-MakeMaker-${PV}"
+
+inherit cpan allarch
+
+BBCLASSEXTEND = "native"
-- 
2.8.1

Re: [PATCH 0/4] groff: add file-homedir-perl to RDEPENDS

From: Burton, Ross <hidden>
Date: 2016-08-26 08:56:00

On 26 August 2016 at 03:25, [off-list ref] wrote:
The series add file-homedir-perl to RDEPENDS for groff as
glilypond rdepends on File/HomeDir.pm provided by file-homedir-perl
Isn't lilypond the music score layout tool?  This seems very specialist.  I
suggest adding the new recipes to meta-perl, and then if someone does want
to use it then the requirements are available.

Unless you're only hitting this because of testing, in which case I'd
suggest skipping this test.

Ross

Re: [PATCH 0/4] groff: add file-homedir-perl to RDEPENDS

From: Yu, Mingli <hidden>
Date: 2016-08-26 09:32:02


On 2016年08月26日 16:55, Burton, Ross wrote:
On 26 August 2016 at 03:25, <mingli.yu@windriver.com
<mailto:mingli.yu@windriver.com>> wrote:

    The series add file-homedir-perl to RDEPENDS for groff as
    glilypond rdepends on File/HomeDir.pm provided by file-homedir-perl


Isn't lilypond the music score layout tool?
glilypond which is provided by groff transforms sheet music written in 
the lilypond language into the groff language using the .PSPIC request, 
such that groff can transform it into a format that can be displayed 
directly.

  This seems very
specialist.  I suggest adding the new recipes to meta-perl, and then if
someone does want to use it then the requirements are available.

Unless you're only hitting this because of testing, in which case I'd
suggest skipping this test.
The command glilypond needs File::HomeDir perl module which is provided 
by file-homedir-perl

Thanks,
Grace
Ross

Re: [PATCH 0/4] groff: add file-homedir-perl to RDEPENDS

From: Yu, Mingli <hidden>
Date: 2016-09-02 01:58:02

ping

Thanks,

On 2016年08月26日 17:28, Yu, Mingli wrote:

On 2016年08月26日 16:55, Burton, Ross wrote:
quoted
On 26 August 2016 at 03:25, <mingli.yu@windriver.com
<mailto:mingli.yu@windriver.com>> wrote:

    The series add file-homedir-perl to RDEPENDS for groff as
    glilypond rdepends on File/HomeDir.pm provided by file-homedir-perl


Isn't lilypond the music score layout tool?
glilypond which is provided by groff transforms sheet music written in
the lilypond language into the groff language using the .PSPIC request,
such that groff can transform it into a format that can be displayed
directly.

  This seems very
quoted
specialist.  I suggest adding the new recipes to meta-perl, and then if
someone does want to use it then the requirements are available.

Unless you're only hitting this because of testing, in which case I'd
suggest skipping this test.
The command glilypond needs File::HomeDir perl module which is provided
by file-homedir-perl

Thanks,
Grace
quoted
Ross

Re: [PATCH 0/4] groff: add file-homedir-perl to RDEPENDS

From: Richard Purdie <hidden>
Date: 2016-09-02 11:41:44

On Fri, 2016-09-02 at 09:54 +0800, Yu, Mingli wrote:
ping
I'm with Ross here. We don't often have need for sheet music conversion
in groff in embedded or IoT devices. I'd prefer to have configuration
to disable this.

Cheers,

Richard

Re: [PATCH 0/4] groff: add file-homedir-perl to RDEPENDS

From: Yu, Mingli <hidden>
Date: 2016-09-05 01:54:55


On 2016年09月02日 19:41, Richard Purdie wrote:
On Fri, 2016-09-02 at 09:54 +0800, Yu, Mingli wrote:
quoted
ping
I'm with Ross here. We don't often have need for sheet music conversion
in groff in embedded or IoT devices. I'd prefer to have configuration
to disable this.
Okay, thanks Richard for respond!

Thanks,
Cheers,

Richard

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help