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#70048 - [xz] build failure

Attached to Project: Arch Linux
Opened by Michal Wojdyla (micwoj92) - Thursday, 18 March 2021, 09:33 GMT
Last edited by Pierre Schmitz (Pierre) - Friday, 17 September 2021, 09:47 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: xz fails to build with error


Additional info:
* package version(s) 5.2.5-1

Steps to reproduce:
1. download PKGBUILD
2. makepkg -si
3. build fails with error
message.c: In function ‘progress_speed.part.0’:
message.c:384:35: error: ‘%s’ directive output may be truncated writing up to 23 bytes into a region of size between 0 and 14 [-Werror=format-truncation=]


I've found same error with artix lib32-xz https://lists.artixlinux.org/archives/artix-build-failures/2020-September.txt

After applying `export CFLAGS="$CFLAGS -Wno-format-truncation"` in PKGBUILD same as artix does then the package can be built.

https://gitea.artixlinux.org/artixlinux/packages-lib32/commit/3cf12aa86d30b9123cc57cce07f9bf14e322ad2f
This task depends upon

Closed by  Pierre Schmitz (Pierre)
Friday, 17 September 2021, 09:47 GMT
Reason for closing:  Fixed
Comment by Michal Wojdyla (micwoj92) - Thursday, 18 March 2021, 09:42 GMT
Oh, I just found that lib32-xz in Arch Linux has same fix for this error.
Comment by Pierre Schmitz (Pierre) - Friday, 17 September 2021, 09:47 GMT
Thanks for the hint; I have updated the package.

Loading...