internal/rosa: fakeroot artifact

XSLT is untamable and extremely unpleasant to work with. This patches out the broken docs for now in the interest of getting some work done.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-02-25 01:20:31 +09:00
parent 2b93631f52
commit 2aeac7f582
2 changed files with 55 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ const (
DTC DTC
Diffutils Diffutils
Elfutils Elfutils
Fakeroot
Findutils Findutils
Flex Flex
Fuse Fuse
@@ -163,6 +164,7 @@ func ResolveName(name string) (p PArtifact, ok bool) {
"dtc": DTC, "dtc": DTC,
"diffutils": Diffutils, "diffutils": Diffutils,
"elfutils": Elfutils, "elfutils": Elfutils,
"fakeroot": Fakeroot,
"findutils": Findutils, "findutils": Findutils,
"flex": Flex, "flex": Flex,
"fuse": Fuse, "fuse": Fuse,

53
internal/rosa/fakeroot.go Normal file
View File

@@ -0,0 +1,53 @@
package rosa
import "hakurei.app/internal/pkg"
func (t Toolchain) newFakeroot() pkg.Artifact {
const (
version = "1.37.2"
checksum = "4ve-eDqVspzQ6VWDhPS0NjW3aSenBJcPAJq_BFT7OOFgUdrQzoTBxZWipDAGWxF8"
)
return t.NewViaMake("fakeroot", version, t.NewPatchedSource(
"fakeroot", version, pkg.NewHTTPGetTar(
nil, "https://salsa.debian.org/clint/fakeroot/-/archive/upstream/"+
version+"/fakeroot-upstream-"+version+".tar.bz2",
mustDecode(checksum),
pkg.TarBzip2,
), false, [2]string{"remove-broken-docs", `diff --git a/doc/Makefile.am b/doc/Makefile.am
index f135ad9..85c784c 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,5 +1,4 @@
AUTOMAKE_OPTIONS=foreign
-SUBDIRS = de es fr nl pt ro sv
man_MANS = faked.1 fakeroot.1
`},
), &MakeAttr{
Writable: true,
Env: []string{
"CONFIG_SHELL=/bin/sh",
},
ScriptEarly: `
cd /usr/src/fakeroot
./bootstrap
`,
// makes assumptions about /etc/passwd
SkipCheck: true,
},
t.Load(M4),
t.Load(Perl),
t.Load(Autoconf),
t.Load(Automake),
t.Load(Libtool),
t.Load(PkgConfig),
t.Load(Attr),
t.Load(Libcap),
t.Load(KernelHeaders),
)
}
func init() { artifactsF[Fakeroot] = Toolchain.newFakeroot }