Page 1 of 1

fakeroot and file

Posted: 8. Oct 2022, 10:23
by djemos
I boot in vmware in salix64-xfce 15.0 clear installation.
I download the file source from slackware-15.0 with all other files included there in file folder and recompile the file 5.41 package. Install it and fakeroot do not work. (fakeroot slkbuild -X) If i reinstall the file-5.41 binary from slackware-15.0 fakeroot is working. It is Weird.

Re: fakeroot and file

Posted: 11. Oct 2022, 21:34
by SalixManiac
hello djemos

did you find out where the problem came from?
a missing file in the package created by the slackbuild?
a missing dependency for the creation of the package?

Re: fakeroot and file

Posted: 12. Oct 2022, 13:26
by gapan
I get the same here. No idea why. I tried version 5.43 too, but it's the same with that. I also tried rebuilding fakeroot, upgrading it to 1.29, but still it doesn't work.

Re: fakeroot and file

Posted: 12. Oct 2022, 18:34
by djemos
I discovered this upgrading in slackel and fakeroot could not work. Then i found that this also happened in salix also.
The problem is that if run fakeroot slkbuild -X
the line

Code: Select all

file_type=\$(file -biLz "\$FILES")
in slkbuild where try to find the file-type to extract it in src fails. It return nothing. So build failed.

To see this if for example type

Code: Select all

fakeroot file slim-1.3.6.tar.gz 
/usr/bin/fakeroot: line 178:  4920 Bad system call         FAKEROOTKEY=$FAKEROOTKEY LD_LIBRARY_PATH="$PATHS" LD_PRELOAD="$FAKEROOT_LIB" "$@"
Even if i use any version of fakeroot it fails. So it is file package.
I could not think how they compile file in slackware and it works while if i re-build file-5.41 from source then fakeroot do not work. So it has nothing to do with file version but it is a mystery really.
While it works with sudo slkbuild -X
Also using the slackware file-5.41 package any version of fakeroot is working.

Re: fakeroot and file

Posted: 14. Oct 2022, 17:50
by gapan
Mystery solved. You need to compile it with the --disable-libseccomp option. In Slackware Pat probably built the package in a system that doesn't have libseccomp installed.

Re: fakeroot and file

Posted: 15. Oct 2022, 10:03
by djemos
Thanks gapan.