File tree Expand file tree Collapse file tree 5 files changed +16
-5
lines changed Expand file tree Collapse file tree 5 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 12
12
[submodule "src/submodule_packages/libexpat "]
13
13
path = src/submodule_packages/libexpat
14
14
url = git@github.com:guyush1/libexpat.git
15
+ [submodule "xz "]
16
+ path = src/submodule_packages/xz
17
+ url = https://github.com/tukaani-project/xz.git
Original file line number Diff line number Diff line change 1
1
FROM ubuntu:24.04
2
2
3
3
RUN apt update && apt install -y \
4
+ autopoint \
4
5
binutils-multiarch \
5
6
bison \
6
7
file \
@@ -24,7 +25,6 @@ RUN apt update && apt install -y \
24
25
patch \
25
26
pkg-config \
26
27
python3.12 \
27
- python3-pip \
28
28
python3-requests \
29
29
libpython3-dev \
30
30
texinfo \
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ function build_lzma() {
154
154
echo " $lzma_build_dir "
155
155
mkdir -p " $lzma_build_dir "
156
156
157
- if [[ -f " $lzma_build_dir /usr/local/ lib/liblzma.a" ]]; then
157
+ if [[ -f " $lzma_build_dir /lib/liblzma.a" ]]; then
158
158
>&2 echo " Skipping build: lzma already built for $target_arch "
159
159
return 0
160
160
fi
@@ -163,8 +163,16 @@ function build_lzma() {
163
163
164
164
>&2 fancy_title " Building liblzma for $target_arch "
165
165
166
+ # Make sure configure exists by running autogen.sh
167
+ (
168
+ cd .. && ./autogen.sh 1>&2
169
+ )
170
+
171
+ # lzma's autoconf contains a bug, it's instal prefix is relative
172
+ # to the current build directory.
173
+ # Hence, we set the prefix here to "/" instead of realpath . .
166
174
../configure --enable-static " CC=$CC " " CXX=$CXX " " --host=$HOST " \
167
- " CFLAGS=$CFLAGS " " CXXFLAGS=$CXXFLAGS " 1>&2
175
+ " CFLAGS=$CFLAGS " " CXXFLAGS=$CXXFLAGS " --prefix= " / " 1>&2
168
176
if [[ $? -ne 0 ]]; then
169
177
return 1
170
178
fi
@@ -697,7 +705,7 @@ function build_gdb_with_dependencies() {
697
705
698
706
build_and_install_gdb " $packages_dir /binutils-gdb" \
699
707
" $iconv_build_dir " \
700
- " $lzma_build_dir /usr/local/ " \
708
+ " $lzma_build_dir " \
701
709
" $gmp_build_dir " \
702
710
" $mpfr_build_dir " \
703
711
" $with_python " \
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ SOURCE_URLS=(
10
10
" https://ftp.gnu.org/pub/gnu/gmp/gmp-6.3.0.tar.xz"
11
11
" https://ftp.gnu.org/pub/gnu/mpfr/mpfr-4.2.1.tar.xz"
12
12
" https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.5.tar.gz"
13
- " https://github.com/tukaani-project/xz/releases/download/v5.8.1/xz-5.8.1.tar.xz"
14
13
)
15
14
16
15
function unpack_tarball() {
You can’t perform that action at this time.
0 commit comments