diff options
author | Ross Burton <ross.burton@arm.com> | 2023-06-19 12:49:27 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-20 23:24:26 +0100 |
commit | 6a7a4e40d5da99fd45023860becebc6bef481d45 (patch) | |
tree | 200a664d20df5dff5366f9f80e3c70cf73d32c6b /meta/recipes-extended/ghostscript/ghostscript/mkdir-p.patch | |
parent | 89e2844fdcee07b69ef4aea7bd57d3d87ab1f114 (diff) | |
download | poky-6a7a4e40d5da99fd45023860becebc6bef481d45.tar.gz |
ghostscript: mostly rewrite recipe
This started as a patch cleanup but escalated rapidly.
Remove unneeded patches:
- mkdir-p.patch isn't needed now the Makefiles appear to have the correct
dependencies.
- ghostscript-9.15-parallel-make.patch appears to be unneeded for the same
reason
- base-genht.c-add-a-preprocessor-define-to-allow-fope.patch isn't needed
- cups-no-gcrypt.patch isn't needed
- do-not-check-local-libpng-source.patch can be replaced by deleting
the libpng/ directory, as is already done for jpeg/
- ghostscript-9.21-native-fix-disable-system-libtiff.patch is not needed
when we stop doing native builds (see below)
Remove the need for ghostscript-native to build and install tools that
are needed at target build-time: ghostscript can do this itself. Remove
the BBCLASSEXTEND and all of the native overrides.
Inherit pkgconfig and explicitly tell configure to use the pkgconfig
binary: unless told otherwise this configure will refuse to use an
unprefixed pkgconfig in cross builds.
Review DEPENDS and add missing freetype and zlib dependencies.
Ghostcript will use the embedded copies of libraries over system
libraries, so extend the deletion of jpeg and libpng to include expat,
freetype, and cups as we want to link to our build of those. We can't
delete zlib as it is explicitly used when building the native tools.
Add PACKAGECONFIGs for optional libidn and libpaper dependencies.
Remove HAVE_SYS_TIME_H assignments, the upstream bug was fixed in 2011.
Clean up comments: there's no need to explain how to use PACKAGECONFIG,
and justify the use of autotools-brokensep.
(From OE-Core rev: b62e6d676ce2075a52eea729957f186cfb3bd42b)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/ghostscript/ghostscript/mkdir-p.patch')
-rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript/mkdir-p.patch | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/meta/recipes-extended/ghostscript/ghostscript/mkdir-p.patch b/meta/recipes-extended/ghostscript/ghostscript/mkdir-p.patch deleted file mode 100644 index 3e6d3e3c48..0000000000 --- a/meta/recipes-extended/ghostscript/ghostscript/mkdir-p.patch +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
1 | From 2b23026f8e2a352417fb1c4da94bf69b19bef267 Mon Sep 17 00:00:00 2001 | ||
2 | From: Joe Slater <joe.slater@windriver.com> | ||
3 | Date: Thu, 29 Mar 2018 16:04:32 +0800 | ||
4 | Subject: [PATCH 05/10] ghostscript: allow directories to be created more than | ||
5 | once | ||
6 | |||
7 | When doing parallel builds, we might try to create directories | ||
8 | more than once. This should not cause an error. | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Joe Slater <joe.slater@windriver.com> | ||
13 | |||
14 | Rebase to 9.23 | ||
15 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
16 | --- | ||
17 | base/unix-end.mak | 17 ++++++++--------- | ||
18 | 1 file changed, 8 insertions(+), 9 deletions(-) | ||
19 | |||
20 | diff --git a/base/unix-end.mak b/base/unix-end.mak | ||
21 | index 9ce599a..feff5a6 100644 | ||
22 | --- a/base/unix-end.mak | ||
23 | +++ b/base/unix-end.mak | ||
24 | @@ -17,15 +17,14 @@ | ||
25 | UNIX_END_MAK=$(GLSRC)unix-end.mak $(TOP_MAKEFILES) | ||
26 | # Define the rule for building standard configurations. | ||
27 | directories: $(UNIX_END_MAK) | ||
28 | - @if test "$(BINDIR)" != "" -a ! -d $(BINDIR); then mkdir $(BINDIR); fi | ||
29 | - @if test "$(GLGENDIR)" != "" -a ! -d $(GLGENDIR); then mkdir $(GLGENDIR); fi | ||
30 | - @if test "$(GLOBJDIR)" != "" -a ! -d $(GLOBJDIR); then mkdir $(GLOBJDIR); fi | ||
31 | - @if test "$(DEVGENDIR)" != "" -a ! -d $(DEVGENDIR); then mkdir $(DEVGENDIR); fi | ||
32 | - @if test "$(DEVOBJDIR)" != "" -a ! -d $(DEVOBJDIR); then mkdir $(DEVOBJDIR); fi | ||
33 | - @if test "$(AUXDIR)" != "" -a ! -d $(AUXDIR); then mkdir $(AUXDIR); fi | ||
34 | - @if test "$(PSGENDIR)" != "" -a ! -d $(PSGENDIR); then mkdir $(PSGENDIR); fi | ||
35 | - @if test "$(PSGENDIR)" != "" -a ! -d $(PSGENDIR)/cups; then mkdir $(PSGENDIR)/cups; fi | ||
36 | - @if test "$(PSOBJDIR)" != "" -a ! -d $(PSOBJDIR); then mkdir $(PSOBJDIR); fi | ||
37 | + @if test "$(BINDIR)" != "" -a ! -d $(BINDIR); then mkdir -p $(BINDIR); fi | ||
38 | + @if test "$(GLGENDIR)" != "" -a ! -d $(GLGENDIR); then mkdir -p $(GLGENDIR); fi | ||
39 | + @if test "$(GLOBJDIR)" != "" -a ! -d $(GLOBJDIR); then mkdir -p $(GLOBJDIR); fi | ||
40 | + @if test "$(DEVGENDIR)" != "" -a ! -d $(DEVGENDIR); then mkdir -p $(DEVGENDIR); fi | ||
41 | + @if test "$(DEVOBJDIR)" != "" -a ! -d $(DEVOBJDIR); then mkdir -p $(DEVOBJDIR); fi | ||
42 | + @if test "$(AUXDIR)" != "" -a ! -d $(AUXDIR); then mkdir -p $(AUXDIR); fi | ||
43 | + @if test "$(PSGENDIR)" != "" -a ! -d $(PSGENDIR)/cups; then mkdir -p $(PSGENDIR)/cups; fi | ||
44 | + @if test "$(PSOBJDIR)" != "" -a ! -d $(PSOBJDIR); then mkdir -p $(PSOBJDIR); fi | ||
45 | |||
46 | |||
47 | gs: .gssubtarget $(UNIX_END_MAK) | ||
48 | -- | ||
49 | 1.8.3.1 | ||
50 | |||