Bug 1217049 - bin86/make: FTBFS after 2038
Summary: bin86/make: FTBFS after 2038
Status: CONFIRMED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Development (show other bugs)
Version: Current
Hardware: Other All
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Michael Matz
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-12 13:16 UTC by Bernhard Wiedemann
Modified: 2023-11-13 15:34 UTC (History)
2 users (show)

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Wiedemann 2023-11-12 13:16:23 UTC
While working on reproducible builds for openSUSE, I found that
our bin86 package fails to build after 2038-01-19 (31-bit int overflow)

Steps to reproduce:
osc co openSUSE:Factory/bin86 && cd $_
osc build --clean --nopreinstallimage --noservice --vm-type=kvm \
 --build-opt=--vm-custom-opt="-rtc base=2038-01-20T00:00:00" standard


Actual results:
 ncc -Mn -O -D__LIBC__ -DL___idiv bcc_int.c -c -o __idiv.o
 ar86 r /home/abuild/rpmbuild/BUILD/dev86-0.16.21/libc/libc.a __idiv.o
 make[4]: *** Invalid date for archive /home/abuild/rpmbuild/BUILD/dev86-0.16.21/libc/libc.a member __ldivmod.o.  Stop.
 rm __ldivmod.o
 make[4]: Leaving directory '/home/abuild/rpmbuild/BUILD/dev86-0.16.21/libc/bcc'
 make[3]: *** [Makefile:38: /home/abuild/rpmbuild/BUILD/dev86-0.16.21/libc/libc.a] Error 1
Comment 1 Michael Matz 2023-11-13 13:48:14 UTC
Huh.  I guess it's time for dosemu to not rely on bin86 anymore, or at least to
get rid of that dependency during the next 15 years.
Comment 2 Michael Matz 2023-11-13 15:34:43 UTC
In fact it doesn't rely on it anymore since approximately 2001 with this entry
from ChangeLog.old:

------
2001/02/09 ver. 1.1.1.2 unofficial pre-release
        From Bart
        - Converted all as86 code to gas using .code16
          Now we just need binutils > 2.9.1.0.25 and now as86 anymore
------

Submitted sr#1125682 to remove the BuildRequires on bin86.  (CCing Steffen).
Once accepted I can drop bin86.