Troubleshooting DDE_RUMP Port

I’ve been trying to build Sculpt OS from source, and have run into trouble with the prepare_port tool applying patches for dde_rump

me2@mistcutter:~/genode$ tool/ports/prepare_port dde_rump
dde_rump  update src/lib/dde_rump
dde_rump  apply patches/rump.patch
dde_rump  apply patches/aarch64.patch
The text leading up to this was:
--------------------------
|diff --git a/arm/arm32/kobj_machdep.c b/arm/arm32/kobj_machdep.c
|index 6fc772f..146f580 100644
|--- src/lib/dde_rump_backport/arm/arm32/kobj_machdep.c
|+++ src/lib/dde_rump_backport/arm/arm32/kobj_machdep.c
--------------------------
File to patch:
Skip this patch? [y] y
2 out of 2 hunks ignored
make[2]: *** [/home/me2/genode/tool/ports/mk/install.mk:128: phony/patches/patches/aarch64.patch] Error 1
make[1]: *** [/home/me2/genode/tool/ports/mk/prepare_single_port.mk:43: _install_in_port_dir] Error 2
make: *** [tool/ports/prepare_port:47: dde_rump] Error 2

Should I suggest a file to patch, and if so, which one?

Thanks!

It seems like this is the file being modified: netbsd-src/src/sys/arch/arm/arm32/kobj_machdep.c at master · justincormack/netbsd-src · GitHub

The line numbers add up, and the repo hasn’t been modified in years so it’s not a case of tracking HEAD and getting out of date

Another update: it seems like the dde_rump_backport folder is empty:

me2@mistcutter:~/genode/contrib/dde_rump-19d6de3e1210c7f1c033d46d4178694d263cf0c1.incomplete/src/lib/dde_rump_backport$ ls

based on

dde_rump  update src/lib/dde_rump
dde_rump  apply patches/rump.patch
dde_rump  apply patches/aarch64.patch

maybe it is applying the patch before fetching all the git files? There’s no line saying dde_rump update src/lib/dde_rump_backport

another another update:
(i should do more before posting)

The lack of message doesn’t mean anything because there’s no message printed in

unlike for git or svn

other interesting note, this is the only port using .sparse-git

Deleting the temp folder in contrib got me some better messages

me2@mistcutter:~/genode$ ./tool/ports/prepare_port dde_rump
dde_rump  download https://github.com/ssumpf/rump.git
dde_rump  git Cloning into 'src/lib/dde_rump'...
dde_rump  update src/lib/dde_rump
dde_rump  download https://github.com/justincormack/netbsd-src
dde_rump  git Cloning into '/tmp/tmp.CefAXl2tsF'...
dde_rump  git fatal: cannot change to 'https://github.com/justincormack/netbsd-src': No such file or directory
dde_rump  git error: failed to initialize sparse-checkout
fatal: not a git repository: '.git'
mv: cannot stat '/tmp/tmp.CefAXl2tsF/src/sys/arch/*': No such file or directory
dde_rump  download https://github.com/justincormack/netbsd-src
dde_rump  git Cloning into '/tmp/tmp.hAB5S1MuA3'...
dde_rump  git fatal: cannot change to 'https://github.com/justincormack/netbsd-src': No such file or directory
dde_rump  git error: failed to initialize sparse-checkout
fatal: not a git repository: '.git'
mv: cannot stat '/tmp/tmp.hAB5S1MuA3/src/common/lib/libc/arch/aarch64/atomic/*': No such file or directory
dde_rump  download https://github.com/justincormack/netbsd-src
dde_rump  git Cloning into '/tmp/tmp.6Jf7XsumXN'...
dde_rump  git fatal: cannot change to 'https://github.com/justincormack/netbsd-src': No such file or directory
dde_rump  git error: failed to initialize sparse-checkout
fatal: not a git repository: '.git'
mv: cannot stat '/tmp/tmp.6Jf7XsumXN/src/common/lib/libc/arch/riscv/atomic/*': No such file or directory
dde_rump  apply patches/rump.patch
dde_rump  apply patches/aarch64.patch
The text leading up to this was:
--------------------------
|diff --git a/arm/arm32/kobj_machdep.c b/arm/arm32/kobj_machdep.c
|index 6fc772f..146f580 100644
|--- src/lib/dde_rump_backport/arm/arm32/kobj_machdep.c
|+++ src/lib/dde_rump_backport/arm/arm32/kobj_machdep.c
--------------------------
File to patch:

I’ve tried adding .git to the end in repos/dde_rump/ports/dde_rump.port , but it didn’t seem to help.

Lunch break is over but I’ll let you know if I get anywhere further

Could it be the git version problem mentioned here?

1 Like

That did it! Thank you