Skip to content

Commit

Permalink
Merge pull request puppylinux-woof-CE#2394 from dimkr/feature/libicud…
Browse files Browse the repository at this point in the history
…ata-stub

Move libicudata to nlsx and replace it with a tiny stub
  • Loading branch information
01micko committed Jul 19, 2021
2 parents 9455d40 + 5dec1f0 commit 73ef150
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions woof-code/packages-templates/icu_FIXUPHACK
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@

# remove ICU static libs (huge)
find ../icu_DEV -type f -name '*.a' -delete 2>/dev/null

# copy libicudata to NLS so libicudata_stub petbuild can replace it in EXE
SO=`find . -name 'libicudata.so.*' -type f`
[ -n "$SO" ] && install -D -v -m 644 "${SO}" "../icu_NLS/${SO}"
1 change: 1 addition & 0 deletions woof-code/rootfs-petbuilds/libicudata_stub/pet.specs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libicudata_stub-69.1|libicudata_stub|69.1||BuildingBlock|348||libicudata_stub-69.1.pet||libicudata stub|puppy|||
8 changes: 8 additions & 0 deletions woof-code/rootfs-petbuilds/libicudata_stub/petbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
download() {
[ -f stubdata-0e7b4428866f3133b4abba2d932ee3faa708db1d.cpp ] || wget -t 1 -T 15 -O stubdata-0e7b4428866f3133b4abba2d932ee3faa708db1d.cpp https://raw.githubusercontent.com/unicode-org/icu/0e7b4428866f3133b4abba2d932ee3faa708db1d/icu4c/source/stubdata/stubdata.cpp
}

build() {
SO=`find /usr -name 'libicudata.so.*' -type f`
g++ $CXXFLAGS stubdata-0e7b4428866f3133b4abba2d932ee3faa708db1d.cpp $LDFLAGS -shared -Wl,-soname=libicudata.so.`basename "$SO" | cut -f 3 -d .` -o "$SO"
}
1 change: 1 addition & 0 deletions woof-code/rootfs-petbuilds/libicudata_stub/sha256.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2ba463a3903611b86958e9a4194564ce2e2acfd4f978bffbeec5d4f78fcb8cfc stubdata-0e7b4428866f3133b4abba2d932ee3faa708db1d.cpp

0 comments on commit 73ef150

Please sign in to comment.