Skip to content

Commit

Permalink
build using GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nkraetzschmar committed Jan 30, 2024
1 parent f95cb58 commit 789aa6f
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 11 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
on:
push:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
build:
uses: gardenlinux/package-build/.github/workflows/build.yml@main
with:
release: ${{ github.ref == 'refs/heads/main' }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.build
7 changes: 0 additions & 7 deletions .gitlab-ci.yml

This file was deleted.

9 changes: 5 additions & 4 deletions patches/debian_control.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
Subject: Remove libdb

+++ perl-5.34.0/debian/control
@@ -6,9 +6,9 @@
diff -Naur a/debian/control b/debian/control
--- a/debian/control 2024-01-30 22:14:07.388590203 +0000
+++ b/debian/control 2024-01-30 22:14:45.667019104 +0000
@@ -6,10 +6,10 @@
Standards-Version: 3.9.8
Homepage: http://dev.perl.org/perl5/
Rules-Requires-Root: no
+Build-Conflicts: libdb-dev
Build-Depends: file,
cpio,
libcrypt-dev,
- libdb-dev,
libgdbm-dev (>= 1.18-3),
libgdbm-compat-dev,
Expand Down
17 changes: 17 additions & 0 deletions prepare_source
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# perl debian source pkg has stupid multiple orig.tar shit => extra magic needed here
(
tmp_dir="$(mktemp -d)"
trap 'cd / && rm -rf "$tmp_dir"' EXIT
cd "$tmp_dir"

apt-get source --only-source --download-only perl
mkdir _
auto_decompress *.orig.tar.* | tar --extract --strip-components 1 --directory _
mkdir _/regen-configure
auto_decompress *.orig-regen-configure.tar.* | tar --extract --strip-components 1 --directory _/regen-configure
tar --create _ | tee "$dir/orig.tar" | tar --extract --strip-components 1 --directory "$dir/src"
rm -rf _
auto_decompress *.debian.tar.* | tar --extract --directory "$dir/src"
)

apply_patches

0 comments on commit 789aa6f

Please sign in to comment.