ant debian and derivatives don't work #487

Open
opened 2025-04-21 15:11:33 -04:00 by idk · 3 comments
Owner

While trying to make docker build work again, I figured building a .deb and installing it would be the easiest way to get a docker image, however ant debian, ant buster and ant bionic don't work.

I created a gitlab CI jobs and the results with the errors can be seen on gitlab.com. The relevant commands are in an MR on gitlab (in order to get a diff and trigger the pipeline).

Relevant errors:

ant debian and ant bionic

#...
debian-binary:
     [exec] dh patch --with systemd,bash-completion
     [exec] dpkg: warning: --compare-versions used with obsolete relation operator '>'
     [exec] dh: Unknown sequence patch (choose from: binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep)
     [exec] make: *** [debian/rules:54: patch] Error 255

ant buster

$ ant buster
Buildfile: /builds/LoveIsGrief/i2p-i2p/build.xml
copy-disco:
BUILD FAILED
/builds/LoveIsGrief/i2p-i2p/build.xml:2655: /builds/LoveIsGrief/i2p-i2p/debian-alt/disco does not exist.
While trying to make `docker build` work again, I figured building a `.deb` and installing it would be the easiest way to get a docker image, however `ant debian`, `ant buster` and `ant bionic` don't work. I created a gitlab CI jobs and the results with the [errors can be seen on gitlab.com](https://gitlab.com/LoveIsGrief/i2p-i2p/-/pipelines/245949095). The relevant commands are in an [MR on gitlab](https://gitlab.com/LoveIsGrief/i2p-i2p/-/merge_requests/7/diffs#diff-content-587d266bb27a4dc3022bbed44dfa19849df3044c) (in order to get a diff and trigger the pipeline). # Relevant errors: **`ant debian`** and **`ant bionic`** ``` #... debian-binary: [exec] dh patch --with systemd,bash-completion [exec] dpkg: warning: --compare-versions used with obsolete relation operator '>' [exec] dh: Unknown sequence patch (choose from: binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep) [exec] make: *** [debian/rules:54: patch] Error 255 ``` **`ant buster`** ``` $ ant buster Buildfile: /builds/LoveIsGrief/i2p-i2p/build.xml copy-disco: BUILD FAILED /builds/LoveIsGrief/i2p-i2p/build.xml:2655: /builds/LoveIsGrief/i2p-i2p/debian-alt/disco does not exist. ```
zzz was assigned by idk 2025-04-21 15:11:33 -04:00
Author
Owner

no, debian builds don't work like that. As I said above, I don't know why one environment is different than another.

the primary purpose of the debian ant targets is for releases, to make things work for people building releases. Almost nobody is doing their own debian dev builds.

there's also no particular reason to remove obsolete targets. whats the point?

no, debian builds don't work like that. As I said above, I don't know why one environment is different than another. the primary purpose of the debian ant targets is for releases, to make things work for people building releases. Almost nobody is doing their own debian dev builds. there's also no particular reason to remove obsolete targets. whats the point?
Author
Owner

Thanks, I'll check it out.

the following fix should work for debian-binary local builds, but it doesn't work on launchpad so we can't check it in, never figured out why:

all the copy-xxx targets were experiments

Would it be possible to remove the obsolete targets and introduce one for launchpad? Maybe the one for launchpad could use the dh line without quilt?

P.S Just in case you didn't know, you can use triple ticks or indent code with 4 spaces to have the equivalent of BB's [code] [/code] e.g

```diff
diff --git a/debian/rules b/debian/rules
index f7148533b..a67144cbb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -51,7 +51,7 @@ endif
%:

- dh $@ --with systemd,bash-completion
+ dh $@ --with systemd,bash-completion,quilt

clean: createcopyright
```

to get

diff --git a/debian/rules b/debian/rules
index f7148533b..a67144cbb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -51,7 +51,7 @@ endif
%:

- dh $@ --with systemd,bash-completion
+ dh $@ --with systemd,bash-completion,quilt

clean: createcopyright

Relevant documentation

Thanks, I'll check it out. > the following fix should work for debian-binary local builds, but it doesn't work on launchpad so we can't check it in, never figured out why: > all the copy-xxx targets were experiments Would it be possible to remove the obsolete targets and introduce one for launchpad? Maybe the one for launchpad could use the `dh` line without `quilt`? P.S Just in case you didn't know, you can use triple ticks or indent code with 4 spaces to have the equivalent of BB's `[code] [/code]` e.g ```diff diff --git a/debian/rules b/debian/rules index f7148533b..a67144cbb 100755 --- a/debian/rules +++ b/debian/rules @@ -51,7 +51,7 @@ endif %: - dh $@ --with systemd,bash-completion + dh $@ --with systemd,bash-completion,quilt clean: createcopyright ``` to get ```diff diff --git a/debian/rules b/debian/rules index f7148533b..a67144cbb 100755 --- a/debian/rules +++ b/debian/rules @@ -51,7 +51,7 @@ endif %: - dh $@ --with systemd,bash-completion + dh $@ --with systemd,bash-completion,quilt clean: createcopyright ``` [Relevant documentation](https://i2pgit.org/help/user/markdown#colored-code-and-syntax-highlighting)
Author
Owner

the primary one I use is debian-release-tarball as our release process is to build on launchpad, following the instructions in debian-alt/doc/launchpad.txt

the following fix should work for debian-binary local builds, but it doesn't work on launchpad so we can't check it in, never figured out why:

diff --git a/debian/rules b/debian/rules
index f7148533b..a67144cbb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -51,7 +51,7 @@ endif

%:

  • dh $@ --with systemd,bash-completion
  • dh $@ --with systemd,bash-completion,quilt

clean: createcopyright

all the copy-xxx targets were experiments

the primary one I use is debian-release-tarball as our release process is to build on launchpad, following the instructions in debian-alt/doc/launchpad.txt the following fix should work for debian-binary local builds, but it doesn't work on launchpad so we can't check it in, never figured out why: diff --git a/debian/rules b/debian/rules index f7148533b..a67144cbb 100755 --- a/debian/rules +++ b/debian/rules @@ -51,7 +51,7 @@ endif %: - dh $@ --with systemd,bash-completion + dh $@ --with systemd,bash-completion,quilt clean: createcopyright all the copy-xxx targets were experiments
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: I2P_Developers/i2p.i2p#487
No description provided.