Skip to content

Commit 0aedaf1

Browse files
authored
Merge pull request #24 from auouymous/update-deps
Update deps
2 parents faa8b4c + d961662 commit 0aedaf1

File tree

58 files changed

+3580
-2078
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+3580
-2078
lines changed

.circleci/config.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
github.event_name == 'push' ||
1010
github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
1111
12-
runs-on: macos-latest
12+
runs-on: macos-11
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515
with:
1616
fetch-depth: 0 # fetch tags
1717
- run: ./bootstrap.sh

bootstrap.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
set -e
44

55
source env.sh
6+
source pins.sh
67

78
# to allow bootstrapping again, try to delete everything first
89
rm -Rf "_gtk-osx"
@@ -13,12 +14,13 @@ rm -f "$HOME/.config/jhbuildrc-custom"
1314

1415
mkdir -p "$HOME/.config"
1516
cp misc/jhbuildrc-custom "$HOME/.config/jhbuildrc-custom"
17+
1618
git clone https://gitlab.gnome.org/GNOME/gtk-osx.git _gtk-osx
17-
# try latest commit (2023-01-03)
18-
(cd _gtk-osx && git checkout 78bd3324)
19-
# fix boostrap failure: error message on pip download
20-
sed -i '' s,https://bootstrap.pypa.io/2.7/get-pip.py,https://bootstrap.pypa.io/pip/2.7/get-pip.py, _gtk-osx/gtk-osx-setup.sh
19+
(cd _gtk-osx && git checkout $PIN_GTK_OSX_COMMIT)
20+
# don't silence curl errors when bootstrapping
2121
sed -i '' 's:curl -ks :curl -ksS :' _gtk-osx/gtk-osx-setup.sh
2222
./_gtk-osx/gtk-osx-setup.sh
23+
2324
git clone https://gitlab.gnome.org/GNOME/gtk-mac-bundler.git _bundler
25+
(cd _bundler && git checkout $PIN_GTK_MAC_BUNDLER_COMMIT)
2426
(cd _bundler && make install bindir=$HOME/.new_local/bin)

build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ source env.sh
77
jhbuild bootstrap-gtk-osx
88
jhbuild build meta-gtk-osx-bootstrap
99
jhbuild build meta-gpodder-native
10+
11+
jhbuild run ./install-pip.sh

bundle.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ for cmd in ${CMDS}; do
2626
done
2727

2828
# kill some useless files
29-
rm -Rf "$APP_PREFIX"/lib/python3.9/test
30-
rm -Rvf "$APP_PREFIX"/lib/python3.9/*/test
31-
rm -f "$APP_PREFIX"/lib/python3.9/config/libpython3.9.a
32-
find "$APP_PREFIX"/lib/python3.9 -name '*.pyc' -delete
33-
find "$APP_PREFIX"/lib/python3.9 -name '*.pyo' -delete
29+
rm -Rf "$APP_PREFIX"/lib/python3.11/test
30+
rm -Rvf "$APP_PREFIX"/lib/python3.11/*/test
31+
rm -f "$APP_PREFIX"/lib/python3.11/config/libpython3.11.a
32+
find "$APP_PREFIX"/lib/python3.11 -name '*.pyc' -delete
33+
find "$APP_PREFIX"/lib/python3.11 -name '*.pyo' -delete
3434

3535
echo checking for dynamic linking consistency : nothing should reference gtk/inst
3636
find "$APP_PREFIX" -name '*.so' -and -print -and -exec sh -c 'otool -L $1 | grep /gtk/inst' '{}' '{}' ';'

env.sh

100755100644
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/bin/sh
2-
31
DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
42
cd "$DIR"
53

fetch_modules.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
#!/bin/sh
22

