fakeroot and file

General talk about packaging procedures and packages.
Post Reply
djemos
Salix Warrior
Posts: 1433
Joined: 29. Dec 2009, 13:45
Location: Greece

fakeroot and file

Post 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.
User avatar
SalixManiac
Posts: 113
Joined: 15. Apr 2022, 02:26

Re: fakeroot and file

Post 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?
Colin Chapman “light is right” those last words "the middle pedal is for cowards"
User avatar
gapan
Salix Wizard
Posts: 6238
Joined: 6. Jun 2009, 17:40

Re: fakeroot and file

Post 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.
Image
Image
djemos
Salix Warrior
Posts: 1433
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: fakeroot and file

Post 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.
User avatar
gapan
Salix Wizard
Posts: 6238
Joined: 6. Jun 2009, 17:40

Re: fakeroot and file

Post 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.
Image
Image
djemos
Salix Warrior
Posts: 1433
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: fakeroot and file

Post by djemos »

Thanks gapan.
Post Reply