Commit Graph

36 Commits

Author SHA1 Message Date
Robert Yang 9356d02da0 groff: replace "perl -w" with "use warnings"
The shebang's max length is usually 128 as defined in
/usr/include/linux/binfmts.h:
  #define BINPRM_BUF_SIZE 128

There would be errors when @PERL@ (hostools/perl) is longer than 128,
use '/usr/bin/env perl' can fix the problem, but '/usr/bin/env perl -w'
doesn't work:

/usr/bin/env: perl -w: No such file or directory

So replace "perl -w" with "use warnings" to make it work.

(From OE-Core rev: f3408bcf9d2710b07f5825683931e28571de130c)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-10 23:00:43 +01:00
Richard Purdie 2345af9b48 recipes: Move out stale GPLv2 versions to a seperate layer
These are recipes where the upstream has moved to GPLv3 and these old
versions are the last ones under the GPLv2 license.

There are several reasons for making this move. There is a different
quality of service with these recipes in that they don't get security
fixes and upstream no longer care about them, in fact they're actively
hostile against people using old versions. The recipes tend to need a
different kind of maintenance to work with changes in the wider ecosystem
and there needs to be isolation between changes made in the v3 versions
and those in the v2 versions.

There are probably better ways to handle a "non-GPLv3" system but right
now having these in OE-Core makes them look like a first class citizen
when I believe they have potential for a variety of undesireable issues.

Moving them into a separate layer makes their different needs clearer, it
also makes it clear how many of these there are. Some are probably not
needed (e.g. mc), I also wonder whether some are useful (e.g. gmp)
since most things that use them are GPLv3 only already. Someone could
now more clearly see how to streamline the list of recipes here.

I'm proposing we mmove to this separate layer for 2.3 with its future
maintinership and testing to be determined in 2.4 and beyond.

