Commit 680d6a6 1 parent 998b738 commit 680d6a6 Copy full SHA for 680d6a6
File tree 2 files changed +33
-0
lines changed
2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ Package: gdb-12-ubuntu-UBUNTUVERSION
2
+ Version: VERSION
3
+ Architecture: amd64
4
+ Maintainer: xyb <
[email protected] >
5
+ Description: gdb VERSION build for ubuntu UBUNTUVERSION
6
+ Depends: libc6
Original file line number Diff line number Diff line change
1
+ ARG UbuntuVersion=22.04
2
+
3
+ FROM ubuntu:$UbuntuVersion
4
+ ARG UbuntuVersion=22.04
5
+ ARG GdbVersion=12.1
6
+ ARG BuildVersion=1
7
+
8
+ RUN apt update && apt install -y \
9
+ build-essential \
10
+ m4 \
11
+ wget \
12
+ xz-utils \
13
+ libgmp-dev
14
+
15
+ RUN wget https://ftp.gnu.org/gnu/gdb/gdb-${GdbVersion}.tar.xz && \
16
+ xz -d gdb-${GdbVersion}.tar.xz && \
17
+ tar xf gdb-${GdbVersion}.tar
18
+
19
+ RUN cd gdb-${GdbVersion} && \
20
+ ./configure && \
21
+ make -j`nproc` && \
22
+ make install-strip DESTDIR=/gdb-$GdbVersion-$BuildVersion-ubuntu-$UbuntuVersion
23
+
24
+ COPY DEBIAN/control.m4 /
25
+ RUN mkdir /gdb-$GdbVersion-$BuildVersion-ubuntu-$UbuntuVersion/DEBIAN
26
+ RUN m4 -P -DUBUNTUVERSION=$UbuntuVersion -DVERSION=$GdbVersion-$BuildVersion control.m4 > /gdb-$GdbVersion-$BuildVersion-ubuntu-$UbuntuVersion/DEBIAN/control
27
+ RUN dpkg-deb --build --root-owner-group /gdb-$GdbVersion-$BuildVersion-ubuntu-$UbuntuVersion
You can’t perform that action at this time.
0 commit comments