Skip to content

[Ref] AmigaOS 4.x support #49

Draft
MBeijer wants to merge 422 commits into
AmigaPorts:masterfrom
capehill:master
Draft

[Ref] AmigaOS 4.x support #49
MBeijer wants to merge 422 commits into
AmigaPorts:masterfrom
capehill:master

Conversation

@MBeijer

@MBeijer MBeijer commented Aug 17, 2022

Copy link
Copy Markdown
Member

No description provided.

@MBeijer MBeijer changed the title AmigaOS 4.x support [Ref] AmigaOS 4.x support Aug 17, 2022
@MBeijer MBeijer marked this pull request as draft August 17, 2022 23:40
@MBeijer MBeijer force-pushed the master branch 7 times, most recently from 3838b05 to 179f290 Compare August 19, 2022 11:12
coderofsalvation and others added 30 commits March 6, 2025 20:42
Fixes segfault when no output file is specified.
To help with reproducible builds[1] the `string(TIMESTAMP)` CMake
function respects `$SOURCE_DATE_EPOCH` if set and uses that instead of
the current time. However, the output is still sensitive to the local
timezone which is enough to make the build un-reproducible.

Fix this by using UTC when getting the timestamp.

[1] https://reproducible-builds.org/
I tried to do an experiment and I compiled Milkytracker for CYGWIN, just to see how the code was building on POSIX.
Unfortunately, the build process hangs with several errors like this one:

MilkyTracker/src/compression/../ppui/osinterface/posix/PPSystemString_POSIX.h: In member function ‘pp_int32 PPSystemString::compareToNoCase(const PPSystemString&) const’:
MilkyTracker/src/compression/../ppui/osinterface/posix/PPSystemString_POSIX.h:147:24: error: ‘strcasecmp’ was not declared in this scope; did you mean ‘strncmp’?
  147 |                 return strcasecmp(strBuffer, str.strBuffer);
      |                        ^~~~~~~~~~
      |                        strncmp

After a quick check, I discovered that the error is correct.
If you open BasicTypes.h and you look here:

https://github.com/milkytracker/MilkyTracker/blob/60ce53e85fc23c37a15c09911125e134eaa27697/src/ppui/BasicTypes.h#L46

you will see that there are two calls to string.h.
Actually, strcasecmp() is not declared inside string.h but into strings.h (note the final 's' at the end of the file name).
Probably, the intention was to add strings.h but it has been forgotten during the copy-paste process.

Attached patch fixes the tiny error.
Signed-off-by: Kowalski Dragon (kowalski7cc) <kowalski7cc@users.noreply.github.com>
POSIX: fix build error of undeclared strcasecmp()
Build: SET CMP0004 OLD only if CMake < 4.0
…terror

Check hasArgumentError in milkycli
macOS: fixes for MIDI keyboard crashes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.