Your message dated Sat, 10 May 2025 06:04:15 +0000
with message-id <e1uddjn-00brly...@fasolo.debian.org>
and subject line Bug#1105023: fixed in forgejo-cli 0.3.0-3
has caused the Debian Bug report #1105023,
regarding forgejo-cli:FTBFS:build failed(Error: Permission denied (os error 13))
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1105023: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1105023
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: forgejo-cli
Version: 0.3.0-2
Severity: serious
Tags: FTBFS, patch

Dear forgejo-cli maintainer,
The package forgejo-cli build failed on riscv64.The crucial buildd log
below:
```

  debian/rules execute_after_dh_auto_install
make[1]: Entering directory '/build/reproducible-path/forgejo-cli-0.3.0'
# bash-completion
mkdir -p debian/forgejo-cli/usr/share/bash-completion/completions
debian/forgejo-cli/usr/bin/fj completion bash >
debian/forgejo-cli/usr/share/bash-completion/completions/fj
keys file not found, creating
Error: Permission denied (os error 13)

Location:
    src/keys.rs:43:9
make[1]: *** [debian/rules:12: execute_after_dh_auto_install] Error 1
make[1]: Leaving directory '/build/reproducible-path/forgejo-cli-0.3.0'
make: *** [debian/rules:4: binary-arch] Error 2
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned
exit status 2

```
The full buildd log is here:
https://buildd.debian.org/status/fetch.php?pkg=forgejo-cli&arch=riscv64&ver=0.3.0-2&stamp=1746652984&raw=0

My solution to this issue:
The problem arises because `forgejo-cli` (specifically the `fj` binary)
attempts to create a user-specific keys file (as indicated by `keys file
not found, creating` and the error at `src/keys.rs:43:9`) when its
`completion` subcommand is invoked. This is problematic in a sandboxed
build environment where write access to typical user configuration paths is
denied.The issue can be worked around in `debian/rules` by temporarily
setting the `HOME`, `XDG_CONFIG_HOME`, and `XDG_DATA_HOME` environment
variables to a temporary, writable directory before running the `fj
completion` commands. This ensures any attempted file writes are contained
and can be cleaned up.The debdiff patch is in the attachment.I have tested
that locally,and it works well.Please let me know whether this solution can
be accepted.

Gui-Yue
Best Regards

Attachment: fix_forgejo-cli_permission_denied.patch
Description: Binary data


--- End Message ---
--- Begin Message ---
Source: forgejo-cli
Source-Version: 0.3.0-3
Done: Daniel Baumann <dan...@debian.org>

We believe that the bug you reported is fixed in the latest version of
forgejo-cli, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1105...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Daniel Baumann <dan...@debian.org> (supplier of updated forgejo-cli package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 10 May 2025 07:25:08 +0200
Source: forgejo-cli
Architecture: source
Version: 0.3.0-3
Distribution: sid
Urgency: medium
Maintainer: Daniel Baumann <dan...@debian.org>
Changed-By: Daniel Baumann <dan...@debian.org>
Closes: 1105023
Changes:
 forgejo-cli (0.3.0-3) sid; urgency=medium
 .
   * Fixing FTBFS by calling fj when creating bash-completion file with a
     temporary writable directory, thanks to Yue Gui
     <yuemeng....@gmail.com> (Closes: #1105023).
Checksums-Sha1:
 df2cbaddcf123dd7b2ef35f75b25bc99aca9088e 1863 forgejo-cli_0.3.0-3.dsc
 3b224bd418ab422171b045458f65abc9b8750317 3848 forgejo-cli_0.3.0-3.debian.tar.xz
 b756a9b49f74d401169f43b31c65395c2ce4260f 24859 
forgejo-cli_0.3.0-3_amd64.buildinfo
Checksums-Sha256:
 635c1985d6dd5a79db474a3cb2d659e17b394f382bbc713bc4758f03c627e3df 1863 
forgejo-cli_0.3.0-3.dsc
 ae3233c35907fec99dffc13b2d3c164ad1b1466a62fb77b2228c05ba71cbaa9c 3848 
forgejo-cli_0.3.0-3.debian.tar.xz
 0a4a185784402a751c63874a37f557499170dc229764d48944a8947f2bb6fe61 24859 
forgejo-cli_0.3.0-3_amd64.buildinfo
Files:
 e510a03022983ea5903f1bb131862003 1863 utils optional forgejo-cli_0.3.0-3.dsc
 b74fe3f1b307bb491914e218c753854c 3848 utils optional 
forgejo-cli_0.3.0-3.debian.tar.xz
 61578afc102a6b400925a45409b67129 24859 utils optional 
forgejo-cli_0.3.0-3_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQQmmGg4gLaoSj0ERgL7tPDoCoAiLwUCaB7pHgAKCRD7tPDoCoAi
LzTPAQCHTjq+cbOZOIQghyyA0bBn+ZjH0YXarrCtA2zNWiXKtwEAoJbR/014e01p
+IDYkiJvPSGiYPS+bZkNOf6JooA6VAs=
=WVw0
-----END PGP SIGNATURE-----

Attachment: pgpuf4sMsbfjr.pgp
Description: PGP signature


--- End Message ---

Reply via email to