-
Notifications
You must be signed in to change notification settings - Fork 213
Update Debian Package Services and Config Directory #1855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
DaAwesomeP
wants to merge
46
commits into
OpenLightingProject:master
Choose a base branch
from
DaAwesomeP:DaAwesomeP-debian-systemd-and-config-dir
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
9d6b770
debian add initial systemd service
DaAwesomeP 693dc63
debian/ola.postinst: add --home parameter to adduser invocation
yoe 14d6d7e
debian remove debconf from init script, add OLAD_OPTS
DaAwesomeP 2758515
debian move config to /etc/ola
DaAwesomeP 48d7dfb
Don't use debconf for this
yoe 12090e6
More debconf removals
yoe 84282f4
add rdm_test_server systemd service
DaAwesomeP 9ffb314
debian systemd services user, rdm_test_server service configurable args
DaAwesomeP 896b13f
debian systemd services wait for network, olad
DaAwesomeP bd89102
update Debian compat level
DaAwesomeP e905f02
debian dh-autoreconf superseeds autotools-dev
DaAwesomeP d24b096
debian rules remove autotools_dev but keep package
DaAwesomeP 886c092
Debian stick with debhelper 12
DaAwesomeP 24d2cec
Debian add override_dh_installsystemd
DaAwesomeP 977dca8
Merge branch 'master' into DaAwesomeP-debian-systemd-and-config-dir
DaAwesomeP b31073a
debian update Makefile dist files list
DaAwesomeP 146a9d1
debian update Makefile dist files list again
DaAwesomeP 8729000
Merge remote-tracking branch 'upstream/master' into DaAwesomeP-debian…
DaAwesomeP 1740d5a
add build name generation and bake into build
DaAwesomeP 0bf40e7
Merge branch 'DaAwesomeP-debian-systemd-and-config-dir' of github.com…
DaAwesomeP b66a17a
build name move git check to script (can be used outside of autoconf)
DaAwesomeP f903797
github actions debian use git describe for version
DaAwesomeP 938733c
github actions debian git build name fix env assignment
DaAwesomeP 5111428
github actions debian git build name fix env assignment typo
DaAwesomeP dab152a
github actions debian build name fix step reference
DaAwesomeP 0f3cf4b
github actions debian separate build name from debian version, no bac…
DaAwesomeP c4c97a2
github actions debian try git describe in action
DaAwesomeP 46cb35e
github actions debian git security precaution fix
DaAwesomeP 66ba156
github actions debian remove test git describe, add dash to debian bu…
DaAwesomeP c6a521a
allow overriding build name
DaAwesomeP cc2be83
github actions debian build name no dirty, create changelong entry
DaAwesomeP f134516
github actions debian preserve build name in builduser
DaAwesomeP 4e6477a
github actions debian build force explicit previous version
DaAwesomeP 23e29c3
github actions checkout full to create useful OLA_BUILD_NAME
DaAwesomeP 60f615f
github actions debian build name in artifacts
DaAwesomeP 3a3db2e
github actions debian include tag name in artifact name in case Debia…
DaAwesomeP 28469df
github actions test update apt
DaAwesomeP 059bc44
script build name include dirty flag
DaAwesomeP 8015767
github actions debian build version do not append debian version if n…
DaAwesomeP 49d4d44
build name script debian version move os ver suffix to script
DaAwesomeP 2abcdb8
Merge branch 'master' into DaAwesomeP-debian-systemd-and-config-dir
DaAwesomeP cb606a0
Merge remote-tracking branch 'origin/master' into DaAwesomeP-debian-s…
DaAwesomeP dda1a02
debian systemd rdm-test use env file
DaAwesomeP 26844bb
Merge remote-tracking branch 'upstream/master' into DaAwesomeP-debian…
DaAwesomeP e83dca1
Merge branch 'master' into DaAwesomeP-debian-systemd-and-config-dir
DaAwesomeP 8aacbd4
Merge branch 'master' into DaAwesomeP-debian-systemd-and-config-dir
DaAwesomeP File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
---|---|---|
|
@@ -25,11 +25,36 @@ jobs: | |
# create a .git folder or .git.config. The Problem Matcher looks for | ||
# .git/config to find where the root of the repo is, so it must be | ||
# present. | ||
- name: Install Git | ||
run: apt-get -y install git | ||
- name: Install Git and lsb-release | ||
run: apt-get -y install git lsb-release | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Fetch all tags for generating OLA_BUILD_NAME | ||
- name: Generate build name | ||
shell: bash | ||
run: | | ||
chown root:root . # workaround Git security precaution, see https://github.com/actions/runner-images/issues/6775 | ||
export OLA_BUILD_NAME=$(./scripts/build_name.sh) | ||
# No docker number tag for testing, so must use lsb_release | ||
export OLA_DEBIAN_BUILD_VERSION=$(./scripts/build_name.sh --debian) | ||
|
||
echo "OLA_BUILD_NAME=$OLA_BUILD_NAME" >> $GITHUB_OUTPUT | ||
echo "OLA_BUILD_NAME=$OLA_BUILD_NAME" >> $GITHUB_ENV # Set build name globally so that modifications don't cause -dirty | ||
echo "OLA_DEBIAN_BUILD_VERSION=$OLA_DEBIAN_BUILD_VERSION" >> $GITHUB_OUTPUT | ||
|
||
echo "Build name: $OLA_BUILD_NAME" | ||
echo "Debian Build Version: $OLA_DEBIAN_BUILD_VERSION" | ||
id: generate-build-name | ||
- name: Install build tools | ||
run: apt-get -y install devscripts adduser fakeroot sudo | ||
- name: Create Debian version for build | ||
shell: bash | ||
run: | | ||
DEBFULLNAME="GitHub Actions" [email protected] \ | ||
debchange --force-bad-version \ | ||
--newversion ${{ steps.generate-build-name.outputs.OLA_DEBIAN_BUILD_VERSION }} \ | ||
"GitHub Actions Build \ | ||
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | ||
- name: Install build dependencies | ||
run: mk-build-deps -t "apt-get -y -o Debug::pkgProblemResolver=yes --no-install-recommends" -i -r | ||
- name: Set up build user | ||
|
@@ -38,7 +63,7 @@ jobs: | |
chown -R builduser:builduser . | ||
chown builduser:builduser .. | ||
- name: Build | ||
run: sudo -u builduser dpkg-buildpackage -b -rfakeroot -j${{ steps.num-cpu-cores.outputs.NUM_CPU_CORES }} | ||
run: sudo -u builduser env "OLA_BUILD_NAME=$OLA_BUILD_NAME" dpkg-buildpackage -v${{ steps.generate-build-name.outputs.OLA_DEBIAN_BUILD_VERSION }} -b -rfakeroot -j${{ steps.num-cpu-cores.outputs.NUM_CPU_CORES }} | ||
- name: Move built files | ||
if: always() | ||
run: | | ||
|
@@ -56,7 +81,7 @@ jobs: | |
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: ola-built-debian-${{ matrix.image_tag }}-${{ matrix.architecture }} | ||
name: ola-built-debian-${{ matrix.image_tag }}-${{ steps.generate-build-name.outputs.OLA_DEBIAN_BUILD_VERSION }}_${{ matrix.architecture }} | ||
path: ./built | ||
debian-test: | ||
name: 'Debian Test ${{ matrix.image_tag }} ${{ matrix.architecture }}' | ||
|
@@ -70,11 +95,26 @@ jobs: | |
architecture: [amd64] | ||
container: debian:${{ matrix.image_tag }} | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Update package database | ||
run: apt-get update -y | ||
- name: Install Git and lsb-release | ||
run: apt-get -y install git lsb-release | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Fetch all tags for generating OLA_DEBIAN_BUILD_VERSION | ||
- name: Generate build name # Job step outputs can't be passed between builds for matrix jobs, so we re-generate | ||
shell: bash | ||
run: | | ||
chown root:root . # workaround Git security precaution, see https://github.com/actions/runner-images/issues/6775 | ||
# No docker number tag for testing, so must use lsb_release | ||
export OLA_DEBIAN_BUILD_VERSION=$(./scripts/build_name.sh --debian) | ||
echo "OLA_DEBIAN_BUILD_VERSION=$OLA_DEBIAN_BUILD_VERSION" >> $GITHUB_OUTPUT | ||
echo "Debian Build Version: $OLA_DEBIAN_BUILD_VERSION" | ||
id: generate-build-name | ||
- name: Download build artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: ola-built-debian-${{ matrix.image_tag }}-${{ matrix.architecture }} | ||
name: ola-built-debian-${{ matrix.image_tag }}-${{ steps.generate-build-name.outputs.OLA_DEBIAN_BUILD_VERSION }}_${{ matrix.architecture }} | ||
path: built | ||
- name: Display structure of artifact files | ||
run: ls -alR | ||
|
@@ -88,5 +128,5 @@ jobs: | |
- uses: actions/upload-artifact@v4 | ||
if: always() # Always upload the test output, even on failed tests | ||
with: | ||
name: ola-test-output-debian-${{ matrix.image_tag }}-${{ matrix.architecture }} | ||
name: ola-test-output-debian-${{ matrix.image_tag }}-${{ steps.generate-build-name.outputs.OLA_DEBIAN_BUILD_VERSION }}_${{ matrix.architecture }} | ||
path: test-output |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1,3 +1,15 @@ | ||
ola (0.11.0-1) UNRELEASED; urgency=medium | ||
* debian/ola.postinst: add --home parameter to adduser invocation | ||
* This change pulled from Debian by Perry Naseck <[email protected]> | ||
https://salsa.debian.org/wouter/ola/-/commit/b9a0e2ab290d64f215891e1d543079dd78e7125e | ||
* Remove debconf usage | ||
* This change pulled from Debian by Perry Naseck <[email protected]> | ||
https://salsa.debian.org/wouter/ola/-/commit/6d27c071547426536b6f8f0db193dcfd7a4e5991 | ||
* This change pulled from Debian by Perry Naseck <[email protected]> | ||
191514d233d2300674df7e9c3febb35c2890c50c | ||
|
||
-- Perry Naseck <[email protected]> Thu, 20 Apr 2023 18:47:03 -0400 | ||
|
||
ola (0.10.9-2) UNRELEASED; urgency=medium | ||
|
||
* Fix ola-rdm-tests Debian package by patching python shebangs to python3 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ Source: ola | |
Priority: optional | ||
Maintainer: Wouter Verhelst <[email protected]> | ||
Uploaders: RenZO <[email protected]> | ||
Build-Depends: debhelper (>= 13), autotools-dev, dh-autoreconf, dh-python, bash-completion, libcppunit-dev, bison, flex, pkg-config, uuid-dev, python3, python3-protobuf, libprotobuf-dev, protobuf-compiler, libprotoc-dev, libusb-1.0-0-dev, libftdi1-dev, liblo-dev, libmicrohttpd-dev, libncurses5-dev, libavahi-client-dev, python3-numpy | ||
Build-Depends: debhelper-compat (= 12), autotools-dev, dh-autoreconf, dh-python, bash-completion, libcppunit-dev, bison, flex, pkg-config, uuid-dev, python3, python3-protobuf, libprotobuf-dev, protobuf-compiler, libprotoc-dev, libusb-1.0-0-dev, libftdi1-dev, liblo-dev, libmicrohttpd-dev, libncurses5-dev, libavahi-client-dev, python3-numpy | ||
yoe marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Standards-Version: 3.9.8 | ||
Section: libs | ||
Vcs-Git: https://github.com/OpenLightingProject/ola.git | ||
|
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
etc/ola | ||
usr/bin | ||
usr/lib | ||
usr/share |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,14 @@ | ||
[Unit] | ||
Description=Open Lighting Architecture RDM Test Server | ||
Documentation=man:olad(1) | ||
After=network.target remote-fs.target olad.service | ||
Wants=olad.service | ||
|
||
[Service] | ||
User=olad | ||
Environment=RDM_TEST_SERVER_OPTS="--world-writable" | ||
yoe marked this conversation as resolved.
Show resolved
Hide resolved
|
||
EnvironmentFile=-/etc/default/ola-rdm-tests | ||
ExecStart=/usr/bin/rdm_test_server.py $RDM_TEST_SERVER_OPTS | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
etc/ola | ||
usr/bin | ||
usr/lib | ||
usr/share/olad/www | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.