Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#77400 - [unrar] FTBFS

Attached to Project: Arch Linux
Opened by Sebastien Duthil (duthils) - Monday, 06 February 2023, 03:18 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 07 February 2023, 03:06 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: unrar 1:6.2.5-1 fails to build from source

Full build log: https://reproducible.archlinux.org/api/v0/builds/396724/log

Steps to reproduce:

* Use a multi-CPU machine and a rather slow storage device
* Create a clean chroot as indicated at https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot
* mkarchroot $CHROOT/root base-devel
* makechrootpkg -c -r $CHROOT

Attached is a patch that fixes the build error.

Technical details:

* When using make -j4 for parallelizing jobs, makepkg runs:

make -C libunrar lib

which runs in parallel:

make clean
make rar.o
make strlist.o
make strfn.o

make clean eventually runs:

@rm -f $(OBJECTS) $(UNRAR_OBJ) $(LIB_OBJ)

If one of the objects was already built before running this rm command, then the object that was just built will be removed. After that, the linker fails to find this object and errors out.
This task depends upon

Closed by  Toolybird (Toolybird)
Tuesday, 07 February 2023, 03:06 GMT
Reason for closing:  Upstream
Additional comments about closing:  Reporter says "Will be fixed upstream."
Comment by Toolybird (Toolybird) - Monday, 06 February 2023, 05:44 GMT
> fails to build from source

Not quite accurate. It's only in some rare circumstances. You should really be fixing the makefiles and sending a patch upstream.
Comment by Sebastien Duthil (duthils) - Monday, 06 February 2023, 22:08 GMT
I did contact upstream and they will fix the issue in the makefile in their next release. Closing this issue.

Loading...