mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-07-21 20:51:09 +02:00
Merge pull request #2722 from swt2c/build_wxwidgets_newer_libtiff
Some checks failed
ci-build / build-source-dist (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.10) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.11) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.12) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.13) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.13) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.13) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.13) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.9) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.10) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.11) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.12) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.13) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.9) (push) Has been cancelled
ci-build / Build wxPython documentation (push) Has been cancelled
ci-build / Publish Python distribution to PyPI (push) Has been cancelled
ci-build / Create GitHub Release and upload source (push) Has been cancelled
ci-build / Upload wheels to snapshot-builds on wxpython.org (push) Has been cancelled
Some checks failed
ci-build / build-source-dist (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.10) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.11) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.12) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.13) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.13) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.13) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.13) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.9) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.10) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.11) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.12) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.13) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.9) (push) Has been cancelled
ci-build / Build wxPython documentation (push) Has been cancelled
ci-build / Publish Python distribution to PyPI (push) Has been cancelled
ci-build / Create GitHub Release and upload source (push) Has been cancelled
ci-build / Upload wheels to snapshot-builds on wxpython.org (push) Has been cancelled
Build wxWidgets with libtiff v4.7.0 and pcre v10.44
This commit is contained in:
5
.github/workflows/ci-build.yml
vendored
5
.github/workflows/ci-build.yml
vendored
@@ -53,6 +53,9 @@ jobs:
|
||||
submodules: 'recursive'
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Checkout specific submodule refs
|
||||
run: buildtools/checkout_submodule_refs.sh
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
@@ -61,7 +64,7 @@ jobs:
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get install -y gettext
|
||||
sudo apt-get install -y gettext dos2unix
|
||||
python -m pip install --upgrade -r requirements.txt
|
||||
|
||||
- name: Generate wrapper code
|
||||
|
8
build.py
8
build.py
@@ -2261,6 +2261,14 @@ def cmd_sdist(options, args):
|
||||
copyFile(opj(PDEST, '{}.egg-info/PKG-INFO'.format(baseName)),
|
||||
opj(PDEST, 'PKG-INFO'))
|
||||
|
||||
# (TEMP) apply patch to wxWidgets for building newer libraries
|
||||
msg('Applying patches...')
|
||||
pwd = pushDir(PDEST)
|
||||
runcmd('dos2unix ext/wxWidgets/build/msw/makefile.vc')
|
||||
runcmd('patch -p1 -d ext/wxWidgets -i ../../buildtools/newer_libtiff_pcre.patch')
|
||||
runcmd('unix2dos ext/wxWidgets/build/msw/makefile.vc')
|
||||
del pwd
|
||||
|
||||
# build the tarball
|
||||
msg('Archiving Phoenix source...')
|
||||
rootname = "%s-%s" % (baseName, cfg.VERSION)
|
||||
|
10
buildtools/checkout_submodule_refs.sh
Executable file
10
buildtools/checkout_submodule_refs.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# This script is used by CI jobs to update the git submodules in wxWidgets to
|
||||
# newer versions than are currently in the wx 3.2 branch (mostly for security
|
||||
# reasons.
|
||||
|
||||
set -e
|
||||
|
||||
pushd ext/wxWidgets/src/tiff && git checkout 4ab5e7a6aeacf09699e91300da9310874641053f && popd
|
||||
pushd ext/wxWidgets/3rdparty/pcre && git checkout b4b4098743aaa80ec78ea18da2f175c1b26dda18 && popd
|
121
buildtools/newer_libtiff_pcre.patch
Normal file
121
buildtools/newer_libtiff_pcre.patch
Normal file
@@ -0,0 +1,121 @@
|
||||
From 6f80b7033bf4c79c160d1a58e14a5e78de17b449 Mon Sep 17 00:00:00 2001
|
||||
From: Scott Talbert <swt@techie.net>
|
||||
Date: Tue, 8 Apr 2025 19:01:23 -0400
|
||||
Subject: [PATCH] Update makefiles to build with newer tiff and pcre
|
||||
|
||||
---
|
||||
Makefile.in | 12 ++++++++++++
|
||||
build/msw/makefile.vc | 12 ++++++++++++
|
||||
2 files changed, 24 insertions(+)
|
||||
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index 49deccbbaf..a562cecc93 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -90,6 +90,7 @@ WXREGEX_CFLAGS = $(WX_CPPFLAGS) -DNDEBUG \
|
||||
$(____SHARED) $(CPPFLAGS) $(CFLAGS)
|
||||
WXREGEX_OBJECTS = \
|
||||
wxregex_pcre2_auto_possess.o \
|
||||
+ wxregex_pcre2_chkdint.o \
|
||||
wxregex_pcre2_compile.o \
|
||||
wxregex_pcre2_config.o \
|
||||
wxregex_pcre2_context.o \
|
||||
@@ -231,9 +232,11 @@ WXTIFF_OBJECTS = \
|
||||
wxtiff_tif_fax3sm.o \
|
||||
wxtiff_tif_flush.o \
|
||||
wxtiff_tif_getimage.o \
|
||||
+ wxtiff_tif_hash_set.o \
|
||||
wxtiff_tif_jbig.o \
|
||||
wxtiff_tif_jpeg.o \
|
||||
wxtiff_tif_jpeg_12.o \
|
||||
+ wxtiff_tif_lerc.o \
|
||||
wxtiff_tif_luv.o \
|
||||
wxtiff_tif_lzma.o \
|
||||
wxtiff_tif_lzw.o \
|
||||
@@ -14962,6 +14965,9 @@ locale_uninstall:
|
||||
wxregex_pcre2_auto_possess.o: $(srcdir)/3rdparty/pcre/src/pcre2_auto_possess.c
|
||||
$(CCC) -c -o $@ $(WXREGEX_CFLAGS) $(srcdir)/3rdparty/pcre/src/pcre2_auto_possess.c
|
||||
|
||||
+wxregex_pcre2_chkdint.o: $(srcdir)/3rdparty/pcre/src/pcre2_chkdint.c
|
||||
+ $(CCC) -c -o $@ $(WXREGEX_CFLAGS) $(srcdir)/3rdparty/pcre/src/pcre2_chkdint.c
|
||||
+
|
||||
wxregex_pcre2_compile.o: $(srcdir)/3rdparty/pcre/src/pcre2_compile.c
|
||||
$(CCC) -c -o $@ $(WXREGEX_CFLAGS) $(srcdir)/3rdparty/pcre/src/pcre2_compile.c
|
||||
|
||||
@@ -15346,6 +15352,9 @@ wxtiff_tif_flush.o: $(srcdir)/src/tiff/libtiff/tif_flush.c
|
||||
wxtiff_tif_getimage.o: $(srcdir)/src/tiff/libtiff/tif_getimage.c
|
||||
$(CCC) -c -o $@ $(WXTIFF_CFLAGS) $(srcdir)/src/tiff/libtiff/tif_getimage.c
|
||||
|
||||
+wxtiff_tif_hash_set.o: $(srcdir)/src/tiff/libtiff/tif_hash_set.c
|
||||
+ $(CCC) -c -o $@ $(WXTIFF_CFLAGS) $(srcdir)/src/tiff/libtiff/tif_hash_set.c
|
||||
+
|
||||
wxtiff_tif_jbig.o: $(srcdir)/src/tiff/libtiff/tif_jbig.c
|
||||
$(CCC) -c -o $@ $(WXTIFF_CFLAGS) $(srcdir)/src/tiff/libtiff/tif_jbig.c
|
||||
|
||||
@@ -15355,6 +15364,9 @@ wxtiff_tif_jpeg.o: $(srcdir)/src/tiff/libtiff/tif_jpeg.c
|
||||
wxtiff_tif_jpeg_12.o: $(srcdir)/src/tiff/libtiff/tif_jpeg_12.c
|
||||
$(CCC) -c -o $@ $(WXTIFF_CFLAGS) $(srcdir)/src/tiff/libtiff/tif_jpeg_12.c
|
||||
|
||||
+wxtiff_tif_lerc.o: $(srcdir)/src/tiff/libtiff/tif_lerc.c
|
||||
+ $(CCC) -c -o $@ $(WXTIFF_CFLAGS) $(srcdir)/src/tiff/libtiff/tif_lerc.c
|
||||
+
|
||||
wxtiff_tif_luv.o: $(srcdir)/src/tiff/libtiff/tif_luv.c
|
||||
$(CCC) -c -o $@ $(WXTIFF_CFLAGS) $(srcdir)/src/tiff/libtiff/tif_luv.c
|
||||
|
||||
diff --git a/build/msw/makefile.vc b/build/msw/makefile.vc
|
||||
index f1d20ad7f4..3efd7d8ea3 100644
|
||||
--- a/build/msw/makefile.vc
|
||||
+++ b/build/msw/makefile.vc
|
||||
@@ -48,6 +48,7 @@ WXREGEX_CFLAGS = /M$(__RUNTIME_LIBS_10)$(__DEBUGRUNTIME) /DWIN32 \
|
||||
$(CPPFLAGS) $(CFLAGS)
|
||||
WXREGEX_OBJECTS = \
|
||||
$(OBJS)\wxregex_pcre2_auto_possess.obj \
|
||||
+ $(OBJS)\wxregex_pcre2_chkdint.obj \
|
||||
$(OBJS)\wxregex_pcre2_compile.obj \
|
||||
$(OBJS)\wxregex_pcre2_config.obj \
|
||||
$(OBJS)\wxregex_pcre2_context.obj \
|
||||
@@ -202,9 +203,11 @@ WXTIFF_OBJECTS = \
|
||||
$(OBJS)\wxtiff_tif_fax3sm.obj \
|
||||
$(OBJS)\wxtiff_tif_flush.obj \
|
||||
$(OBJS)\wxtiff_tif_getimage.obj \
|
||||
+ $(OBJS)\wxtiff_tif_hash_set.obj \
|
||||
$(OBJS)\wxtiff_tif_jbig.obj \
|
||||
$(OBJS)\wxtiff_tif_jpeg.obj \
|
||||
$(OBJS)\wxtiff_tif_jpeg_12.obj \
|
||||
+ $(OBJS)\wxtiff_tif_lerc.obj \
|
||||
$(OBJS)\wxtiff_tif_luv.obj \
|
||||
$(OBJS)\wxtiff_tif_lzma.obj \
|
||||
$(OBJS)\wxtiff_tif_lzw.obj \
|
||||
@@ -6498,6 +6501,9 @@ build_cfg_file: $(SETUPHDIR)
|
||||
$(OBJS)\wxregex_pcre2_auto_possess.obj: ..\..\3rdparty\pcre\src\pcre2_auto_possess.c
|
||||
$(CC) /c /nologo /TC /Fo$@ $(WXREGEX_CFLAGS) ..\..\3rdparty\pcre\src\pcre2_auto_possess.c
|
||||
|
||||
+$(OBJS)\wxregex_pcre2_chkdint.obj: ..\..\3rdparty\pcre\src\pcre2_chkdint.c
|
||||
+ $(CC) /c /nologo /TC /Fo$@ $(WXREGEX_CFLAGS) ..\..\3rdparty\pcre\src\pcre2_chkdint.c
|
||||
+
|
||||
$(OBJS)\wxregex_pcre2_compile.obj: ..\..\3rdparty\pcre\src\pcre2_compile.c
|
||||
$(CC) /c /nologo /TC /Fo$@ $(WXREGEX_CFLAGS) ..\..\3rdparty\pcre\src\pcre2_compile.c
|
||||
|
||||
@@ -6870,6 +6876,9 @@ $(OBJS)\wxtiff_tif_flush.obj: ..\..\src\tiff\libtiff\tif_flush.c
|
||||
$(OBJS)\wxtiff_tif_getimage.obj: ..\..\src\tiff\libtiff\tif_getimage.c
|
||||
$(CC) /c /nologo /TC /Fo$@ $(WXTIFF_CFLAGS) ..\..\src\tiff\libtiff\tif_getimage.c
|
||||
|
||||
+$(OBJS)\wxtiff_tif_hash_set.obj: ..\..\src\tiff\libtiff\tif_hash_set.c
|
||||
+ $(CC) /c /nologo /TC /Fo$@ $(WXTIFF_CFLAGS) ..\..\src\tiff\libtiff\tif_hash_set.c
|
||||
+
|
||||
$(OBJS)\wxtiff_tif_jbig.obj: ..\..\src\tiff\libtiff\tif_jbig.c
|
||||
$(CC) /c /nologo /TC /Fo$@ $(WXTIFF_CFLAGS) ..\..\src\tiff\libtiff\tif_jbig.c
|
||||
|
||||
@@ -6879,6 +6888,9 @@ $(OBJS)\wxtiff_tif_jpeg.obj: ..\..\src\tiff\libtiff\tif_jpeg.c
|
||||
$(OBJS)\wxtiff_tif_jpeg_12.obj: ..\..\src\tiff\libtiff\tif_jpeg_12.c
|
||||
$(CC) /c /nologo /TC /Fo$@ $(WXTIFF_CFLAGS) ..\..\src\tiff\libtiff\tif_jpeg_12.c
|
||||
|
||||
+$(OBJS)\wxtiff_tif_lerc.obj: ..\..\src\tiff\libtiff\tif_lerc.c
|
||||
+ $(CC) /c /nologo /TC /Fo$@ $(WXTIFF_CFLAGS) ..\..\src\tiff\libtiff\tif_lerc.c
|
||||
+
|
||||
$(OBJS)\wxtiff_tif_luv.obj: ..\..\src\tiff\libtiff\tif_luv.c
|
||||
$(CC) /c /nologo /TC /Fo$@ $(WXTIFF_CFLAGS) ..\..\src\tiff\libtiff\tif_luv.c
|
||||
|
||||
--
|
||||
2.49.0
|
||||
|
Reference in New Issue
Block a user