diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-02-25 01:20:31 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-02-25 01:20:31 +0900 |
| commit | 2aeac7f582f1f03f9cca5251ec4bc275437ae64c (patch) | |
| tree | 2904421766277cad984c6eb1c1af617032ed4831 /internal | |
| parent | 2b93631f5274e5606358cb5af648c4361e8f3950 (diff) | |
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>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/rosa/all.go | 2 | ||||
| -rw-r--r-- | internal/rosa/fakeroot.go | 53 |
2 files changed, 55 insertions, 0 deletions
diff --git a/internal/rosa/all.go b/internal/rosa/all.go index 19f49869..6ffbad40 100644 --- a/internal/rosa/all.go +++ b/internal/rosa/all.go @@ -26,6 +26,7 @@ const ( DTC Diffutils Elfutils + Fakeroot Findutils Flex Fuse @@ -163,6 +164,7 @@ func ResolveName(name string) (p PArtifact, ok bool) { "dtc": DTC, "diffutils": Diffutils, "elfutils": Elfutils, + "fakeroot": Fakeroot, "findutils": Findutils, "flex": Flex, "fuse": Fuse, diff --git a/internal/rosa/fakeroot.go b/internal/rosa/fakeroot.go new file mode 100644 index 00000000..dea7515f --- /dev/null +++ b/internal/rosa/fakeroot.go @@ -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 } |
