-
Notifications
You must be signed in to change notification settings - Fork 964
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1767 from bphinz/ubuntu-noble
Updates for package builds
- Loading branch information
Showing
22 changed files
with
865 additions
and
73 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
FROM ubuntu:noble | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update | ||
RUN apt-get -y install packaging-dev equivs | ||
|
||
RUN useradd -s /bin/bash -m deb | ||
RUN echo >> /etc/sudoers | ||
RUN echo "deb ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | ||
|
||
USER deb | ||
WORKDIR /home/deb |
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,59 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -x | ||
|
||
## Basic variables | ||
|
||
CURDIR=$(dirname $(readlink -f $0)) | ||
TOPDIR=$(git rev-parse --show-toplevel 2>/dev/null) | ||
|
||
DEBDIR=${TOPDIR}/contrib/packages/deb/ubuntu-noble | ||
|
||
VERSION=$(grep '^set(VERSION ' ${TOPDIR}/CMakeLists.txt | sed 's@^set(VERSION \(.*\))@\1@') | ||
|
||
## Prepare the build directory | ||
|
||
rm -rf ${CURDIR}/build | ||
mkdir -p ${CURDIR}/build | ||
chmod a+w ${CURDIR}/build | ||
[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled && chcon -Rt container_file_t ${CURDIR}/build | ||
|
||
## Copy over the source code | ||
|
||
(cd ${TOPDIR} && git archive --prefix tigervnc-${VERSION}/ HEAD) | xz > ${CURDIR}/build/tigervnc_${VERSION}.orig.tar.xz | ||
|
||
## Copy over the packaging files | ||
|
||
cp -r ${DEBDIR}/debian ${CURDIR}/build/debian | ||
|
||
chmod a+x ${CURDIR}/build/debian/rules | ||
|
||
# Assemble a fake changelog entry to get the correct version | ||
|
||
cat - > ${CURDIR}/build/debian/changelog << EOT | ||
tigervnc (${VERSION}-1ubuntu1) UNRELEASED; urgency=low | ||
* Automated build for TigerVNC | ||
-- Build bot <[email protected]> $(date -R) | ||
EOT | ||
cat ${DEBDIR}/debian/changelog >> ${CURDIR}/build/debian/changelog | ||
|
||
## Start the build | ||
|
||
docker run --volume ${CURDIR}/build:/home/deb/build --interactive --rm tigervnc/${DOCKER} \ | ||
bash -e -x -c " | ||
tar -C ~/build -axf ~/build/tigervnc_${VERSION}.orig.tar.xz | ||
cp -a ~/build/debian ~/build/tigervnc-${VERSION}/debian | ||
sudo apt-get update | ||
mk-build-deps ~/build/tigervnc-${VERSION}/debian/control | ||
sudo DEBIAN_FRONTEND=noninteractive \ | ||
apt-get install -y ~/tigervnc-build-deps_*.deb | ||
cd ~/build/tigervnc-${VERSION} && dpkg-buildpackage | ||
" | ||
|
||
mkdir -p ${CURDIR}/result | ||
cp -av ${CURDIR}/build/*.deb ${CURDIR}/result | ||
cp -av ${CURDIR}/build/*.ddeb ${CURDIR}/result |
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
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
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
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
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
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,5 @@ | ||
tigervnc (1.13.80) noble; urgency=low | ||
|
||
* Initial release. | ||
|
||
-- Brian P. Hinz <[email protected]> Tue, 18 Jun 2024 18:50:23 -0400 |
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 @@ | ||
10 |
Oops, something went wrong.