kjn / lbzip2

Parallel bzip2 utility
GNU General Public License v3.0
133 stars 17 forks source link

Does not build on Fedora Rawhide #22

Open lzap opened 6 years ago

lzap commented 6 years ago

Hello there!

Upcoming changes in glibc 2.28 broke the package.

https://koji.fedoraproject.org/koji/taskinfo?taskID=28542910

https://kojipkgs.fedoraproject.org//work/tasks/2910/28542910/build.log

gcc -DHAVE_CONFIG_H -I.     -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o printf-args.o printf-args.c
fseterr.c: In function 'fseterr':
fseterr.c:77:3: error: #error "Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib."
  #error "Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib."
   ^~~~~
make[3]: *** [Makefile:1474: fseterr.o] Error 1
make[3]: *** Waiting for unfinished jobs....

Thanks for help.

hanetzer commented 5 years ago

Same here on gentoo. Thought it was an issue for arm but also exists for amd64 systems w/gcc-8. An update of gnulib would do the trick.

jnumm commented 5 years ago

FTR, also in Debian Sid: https://bugs.debian.org/915171.

kjn commented 5 years ago

This will be fixed in the next release when I rebase Gnulib to latest version.

lzap commented 5 years ago

Thanks, please poke me once new release is wild so I can update the Fedora package. Not sure if I have release monitor on lbzip2.

lzap commented 5 years ago

Hello, any updates?

logological commented 5 years ago

For those who want a version of the source distribution that builds with glibc ≥2.28, but who lack the time or knowledge to do so themselves, I've forked this repository and added signed, buildable source releases for v2.5.

I have also updated the OBS project for lbzip2 so that it uses my source release. This means that you can now once again get working source and binary RPMs for lbzip2 for openSUSE and SUSE Linux Enterprise Server.

Hopefully these will serve until @kjn is able to update the official distribution in this repository.

P.S. – Note that make distcheck does not seem to work with my source distribution; all tests fail with the error that the directory cannot be opened. I'm not sure if this is the result of my own re-bootstrapping or if this was a pre-existing problem. However, I've verified that all the tests run fine if the driver and minbzcat executables are manually copied into the tests directory.

0xaf1f commented 1 year ago

To avoid using a third party source distribution, these are the steps I had to do for updating the gnulib distribution in the tarball:

../gnulib-HEAD-*/gnulib-tool --import pthread-h xalloc dtotimespec gettime timespec-{add,sub} fdutimensat