WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: fakechroot in CorePure64  (Read 329 times)

Offline Zhurman

  • Newbie
  • *
  • Posts: 3
fakechroot in CorePure64
« on: June 30, 2025, 08:17:31 AM »
Hi, I needed fakechroot for my Tiny Core system, so I manually packaged it from the Arch Linux repo. I also added the full packages of glibc and libxcrypt to include the necessary shared libraries (*.so files). After loading the extensions and trying to run fakechroot, I got a segmentation fault three times, and it usually breaks the system - only sudo poweroff still works properly.

Here’s my .dep file:
readline.tcz 
ncursesw.tcz 
glibc.tcz 
gdbm.tcz 
db.tcz 
libxcrypt.tcz 
fakeroot.tcz 
coreutils.tcz 
util-linux.tcz 

Also, running ldd on fakechroot causes a segmentation fault with the same result.

What can I do to get fakechroot working correctly? Or is writing my own minimal implementation a more valid solution?

[EDIT] I also see the Alpine Linux, maybe I start work with this?
« Last Edit: June 30, 2025, 08:40:13 AM by Zhurman »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12186
Re: fakechroot in CorePure64
« Reply #1 on: June 30, 2025, 09:10:45 AM »
Hi Zhurman
Welcome to the forum.

When asking for help, it's usually a good idea to include:
Tinycore version i.e TC14, TC15, TC16, etc.
Architecture i,e, x86, x86_64, arm, aarch64
The exact command that is causing the issue.

Hi, I needed fakechroot for my Tiny Core system, so I manually packaged it from the Arch Linux repo. ...
Grabbing binaries from other distros can be a hit or miss exercise.

Quote
... I also added the full packages of glibc and libxcrypt to include the necessary shared libraries (*.so files). After loading the extensions and trying to run fakechroot, I got a segmentation fault three times, and it usually breaks the system - only sudo poweroff still works properly. ...
Did you try running it with the  -s  option:
Code: [Select]
fakechroot -s ...
Or you may have to compile it from source using the Tinycore
toolchain (compiletc.tcz):
https://github.com/dex4er/fakechroot

Offline Zhurman

  • Newbie
  • *
  • Posts: 3
Re: fakechroot in CorePure64
« Reply #2 on: June 30, 2025, 12:26:39 PM »
When asking for help, it's usually a good idea to include:
Tinycore version i.e TC14, TC15, TC16, etc.
Architecture i,e, x86, x86_64, arm, aarch64
The exact command that is causing the issue.
OK, sure.
TC16.1, architecture x86_64

Did you try running it with the  -s  option:
Code: [Select]
fakechroot -s ...

That command also give segfaults and breaks my system.

Or you may have to compile it from source using the Tinycore
toolchain (compiletc.tcz):

[EDIT] Starting to try.
« Last Edit: June 30, 2025, 12:36:09 PM by Zhurman »

Offline Zhurman

  • Newbie
  • *
  • Posts: 3
Re: fakechroot in CorePure64
« Reply #3 on: July 01, 2025, 04:48:11 PM »
Or you may have to compile it from source using the Tinycore
toolchain (compiletc.tcz):
https://github.com/dex4er/fakechroot

That's works! Thanks :D
And sorry to have bothered you.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12186
Re: fakechroot in CorePure64
« Reply #4 on: July 01, 2025, 08:08:33 PM »
Hi Zhurman
That's works! Thanks :D ...
You are welcome. Glad I could help.

Quote
... And sorry to have bothered you.
You were no bother at all. You ask a few questions, solved
your problem, and reported your success.

Everyones problems should be this easy. :)