-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Package: gdb-12-ubuntu-UBUNTUVERSION | ||
Version: VERSION | ||
Architecture: amd64 | ||
Maintainer: xyb <[email protected]> | ||
Description: gdb VERSION build for ubuntu UBUNTUVERSION | ||
Depends: libc6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
ARG UbuntuVersion=22.04 | ||
|
||
FROM ubuntu:$UbuntuVersion | ||
ARG UbuntuVersion=22.04 | ||
ARG GdbVersion=12.1 | ||
ARG BuildVersion=1 | ||
|
||
RUN apt update && apt install -y \ | ||
build-essential \ | ||
m4 \ | ||
wget \ | ||
xz-utils \ | ||
libgmp-dev | ||
|
||
RUN wget https://ftp.gnu.org/gnu/gdb/gdb-${GdbVersion}.tar.xz && \ | ||
xz -d gdb-${GdbVersion}.tar.xz && \ | ||
tar xf gdb-${GdbVersion}.tar | ||
|
||
RUN cd gdb-${GdbVersion} && \ | ||
./configure && \ | ||
make -j`nproc` && \ | ||
make install-strip DESTDIR=/gdb-$GdbVersion-$BuildVersion-ubuntu-$UbuntuVersion | ||
|
||
COPY DEBIAN/control.m4 / | ||
RUN mkdir /gdb-$GdbVersion-$BuildVersion-ubuntu-$UbuntuVersion/DEBIAN | ||
RUN m4 -P -DUBUNTUVERSION=$UbuntuVersion -DVERSION=$GdbVersion-$BuildVersion control.m4 > /gdb-$GdbVersion-$BuildVersion-ubuntu-$UbuntuVersion/DEBIAN/control | ||
RUN dpkg-deb --build --root-owner-group /gdb-$GdbVersion-$BuildVersion-ubuntu-$UbuntuVersion |