(From OE-Core rev: 19b7e950346fb1dde6505c45236eba6cd9b33b4b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-07 20:05:31 +00:00
Mingli Yu 2833b4008a groff: not ship /usr/bin/glilypond
Not ship /usr/bin/glilypond and related files such
as man file /usr/share/man/man1/glilypond.1 and other
three files related to glilypond under
/usr/lib/groff/glilypond in embedded system, it is because:

- Remove the confusion about glilypond fails to run
  because it lacks dependency on File::HomeDir perl
  module

- We don't often have need for sheet music conversion
  in groff in embedded or IoT devices (glilypond
  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).

(From OE-Core rev: 9a0bf9567f80f06ea067189bf5c27bb5155a85b0)

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-09-20 15:11:07 +01:00
Zhenbo Gao 051d7aa18e groff: correct the location path for awk
awk is located at /usr/bin/, but not /bin/

(From OE-Core rev: a3d9d310866fe37f9c072bc81203cbf1b7ca688b)

Signed-off-by: Zhenbo Gao <zhenbo.gao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-08-25 23:03:49 +01:00
Hongxu Jia 564657edae groff_1.18.1.4: fix narrowing conversion error
While gcc6 used, build old groff (for anti-GPLv3 reasons) failed:
.....
|groff-1.18.1.4/src/devices/grolbp/charset.h:69:1: error: narrowing
conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
......

In upstream git://git.savannah.gnu.org/groff.git,
the following commit fix the issue, but the license is GPLV3,
we could not backport it to the old groff which license is GPLV2.
...
commit d180038ae0da19655bc2760ae2043efa0550a76c
Author: Werner LEMBERG <wl@gnu.org>
Date:   Wed Apr 16 21:11:07 2003 +0000
    * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
...

We use another different way to fix the issue.

[YOCTO #9896]

(From OE-Core rev: 0d79e7b4373053a7f20f18ed962c5a17a969e57e)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-08-04 15:22:21 +01:00
Ross Burton 1c914a844b meta: Fix Upstream-Status statements
Fix a variety of problems such as typos, bad punctuations, or incorrect
Upstream-Status values.

(From OE-Core rev: bd220fe6ce8c3a0805f13a14706d3130ea872604)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-09-12 23:01:53 +01:00
Paul Eggleton ddc1df3e80 Use die() or bbfatal_log() where the log should definitely be printed
Change calls to bbfatal() to either die() or bbfatal_log() where we know
we want the full log to be printed by the UI (calling bberror or bbfatal
would otherwise suppress it since the change to connect these functions
through to the UI.) bbfatal() is still fine to use where there is enough
context information in the message such that the log isn't needed.

(From OE-Core rev: 04ed9a19e1b08003329138b8ab83691d13c11fd9)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-07-16 15:09:23 +01:00
Khem Raj 7283022619 recipes: Fix charset.alias for musl
This is same gnulib fix replicated across needed recipes

Change-Id: I756713407111a726eae98e26c9c1ff64981371c0
(From OE-Core rev: fbe6d2c12aa9f7956bc87efeb68cb64b26b60c7a)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-04-21 07:20:25 +01:00
Dmitry Eremin-Solenikov 32d23513c8 groff: fix RDEPENDS
RDEPENDS_${PN} is appended with "sed" and on the following line it's fixed
to just "perl". Merge both lines to have correct RDEPENDS.

(From OE-Core rev: 5519d245dcf698b57949d29fc777928952a3f992)

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-04-19 13:34:42 +01:00
Dmitry Eremin-Solenikov 5dff87d06c groff: add runtime dependency on sed
This is to suppress the following QA warning:
groff-1.22.2: groff requires /bin/sed, but no providers in its RDEPENDS [file-rdeps]

(From OE-Core rev: 1763ff614d11c78bf36d80d27dd6a4f45cbea070)

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-04-13 22:33:22 +01:00
Robert Yang 23a8493408 groff: 1.22.2 -> 1.22.3
* Updated groff-1.22.2-correct-man.local-install-path.patch

* Add perl to RDEPENDS_groff since there are a few perl scripts:
  groff/usr/bin/roff2pdf:#! /usr/bin/env perl
  groff/usr/bin/afmtodit:#! /usr/bin/env perl -w
  groff/usr/bin/roff2dvi:#! /usr/bin/env perl
  groff/usr/bin/roff2text:#! /usr/bin/env perl
  groff/usr/bin/glilypond:#! /usr/bin/env perl
  groff/usr/bin/roff2ps:#! /usr/bin/env perl
  groff/usr/bin/gperl:#! /usr/bin/env perl
  groff/usr/bin/mmroff:#! /usr/bin/env perl
  groff/usr/bin/gpinyin:#! /usr/bin/env perl
  groff/usr/bin/roff2html:#! /usr/bin/env perl
  groff/usr/bin/grog:#! /usr/bin/env perl
  groff/usr/bin/gropdf:#! /usr/bin/env perl -w
  groff/usr/bin/pdfmom:#! /usr/bin/env perl -w
  groff/usr/bin/chem:#! /usr/bin/env perl
  groff/usr/bin/roff2x:#! /usr/bin/env perl
  groff/usr/bin/groffer:#! /usr/bin/env perl
  groff/usr/lib64/groff/gpinyin/subs.pl:#! /usr/bin/env perl
  groff/usr/lib64/groff/grog/subs.pl:#! /usr/bin/env perl
  groff/usr/lib64/groff/groffer/subs.pl:#! /usr/bin/env perl
  groff/usr/lib64/groff/groffer/man.pl:#! /usr/bin/env perl
  groff/usr/lib64/groff/groffer/main_subs.pl:#! /usr/bin/env perl

* Fix the dangling /usr/bin/perl or /bin/perl for grog.

(From OE-Core rev: f516c288d37e53856bce273af2cdbf24f3f5a6e1)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-04-13 22:33:18 +01:00
Robert Yang 75c16c0cdc groff: fix HOMEPAGE
(From OE-Core rev: 55d0a51a683e00eb129521c74c1d8adc27ce2dea)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-03-22 08:50:01 +00:00
Robert Yang d31ec825bd groff 1.18.1.4: fix HOMEPAGE and SRC_URI
The upstream has moved tarball to "old" dir.

(From OE-Core rev: 22c5aa534943b6f6e801da2cf33b66b739c0e22e)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-02-08 08:00:28 +00:00
Robert Yang 037aa4af3a groff: fix PERLPATH
There is no PERLPATH, but "${USRBINPATH}/env perl".

(From OE-Core rev: 103d668cece420447c12987119459ebd49c208df)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-16 10:20:49 +01:00
Ming Liu 42806c7c7b groff: fix bindir transaction error
bindir is transfered to Makefile as ${D}${bindir}, hence it should not
use DESTDIR as the prefix directory any more during the install.

(From OE-Core rev: c050e5c9490e9e8e07db7fbd5e6c1e1dbef3bf8c)

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-08 11:20:12 +01:00
Ming Liu 58744f8e59 groff: Fix build on Fedora 17 for 1.18.1.4
The commit 79fc5576:
[ groff: Fix build on Fedora 17 ]

was applied to 1.22.2, but it's also needed by 1.18.1.4 to solve a same
issue.

(From OE-Core rev: b019f2cdacfb64f149483df8a5b6b7b3f7943222)

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-03 13:57:07 +01:00
Ming Liu 8a185784d2 groff: remove redundant code snippet
The exact same code snippet exists both in do_install_append and
do_install_append_class-native which is not necessary.

Remove it from do_install_append_class-native.

(From OE-Core rev: 0f107a76713cebb49004d48fd410d9f014dda4b3)

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-03 13:57:07 +01:00
Max Eliaser 64df4e4aef Add texinfo.bbclass; recipes that use texinfo utils at build-time inherit it.
The class itself currently does nothing. The idea is to mark all recipes that
make use of the texinfo utilities. In the future, this class could be used to
suppress the generation/formatting of documentation for performance,
explicitly track dependencies on these utilities, and eliminate Yocto's
current dependency on the host system's texinfo utilities.

(From OE-Core rev: e6fb2f9afe2ba6b676c46d1eb297ca9cc532d405)

Signed-off-by: Max Eliaser <max.eliaser@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-05-02 20:46:59 +01:00
Chen Qi 2e0f7cfe0e groff: fix pkg_postinst and remove unneeded do_install_prepend
Fix to take $D into consideration in pkg_postinst so that the postinst
script could run at rootfs time.

The existence of ${D} is ensured by the in base.bbclass.
    do_install[dirs] = "${D} ${S} ${B}"
So there's no need for this do_install_prepend.

(From OE-Core rev: 4facf4df0bc0d71d11ba53737faff6f2c6e5863b)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-11-01 11:09:05 +00:00
Saul Wold 80f6f35cd2 groff: Add GPLv2 version
Apparrently a LICENSE change was missed, so we add the GPLv2 version back in

(From OE-Core rev: 002818712fab5c6325b1f7205512945ea87ad76c)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-08-13 23:06:02 +01:00
Saul Wold 7677dac20d groff: Fix License to be GPLv3
(From OE-Core rev: 4090c4d9b204118ec9826db02b0739ce60563dd4)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-08-13 23:06:02 +01:00
Zhenhua Luo d5d61146b4 groff: correct the install path of man.local
openvswitch build failed due to wrong install path of man.local which is
provided by groff.

Error log:
  /yocto/build/tmp/sysroots/x86_64-linux/usr/share/groff/1.22.2/tmac/an-old.tmac:690:
  warning: can't find macro file `man.local'

(From OE-Core rev: 5f2dd65e758ead8177a1cdda047bdb105b96e208)

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-06-28 09:14:06 +01:00
Constantin Musca c071797503 groff: upgrade to 1.22.2
- add code for generating the gnulib configure script
- replace /usr/bin/perl with /usr/bin/env perl

(From OE-Core rev: c205124d135935855b9b479125f5bddce96a2872)

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-02-22 06:09:21 -08:00
Robert Yang d005b787df recipes-extended: replace virtclass-native(sdk) with class-native(sdk)
The overrides virtclass-native and virtclass-nativesdk are deprecated,
which should be replaced by class-native and class-nativesdk.

[YOCTO #3297]

(From OE-Core rev: 528b4ab831c7b0bc1412318d29e2b7f9cf711d57)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-11-02 16:18:29 +00:00
Richard Purdie ac7a031182 bitbake.conf: Define USRBINPATH globally instead of individually
Many recipes are now having to define PERLPATH and PYTHONPATH variables.
Creating USRBINPATH in bitbake.conf means we can remove all these lines
from the many recipes now needing this and simplify the code changes
needed in each case, reducing the chance of errors being introduced.

Also fixup glib python binary location issue and fix function indentation.

(From OE-Core rev: cf63d9068c3a8c635dfc240d30dfff278be9b0e2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-07-18 22:18:52 +01:00
Saul Wold 5658c12723 groff: clean up FILE after PACKAGE reorder
(From OE-Core rev: 12d33832a56fc47db47acec1ac497ce015ef6b80)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-06-21 13:02:59 +01:00
Song.Li d56659e0a3 groff: Fix build on Fedora 17
Generally distros keep perl at /usr/bin/perl
But Fedora 17 also has /bin/perl,
this causes groff_1.20.1 build to put perl
interpreter path as /bin/perl
But we set perl location for target as /usr/bin/perl

This mismatch of perl path causes failure of rootfs image creation
like this:

| error: Failed dependencies:
|       bin/perl is needed by groff-1.20.1-r1.ppc603e

(From OE-Core rev: 79fc557683d4eeadaebeb00dfba53762956e4910)

Signed-off-by: Song.Li <song.li@windriver.com>

Sync up with the do_install_append_virtclass-native chunk.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-06-08 11:43:20 +01:00
Saul Wold 75ff724be4 groff: Fix sstate relocation issue
[YOCTO #1439]

This fixes a problem where the native groff has a path hard coded into
it, therefor add a wrapper to set the command line with the correct
paths for fonts and tmac directories.

(From OE-Core rev: 9106e2922ba5972e3b87436372a12c2e04e9eb65)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-05 17:59:51 +01:00
Tom Rini b85a1e05b0 groff: Disable x11 support
groff will build with, or without x11 support depending on if X has
been built already or not.  Disable x11 support for consistency.

(From OE-Core rev: f0cf02ac0fae12cad8895fa1a9f49b0bc68c356d)

Signed-off-by: Tom Rini <tom_rini@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-14 15:02:28 +01:00
Kang Kai d2c84ea13d groff: update to 1.20.1
Update groff to 1.20.1, add SUMMARY and LICENSE info
From OE 70bf94cd8669f549ca90581e9592d409b6e24e2e
Fixes [Yocto 879]

(From OE-Core rev: 6c5cbb73550639ec71cb9564883253dbe1c09f36)

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-04 00:54:34 +01:00
Tom Rini bc7967f041 Various: Switch to using GNU_MIRROR
(From OE-Core rev: bd9e899d1b07813c78f2dc2e5c46a67937839065)

Signed-off-by: Tom Rini <tom_rini@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-23 15:44:02 +00:00
Mark Hatle f992d6b434 recipes-extended: Add Summary information
Add Summary information and update descriptions as necessary.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2010-12-16 15:53:08 +00:00
Darren Hart 03ae4a68cb Correct LIC_FILES_CHKSUM typos
An investigation into undocumented variables uncovered a handful
of LIC_FILES_CHKSUM spelling errors

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
2010-12-10 22:01:44 -08:00
Saul Wold 3d08b9f2c6 SRC_URI Checksums Additionals
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2010-12-09 08:18:17 -08:00
Xiaofeng Yan 23bfe02542 [#BUG298]:Fix some bugs during compiling based on x86_64
fix a problem that compliation failed for groff on machine x86_64
Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
2010-09-22 00:03:00 +01:00
Xiaofeng Yan ef8d4dc7d5 groff:Add new groff package
groff allows for a short reference for the GNU roff language

Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
2010-09-08 16:36:53 -07:00