Skip to content
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

Simplifications and improvements for package building #1144

Merged
merged 13 commits into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,13 @@
run: |
sudo apt-get update
sudo apt-get install debhelper build-essential \
devscripts \
crossbuild-essential-${{ matrix.arch }}

- name: Hack dpkg-shlibdeps
run: |
echo '#!/bin/bash' | sudo tee /usr/bin/dpkg-shlibdeps

- name: Configure
# The HOST_TRIPLET line is not easily foldable
# yamllint disable rule:line-length
Expand All @@ -420,8 +425,6 @@
HOST_TRIPLET=$(dpkg-architecture -a${{ matrix.arch }} -q DEB_HOST_GNU_TYPE)
./autogen.sh
./configure --host $HOST_TRIPLET
cd packages/debian/
./configure EXTN=${{ matrix.arch }}
# yamllint enable rule:line-length

- name: Build
Expand Down Expand Up @@ -486,13 +489,13 @@
include:
- name: mips_24kc
sdk_ver: 22.03.3
sdk: https://downloads.openwrt.org/releases/22.03.3/targets/lantiq/xrx200/openwrt-sdk-22.03.3-lantiq-xrx200_gcc-11.2.0_musl.Linux-x86_64.tar.xz

Check warning on line 492 in .github/workflows/tests.yml

View workflow job for this annotation

GitHub Actions / Code syntax

492:81 [line-length] line too long (155 > 80 characters)
- name: i386_pentium4
sdk_ver: 22.03.3
sdk: https://downloads.openwrt.org/releases/22.03.3/targets/x86/generic/openwrt-sdk-22.03.3-x86-generic_gcc-11.2.0_musl.Linux-x86_64.tar.xz

Check warning on line 495 in .github/workflows/tests.yml

View workflow job for this annotation

GitHub Actions / Code syntax

495:81 [line-length] line too long (151 > 80 characters)
- name: x86_64
sdk_ver: 22.03.3
sdk: https://downloads.openwrt.org/releases/22.03.3/targets/x86/64/openwrt-sdk-22.03.3-x86-64_gcc-11.2.0_musl.Linux-x86_64.tar.xz

Check warning on line 498 in .github/workflows/tests.yml

View workflow job for this annotation

GitHub Actions / Code syntax

498:81 [line-length] line too long (141 > 80 characters)

defaults:
run:
Expand Down
7 changes: 0 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,7 @@ build
.idea
.vscode
.vs
packages/debian/debian/changelog
packages/debian/debian/control
packages/debian/debian/files
packages/debian/debian/rules
packages/etc/systemd/system/[email protected]
packages/etc/systemd/system/edge.service
packages/etc/systemd/system/[email protected]
packages/etc/systemd/system/supernode.service
*dSYM*

__pycache__
Expand Down
10 changes: 9 additions & 1 deletion packages/debian/Makefile.in → packages/debian/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
N2N_HOME=$(PWD)/../..
N2N_BUILD=${N2N_HOME}/packages/debian/n2n

include ${N2N_HOME}/config.mak

# TODO: continue to untangle the version generation
# we either should not need to override the config.mak here or
# should never set the version in config.mak and always calculate it
PACKAGE_VERSION := $(shell ${N2N_HOME}/scripts/version.sh)

all: clean pkg

pkg:
Expand All @@ -19,7 +26,8 @@ pkg:
install -m644 ../../community.list ${N2N_BUILD}/usr/share/doc/n2n/examples/
install -m644 ../../doc/*.md ${N2N_BUILD}/usr/share/doc/n2n/
@/bin/rm -f ../n2n*.deb
dpkg-buildpackage -rfakeroot -d -us -uc -a@EXTN@
[email protected] dch -v ${PACKAGE_VERSION} --no-auto-nmu Auto Build
dpkg-buildpackage -rfakeroot -d -us -uc --host-type ${CONFIG_HOST}
-dpkg-sig --sign builder -k D1EB60BE ../n2n_*deb
@\rm -f ../n2n_*dsc ../n2n_*.gz ../n2n_*changes
@/bin/mv ../n2n_*deb .
Expand Down
2 changes: 1 addition & 1 deletion packages/debian/README
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Prerequisites
-------------
apt-get install debhelper fakeroot dpkg-sig
apt-get install debhelper fakeroot dpkg-sig devscripts

EdgeOS
------
Expand Down
Loading