-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sys/sys/param.h in freebsd/main loses comment after __FreeBSD_version #193
Comments
Thank you for a very detailed explanation with links. |
okay, I see the logic flaw now |
The function would return "bad version" value if the input line did not end in a non-digit character. This bug was exposed when FreeBSD removed the trailing comment from sys/param.h header. This change should fix synth on FreeBSD 14.
Okay, I believe I fixed it and created a new release, 2.11. |
This fixes jrmarino/synth#193 (sys/sys/param.h in freebsd/main loses comment after __FreeBSD_version) MFH: 2021Q2
This fixes jrmarino/synth#193 (sys/sys/param.h in freebsd/main loses comment after __FreeBSD_version) MFH: 2021Q2 (cherry picked from commit a53b9c8)
[port maintainer mode on]: landed in main (https://cgit.FreeBSD.org/ports/commit/?id=a53b9c858eb613ea9f1e79d0b31655d747cc5275) and quarterly (https://cgit.FreeBSD.org/ports/commit/?id=8527b435b418ca72092601127e9229f949663cb8) branches |
Synth 2.11 works as expected in freebsd/src/main post commit |
Commit
9e0ba9536b7cbba0e81e561458e95aafb65ee485
removed the/* Master, propagated to newvers */
comment after__FreeBSD_version
insys/sys/param.h
in FreeBSD's main branch aka 14.0-CURRENT.synth now believes I'm running FreeBSD 1.0. I temporarily doctored my
/usr/include/sys/param.h
and that will hold up until the next time I upgrade my "LiveSystem".The same commit says this is proper way to extract
__FreeBSD_version
:awk '/^\#define[[:space:]]*__FreeBSD_version/ {print $3}'
I believe there's a small mistake in the regexp and it should be
^\#define[[:space:]]+__FreeBSD_version
.At any rate,
get_osversion_from_param_header
insrc/replicant-platform.adb
should be changed to cope with the missing comment.The text was updated successfully, but these errors were encountered: