Eternity bwrap failing to find fakeroot-tcp #1

Closed
opened 2024-11-01 14:27:52 -07:00 by Evilcoder · 7 comments
Owner

Error :


[INFO] Parsing eternity.json
[INFO] Creating temp directory
[INFO] Generating shell script
[INFO] Starting up container environment (replicating host files)
[INFO] Checking if bwrap is available and has the necessary permissions
[INFO] Binding files folder to container
[INFO] Executing build script in container
[INFO] Command: bwrap --unshare-net --bind /bin /bin --bind /lib /lib --bind /lib64 /lib64 --bind /usr /usr --bind /etc /etc --bind /var /var --bind /sys /sys --bind /opt /opt --bind /tmp/eternity-build-4062175697/build /build --bind /tmp/eternity-build-4062175697 /eternity --dev /dev --tmpfs /run --tmpfs /tmp --proc /proc --bind . / /usr/bin/fakeroot-tcp -- /bin/sh /eternity/build.sh
bwrap: execvp /usr/bin/fakeroot-tcp: No such file or directory
[INFO] Command stdout:
[INFO] Command stderr: bwrap: execvp /usr/bin/fakeroot-tcp: No such file or directory

[INFO] Error occurred while executing build.sh, returning error
[FATAL] Failed to start BubbleWrap container and run build.sh in it: exit status 1

running which fakeroot-tcp shows that the file exists, my eternity.json

{
  "metadata": {
    "author": "GNU",
    "name": "GRUB",
    "desc": "The GRand Unified Bootloader",
    "longDesc": "GNU GRUB is a Multiboot boot loader. It was derived from GRUB, the GRand Unified Bootloader which was originally designed and implemented by Erich Stefan Boleyn.",
    "version": "2.12",
    "license": "GPL",
    "arch": "x86_64",
    "deps": []
  },
  "build": {
    "type": "host",
    "deps": ["gcc", "make", "gettext", "bison", "flex"],
    "steps": [
      "./bootstrap",
      "./configure",
      "make"
    ],
    "root": "build",
    "files" : "."
  }
}
Error : ``` [INFO] Parsing eternity.json [INFO] Creating temp directory [INFO] Generating shell script [INFO] Starting up container environment (replicating host files) [INFO] Checking if bwrap is available and has the necessary permissions [INFO] Binding files folder to container [INFO] Executing build script in container [INFO] Command: bwrap --unshare-net --bind /bin /bin --bind /lib /lib --bind /lib64 /lib64 --bind /usr /usr --bind /etc /etc --bind /var /var --bind /sys /sys --bind /opt /opt --bind /tmp/eternity-build-4062175697/build /build --bind /tmp/eternity-build-4062175697 /eternity --dev /dev --tmpfs /run --tmpfs /tmp --proc /proc --bind . / /usr/bin/fakeroot-tcp -- /bin/sh /eternity/build.sh bwrap: execvp /usr/bin/fakeroot-tcp: No such file or directory [INFO] Command stdout: [INFO] Command stderr: bwrap: execvp /usr/bin/fakeroot-tcp: No such file or directory [INFO] Error occurred while executing build.sh, returning error [FATAL] Failed to start BubbleWrap container and run build.sh in it: exit status 1 ``` running `which fakeroot-tcp` shows that the file exists, my eternity.json ```json { "metadata": { "author": "GNU", "name": "GRUB", "desc": "The GRand Unified Bootloader", "longDesc": "GNU GRUB is a Multiboot boot loader. It was derived from GRUB, the GRand Unified Bootloader which was originally designed and implemented by Erich Stefan Boleyn.", "version": "2.12", "license": "GPL", "arch": "x86_64", "deps": [] }, "build": { "type": "host", "deps": ["gcc", "make", "gettext", "bison", "flex"], "steps": [ "./bootstrap", "./configure", "make" ], "root": "build", "files" : "." } } ```

you need to install the fakeroot-tcp package if you are on arch and the fakeroot package on other distros

you need to install the fakeroot-tcp package if you are on arch and the fakeroot package on other distros
Owner

the fakeroot package doesn't work, it needs to be fakeroot-tcp. They said on Discord that was already installed though.

Possible issue

Incorrectly binding the folder: Try running ls /usr/bin | grep fakeroot as a step in your config and see if it shows the file.

Useful info

Linux distro / Operating System?
Package manager used to install fakeroot-tcp?

the fakeroot package doesn't work, it needs to be fakeroot-tcp. They said on Discord that was already installed though. ### Possible issue Incorrectly binding the folder: Try running `ls /usr/bin | grep fakeroot` as a step in your config and see if it shows the file. ### Useful info Linux distro / Operating System? Package manager used to install fakeroot-tcp?
Owner

It sounds like you may use Arch from some messages I looked at, arch likes to install fakeroot-tcp under the same name, fakeroot.

Ensure you've installed the TCP version of fakeroot before doing this, but a simple solution is to create a link like so:

sudo ln -sf /usr/bin/fakeroot /usr/bin/fakeroot-tcp

This command creates a symbolic link where /usr/bin/fakeroot-tcp points to /usr/bin/fakeroot.
Now, whenever someone runs fakeroot-tcp, it will execute fakeroot.

It sounds like you may use Arch from some messages I looked at, arch likes to install fakeroot-tcp under the same name, fakeroot. Ensure you've installed the TCP version of fakeroot before doing this, but a simple solution is to create a link like so: ``` sudo ln -sf /usr/bin/fakeroot /usr/bin/fakeroot-tcp ``` This command creates a symbolic link where `/usr/bin/fakeroot-tcp` points to `/usr/bin/fakeroot`. Now, whenever someone runs fakeroot-tcp, it will execute fakeroot.

the fakeroot package doesn't work, it needs to be fakeroot-tcp. They said on Discord that was already installed though.

It works for me, I don't use the fakeroot-tcp package as it's not available in the Oreon Lime (R2) repositories.

> the fakeroot package doesn't work, it needs to be fakeroot-tcp. They said on Discord that was already installed though. It works for me, I don't use the fakeroot-tcp package as it's not available in the Oreon Lime (R2) repositories.

I also was wrong when I said I installed it, I read it wrong.

I also was wrong when I said I installed it, I read it wrong.
Owner

Oh my gosh, I made the same mistake again. No such file or directory is a confusing error. It doesn't mean fakeroot isn't found, it means fake root didn't find what you asked it to run with /bin/sh 😭

Oh my gosh, I made the same mistake again. No such file or directory is a confusing error. It doesn't mean fakeroot isn't found, it means fake root didn't find what you asked it to run with /bin/sh 😭
Owner

Issue fixed here

Eternity is failing to reach git.savannah.gnu.org now, which I'll open a separate issue for.

Issue fixed [here]([url](https://git.oreonproject.org/packages/grub/commit/97c1efcdac72bd457e8cdb4f03715e380d691c00)) Eternity is failing to reach git.savannah.gnu.org now, which I'll open a separate issue for.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: oreonproject/eternity#1
No description provided.