3+
source pins.sh
4+
35
git clone https://gitlab.gnome.org/GNOME/gtk-osx.git _gtk-osx-modules
6+
(cd _gtk-osx-modules && git checkout $PIN_GTK_OSX_COMMIT)
7+
48
rsync -vrb --delete --exclude gpodder.modules --exclude patches/gpodder* _gtk-osx-modules/modulesets-stable/ modulesets/
59
rsync -vrb --delete _gtk-osx-modules/patches modulesets/
610
(cd _gtk-osx-modules/ && git log -1) > modulesets/upstream-ref
711
rm -Rf _gtk-osx-modules
12+
13+
# Disable check for brotli when building freetype
14+
(cd modulesets && patch -p1 < ../github-brotli.patch)

github-brotli.patch

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
--- modulesets/gtk-osx.modules
2+
+++ modulesets/gtk-osx.modules
3+
@@ -127,8 +127,9 @@
4+
then build harfbuzz without cairo because cairo requires
5+
harfbuzz.
6+
-->
7+
+ <!-- gpodder github action needs to disable BrotliDec -->
8+
<cmake id="freetype-no-harfbuzz"
9+
- cmakeargs="-DCMAKE_DISABLE_FIND_PACKAGE_HarfBuzz=TRUE -DCMAKE_DISABLE_FIND_PACKAGE_BZip2=TRUE -D BUILD_SHARED_LIBS=true -D CMAKE_BUILD_TYPE=Release">
10+
+ cmakeargs="-DCMAKE_DISABLE_FIND_PACKAGE_HarfBuzz=TRUE -DCMAKE_DISABLE_FIND_PACKAGE_BZip2=TRUE -D BUILD_SHARED_LIBS=true -D CMAKE_BUILD_TYPE=Release -DCMAKE_DISABLE_FIND_PACKAGE_BrotliDec=TRUE">
11+
12+
<branch module="freetype/freetype-2.11.1.tar.gz"
13+
version="2.11.1"
14+
@@ -153,8 +154,9 @@
15+
</dependencies>
16+
</meson>
17+
<!---->
18+
+ <!-- gpodder github action needs to disable BrotliDec -->
19+
<cmake id="freetype"
20+
- cmakeargs="-DCMAKE_DISABLE_FIND_PACKAGE_BZip2=TRUE -D BUILD_SHARED_LIBS=true -D CMAKE_BUILD_TYPE=Release">
21+
+ cmakeargs="-DCMAKE_DISABLE_FIND_PACKAGE_BZip2=TRUE -D BUILD_SHARED_LIBS=true -D CMAKE_BUILD_TYPE=Release -DCMAKE_DISABLE_FIND_PACKAGE_BrotliDec=TRUE">
22+
23+
<branch module="freetype/freetype-2.11.1.tar.gz"
24+
version="2.11.1"

install-pip.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
unset PYTHONUSERBASE
4+
python3 -E -m ensurepip --default-pip

misc/bundle/launcher.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,16 @@ set_python_path(void)
9191
CFStringRef str = make_filesystem_string(bundle_url);
9292
CFRelease(bundle_url);
9393
mstr = CFStringCreateMutableCopy(NULL, 5 * PATH_MAX, str);
94-
CFStringAppendCString(mstr, "/lib/python3.9:",
94+
CFStringAppendCString(mstr, "/lib/python3.11:",
9595
kCFStringEncodingUTF8);
9696
CFStringAppend(mstr, str);
97-
CFStringAppendCString(mstr, "/lib/python3.9/plat-darwin:",
97+
CFStringAppendCString(mstr, "/lib/python3.11/plat-darwin:",
9898
kCFStringEncodingUTF8);
9999
CFStringAppend(mstr, str);
100-
CFStringAppendCString(mstr, "/lib/python3.9/lib-dynload:",
100+
CFStringAppendCString(mstr, "/lib/python3.11/lib-dynload:",
101101
kCFStringEncodingUTF8);
102102
CFStringAppend(mstr, str);
103-
CFStringAppendCString(mstr, "/lib/python3.9/site-packages",
103+
CFStringAppendCString(mstr, "/lib/python3.11/site-packages",
104104
kCFStringEncodingUTF8);
105105
CFRelease(str);
106106
path = widen_cfstring(mstr);

0 commit comments

Comments
 (0)