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

fix: build ooniprobe for linux using debian/amd64 #552

Merged
merged 1 commit into from
Oct 22, 2021
Merged

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented Oct 22, 2021

Checklist

Location of the issue tracker: https://github.com/ooni/probe

Description

In ooni/probe#1741, we observed that
every attempt to use docker --platform along with debian for
packaging ooniprobe fails with SEGFAULT, except when using
the debian:oldstable container.

To fix this issue, in this diff we fix Debian packaging to run on
any debian system (debian:stable in our case) provided that we
have qemu-user-static installed on the system and the system is
a Debian (or Debian-derived) system.

The trick here is to use dpkg-buildpackage -a $deb_arch. We
also need to disable a few debian/rules that we don't actually
need anyway.

Closes ooni/probe#1741.

@bassosimone bassosimone requested a review from hellais as a code owner October 22, 2021 10:59
@bassosimone bassosimone changed the base branch from master to stable October 22, 2021 11:01
In ooni/probe#1741, we observed that
every attempt to use `docker --platform` along with `debian` for
packaging ooniprobe fails with `SEGFAULT`, except when using
the `debian:oldstable` container.

To fix this issue, in this diff we fix Debian packaging to run on
any debian system (`debian:stable` in our case) provided that we
have `qemu-user-static` installed on the system and the system is
a Debian (or Debian-derived) system.

The trick here is to use `dpkg-buildpackage -a $deb_arch`. We
also need to disable a few `debian/rules` that we don't actually
need anyway.

Closes ooni/probe#1741.
@bassosimone bassosimone merged commit 36a5bf3 into stable Oct 22, 2021
@bassosimone bassosimone deleted the linux branch October 22, 2021 11:39
bassosimone added a commit that referenced this pull request Oct 22, 2021
In ooni/probe#1741, we observed that
every attempt to use `docker --platform` along with `debian` for
packaging ooniprobe fails with `SEGFAULT`, except when using
the `debian:oldstable` container.

To fix this issue, in this diff we fix Debian packaging to run on
any debian system (`debian:stable` in our case) provided that we
have `qemu-user-static` installed on the system and the system is
a Debian (or Debian-derived) system.

The trick here is to use `dpkg-buildpackage -a $deb_arch`. We
also need to disable a few `debian/rules` that we don't actually
need anyway.

Closes ooni/probe#1741.

This cherry-picks 36a5bf3
from the stable branch into the master branch.
bassosimone added a commit that referenced this pull request Oct 22, 2021
In ooni/probe#1741, we observed that
every attempt to use `docker --platform` along with `debian` for
packaging ooniprobe fails with `SEGFAULT`, except when using
the `debian:oldstable` container.

To fix this issue, in this diff we fix Debian packaging to run on
any debian system (`debian:stable` in our case) provided that we
have `qemu-user-static` installed on the system and the system is
a Debian (or Debian-derived) system.

The trick here is to use `dpkg-buildpackage -a $deb_arch`. We
also need to disable a few `debian/rules` that we don't actually
need anyway.

Closes ooni/probe#1741.

This cherry-picks 36a5bf3
from the stable branch into the master branch.
ainghazal pushed a commit to ainghazal/probe-cli that referenced this pull request Mar 8, 2022
In ooni/probe#1741, we observed that
every attempt to use `docker --platform` along with `debian` for
packaging ooniprobe fails with `SEGFAULT`, except when using
the `debian:oldstable` container.

To fix this issue, in this diff we fix Debian packaging to run on
any debian system (`debian:stable` in our case) provided that we
have `qemu-user-static` installed on the system and the system is
a Debian (or Debian-derived) system.

The trick here is to use `dpkg-buildpackage -a $deb_arch`. We
also need to disable a few `debian/rules` that we don't actually
need anyway.

Closes ooni/probe#1741.

This cherry-picks 41a01e26ab1caaf00aba1e307a7553d617b75e4c
from the stable branch into the master branch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cli: linux_arm64 builds fail
1 participant