fakeroot 1.35-1 hangs on Odroid-XU4

Problems with packages? Post here, using [tags] of the package name.

fakeroot 1.35-1 hangs on Odroid-XU4

Postby kisimre » Sun Jun 16, 2024 1:58 pm

fakeroot 1.35-1 hangs on Odroid-XU4 when trying to run any command via fakeroot. The issue seems to be caused by thismake_clickable_callback(MAGIC_URL_FULL, ' ', 'https://salsa.debian.org/clint/fakeroot/-/commit/f10644341c330f8fc48ba78ca32208c7d5f5b1ae', '', ' class="postlink"')
It switches from calling close() in a loop to using close_range(). The problem is that close_range() was introduced in Linux 5.9 and Odroid-XU4 only has 4.14.180 (linux-odroid-xu3 package).
fakeroot 1.33 works fine and 1.35 works too if I add 'ac_cv_func_close_range=no' to the configure parameters.
I am not sure what would be the best solution for this issue.
[*] Disabling close_range() via ac_cv_func_close_range=no, however other Arm platforms with 5.9+ kernels might benefit form using close_range() as it was introduced for a reason.
[*] Creating separate fakeroot package for pre-5.9 systems
[*] Adding some kind of runtime decision into fakeroot for selecting close() or close_range() based solution
kisimre
 
Posts: 4
Joined: Sun Jun 16, 2024 12:21 pm

Re: fakeroot 1.35-1 hangs on Odroid-XU4

Postby mark9201 » Mon Jun 24, 2024 3:11 pm

I'm having the exact same issue on my odroid.
fakeroot just hangs

where is the configuration file that you add ac_cv_func_close_range=no so it works?

Thanks.
mark9201
 
Posts: 2
Joined: Mon Jun 24, 2024 3:06 pm

Re: fakeroot 1.35-1 hangs on Odroid-XU4

Postby kisimre » Mon Jun 24, 2024 5:42 pm

By configure parameters, I meant the command line parameters of the Autoconf configure script of fakeroot. Sorry, if I wasn't clear. I built fakeroot from source on the Odroid device and installed it via make install. This happens behind the package manager's back, which is generally not recommended, but I had no other options. makepkg would also use fakeroot, which doesn't work, so this is a chicken and egg problem.
You can run my script on the Odroid device to get a working fakeroot.
https://gist.github.com/KisImre/ca57f5dc00e790f7e289513aecb5a578#file-build_and_install_fakeroot-sh
kisimre
 
Posts: 4
Joined: Sun Jun 16, 2024 12:21 pm

Re: fakeroot 1.35-1 hangs on Odroid-XU4

Postby mark9201 » Mon Jun 24, 2024 9:59 pm

worked perfect.

Thank you so much.
mark9201
 
Posts: 2
Joined: Mon Jun 24, 2024 3:06 pm

Re: fakeroot 1.35-1 hangs on Odroid-XU4

Postby gopher_sublease239 » Mon Jul 01, 2024 4:57 am

Just wanted to shot out to kisimre, this worked for me as well.

I do wonder how this happened, I'm not familiar with close_range(). Will have to peruse the man page and source. Guessing you strace'd to see where it was hanging?
gopher_sublease239
 
Posts: 1
Joined: Mon Jul 01, 2024 4:54 am

Re: fakeroot 1.35-1 hangs on Odroid-XU4

Postby kisimre » Mon Jul 01, 2024 5:12 pm

Yes, I strace'd it including the child processes. I compared the output for the previous and the current fakeroot versions, and the only difference was that the current version called close_range. The call returned an error code indicating that it is not implemented.
Since then I've noticed that there's a 6.6 kernel for Odroid-XU4:make_clickable_callback(MAGIC_URL_FULL, ' ', 'https://wiki.odroid.com/odroid-xu4/os_images/linux/ubuntu_6.6/minimal/20240506', '', ' class="postlink"')
Someone already started updating the Arch Linux Arm kernel package for Odroid-XU4 here:make_clickable_callback(MAGIC_URL_FULL, ' ', 'https://github.com/archlinuxarm/PKGBUILDs/pull/2027', '', ' class="postlink"')
This would fix the fakeroot issue because 6.6 implements close_range and it can also prevent future issues with other user space applications which start to use newer kernel features.
kisimre
 
Posts: 4
Joined: Sun Jun 16, 2024 12:21 pm

Re: fakeroot 1.35-1 hangs on Odroid-XU4

Postby kisimre » Sun Jul 07, 2024 10:37 am

The linux-odroid-xu3 6.6 pull request has been merged, so now the kernel handles close_range properly. I can confirm that the fakeroot 1.35-1 package works fine after the kernel update.
kisimre
 
Posts: 4
Joined: Sun Jun 16, 2024 12:21 pm


Return to Packages

Who is online

Users browsing this forum: No registered users and 34 guests