Skip to contentSkip to conversation

groff: add file-homedir-perl to RDEPENDS

PATCH In review [email protected] 3 participants 10 messages Aug 26, 2016 – Sep 5, 2016

lore
Share & tools
lore
#0 lore raw

cover groff: add file-homedir-perl to RDEPENDS

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

#1 lore raw

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

From: Mingli Yu <[email protected]>

* 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.
---
 meta/recipes-extended/groff/groff_1.22.3.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/groff/groff_1.22.3.bb +1 -1
index af5acbe..7ea028f 100644
@@ -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
 
Signature · 1 line
2.8.1
#2 lore raw

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

In reply to [email protected]

From: Mingli Yu <[email protected]>

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

---
 .../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
meta/recipes-devtools/perl/file-homedir-perl_1.00.bb new file +32 -0
new file mode 100644
index 0000000..1609b5e
@@ -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 <[email protected]>"
+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"
Signature · 1 line
2.8.1
#3 lore raw

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

In reply to [email protected]

From: Mingli Yu <[email protected]>

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

---
 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
meta/recipes-devtools/perl/file-which-perl_1.21.bb new file +27 -0
new file mode 100644
index 0000000..ac9c0e5
@@ -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 <[email protected]>"
+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"
Signature · 1 line
2.8.1
#4 lore raw

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

In reply to [email protected]

From: Mingli Yu <[email protected]>

* 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

---
 .../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
meta/recipes-devtools/perl/extutils-makemaker-perl/no-packlist-neither-perllocal-legacy.patch new file +96 -0
new file mode 100644
index 0000000..30e55cb
@@ -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{"
+ 
+ };
+ 
meta/recipes-devtools/perl/extutils-makemaker-perl_7.10.bb new file +27 -0
new file mode 100644
index 0000000..0bcf161
@@ -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 <[email protected]>"
+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"
Signature · 1 line
2.8.1
#5 lore raw
In reply to [email protected]
Quoted 3 lines · On 26 August 2016 at 03:25, <[email protected]> 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

author
#6 lore raw
Quoted 9 lines · Ross

On 26 August 2016 at 03:25, <[email protected] <mailto:[email protected]>> 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 5 lines

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 2 lines

Ross

author
#7 lore raw

ping

Thanks,

Quoted 33 lines · Mingli
Quoted 9 lines · Ross

On 26 August 2016 at 03:25, <[email protected] <mailto:[email protected]>> 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 5 lines

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 2 lines

Ross

#8 lore raw
Quoted 1 line · Mingli

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

author
#9 lore raw
Quoted 6 lines · Richard Purdie
Quoted 1 line · Mingli

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,

Quoted 5 lines

Cheers,

Richard