~dlax

Toulouse, France

Recent activity

Re: [PATCH git.sr.ht-deb] Ensuring cronjobs run as the service user. a month ago

From Denis Laxalde to ~sircmpwn/sr.ht-packages

Applied, thanks.

To git.sr.ht:~dlax/git.sr.ht-deb
   dc42d13..64a77f1  master -> master

Re: [PATCH hg.sr.ht-deb] Ensuring cronjobs run as the service user a month ago

From Denis Laxalde to ~sircmpwn/sr.ht-packages

Peter Sanchez a écrit :
> # HG changeset patch
> # User Peter Sanchez <peter@netlandish.com>
> # Date 1594338989 25200
> #      Thu Jul 09 16:56:29 2020 -0700
> # Node ID a2e6d3d6c85ccfb43c59e2f488eb869bdb2e128f
> # Parent  8e89b0ac1cd95da483f257da91b230a7638ac548
> Ensuring cronjobs run as the service user.
> Moving daily cronjob into the cron.d file to force service user.

Applied, thanks.

> diff --git a/debian/srht-hg.cron.d b/debian/srht-hg.cron.d
> --- a/debian/srht-hg.cron.d

[PATCH builds.sr.ht] Set log values to null when runner is unset in Job.to_dict() 3 months ago

From Denis Laxalde to ~sircmpwn/sr.ht-dev

This avoids getting URLs formatted with None in the response obtained by
POSTing to /api/jobs because the runner is set in a delayed task.
Typically:

    {
        // [...]

        "runner": null,
        "setup_log": "http://None/logs/199348/log",
        "status": "queued",
        "tags": null,
        "tasks": [
            {
                "log": "http://None/logs/199348/build/log",
[message trimmed]

[PATCH hub.sr.ht] Add a build manifest for Debian packaging 3 months ago

From Denis Laxalde to ~sircmpwn/sr.ht-dev

---
 .builds/debian.yml | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 .builds/debian.yml

diff --git a/.builds/debian.yml b/.builds/debian.yml
new file mode 100644
index 0000000..86b8189
--- /dev/null
+++ b/.builds/debian.yml
@@ -0,0 +1,37 @@
image: debian/sid
repositories:
  sr.ht: https://mirror.sr.ht/debian/ sid main 6B1296C65B24472674E7B6520585B50AC6A4914D
[message trimmed]

Re: [PATCH builds.sr.ht 1/1] Add default drop in for docker workaround 3 months ago

From Denis Laxalde to ~sircmpwn/sr.ht-dev

> diff --git a/images/debian/genimg b/images/debian/genimg
> index d51cddb..61bd48d 100755
> --- a/images/debian/genimg
> +++ b/images/debian/genimg
> @@ -124,6 +124,12 @@ echo "PermitEmptyPasswords yes" >> /mnt/etc/ssh/sshd_config
>  echo ssh >> /mnt/etc/securetty
>  run_root systemctl enable ssh
>  
> +cat >/mnt/usr/lib/systemd/system/docker.service.d/10-bridge.conf <<EOF
> +[Service]
> +ExecStart=
> +ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --bip 172.18.0.1/16
> +EOF
> +

[PATCH git-rebase.io] Mention that non-interactive and interactive behaviors no longer differ now 3 months ago

From Denis Laxalde to ~sircmpwn/public-inbox

From 2.26.0 release notes:

> "git rebase" has learned to use the merge backend (i.e. the
>  machinery that drives "rebase -i") by default, [...]
---
 index.html | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/index.html b/index.html
index 0393ef3..237fff6 100644
--- a/index.html
+++ b/index.html
@@ -749,11 +749,11 @@ git rebase origin/&lt;branch&gt;</pre>
        </div>
[message trimmed]

[PATCH builds.sr.ht] Add trailing new-lines when filling APT's sources.list 3 months ago

From Denis Laxalde to ~sircmpwn/sr.ht-dev

Commit 0bca93b1e7df02bf5b0f65a33c6b042e160659ce introduced an extra
"deb-src" line in /etc/apt/sources.list. But since the existing line did
not end with a new line, the two strings ended up being on the same
line, resulting in an invalid sources.list entry.
---
 images/debian/functions | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/images/debian/functions b/images/debian/functions
index 670935b..9ee5c4e 100644
--- a/images/debian/functions
+++ b/images/debian/functions
@@ -59,9 +59,9 @@ add_repository() {
			--keyserver hkp://keyserver.ubuntu.com:80 \
[message trimmed]

Re: [PATCH hg.sr.ht] Rewrite hgsrht-shell to do all the work directly in the script 4 months ago

From Denis Laxalde to ~sircmpwn/sr.ht-dev

> diff --git a/hgsrht-shell b/hgsrht-shell
> --- a/hgsrht-shell
> +++ b/hgsrht-shell
> @@ -68,11 +79,156 @@
>      headers.update(sign_payload(payload))
>      r = requests.post(f"{origin}/internal/check-ssh-access",
>              data=payload, headers=headers)
> -    return r.status_code, r.text, r.json()
> +    obj = r.json()
> +    res = _RepoInfo(obj['id'], obj['name'], None, obj['owner']['name'])
> +    res.path = obj['path']
> +    res.visibility = obj['visibility']
> +    res.access_grant = obj['access']
> +    res.path = path

[PATCH builds.sr.ht] Add "deb-src" entries in Debian/Ubuntu add_repository() 6 months ago

From Denis Laxalde to ~sircmpwn/sr.ht-dev

Having this line allows one to run "apt-get source" and retrieve
distribution's source code in builds.sr.ht job. This is useful to modify
and rebuild a Debian package obtained from an APT repository listed in
build's manifest.
---
 images/debian/functions | 2 ++
 images/ubuntu/functions | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/images/debian/functions b/images/debian/functions
index 3db31bc..670935b 100644
--- a/images/debian/functions
+++ b/images/debian/functions
@@ -61,6 +61,8 @@ add_repository() {
[message trimmed]