Skip to content
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

Add support for builds on HPE NonStop. #96

Closed
wants to merge 1 commit into from

Conversation

rsbeckerca
Copy link

This change includes modifying Makefile so that CFLAGS can be overridden by an invoking Makefile or shell. It also modifies sandbox.h to support an older form of mktemp/mkdir supported on the NonStop platform.

Fixes: #95

This change includes modifying Makefile so that CFLAGS can be
overridden by an invoking Makefile or shell. It also modifies sandbox.h
to support an older form of mktemp/mkdir supported on the NonStop
platform.

Fixes: clar-test#95

Signed-off-by: Randall S. Becker <[email protected]>
@@ -16,7 +16,7 @@ TEST_DIRECTORY := $(abspath $(dir $(CURRENT_MAKEFILE)))
CLAR_PATH := $(dir $(TEST_DIRECTORY))
CLAR_FIXTURE_PATH := $(TEST_DIRECTORY)/resources/

CFLAGS=-g -I.. -I. -Wall -DCLAR_FIXTURE_PATH=\"$(CLAR_FIXTURE_PATH)\"
CFLAGS?=-g -I.. -I. -Wall -DCLAR_FIXTURE_PATH=\"$(CLAR_FIXTURE_PATH)\"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rsbeckerca Changing CFLAGS like this is somewhat orthogonal to the enablement of NonStop architectures. I also think that we need to be a bit more thorough here and not only make the CFLAGS overridable, but also split it up into CFLAGS and CPPFLAGS. The latter would then hold the -DCLAR_FIXTURE_PATH define such that overriding CFLAGS won't cause us to drop that necessary define.

Overall, I think we should move this change into a separate PR such that the enablement of NonStop in clar/sandbox.h can be merged faster.

gitster pushed a commit to gitster/git that referenced this pull request Aug 6, 2024
The NonStop platform does not have `mkdtemp()` available, which we rely
on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and
`mkdir()` instead on this platform.

This has been cherry-picked from the upstream pull request at [1].

[1]: clar-test/clar#96

Signed-off-by: Patrick Steinhardt <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
gitster pushed a commit to gitster/git that referenced this pull request Aug 8, 2024
The NonStop platform does not have `mkdtemp()` available, which we rely
on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and
`mkdir()` instead on this platform.

This has been cherry-picked from the upstream pull request at [1].

[1]: clar-test/clar#96

Signed-off-by: Patrick Steinhardt <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
gitster pushed a commit to git/git that referenced this pull request Aug 13, 2024
The NonStop platform does not have `mkdtemp()` available, which we rely
on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and
`mkdir()` instead on this platform.

This has been cherry-picked from the upstream pull request at [1].

[1]: clar-test/clar#96

Signed-off-by: Patrick Steinhardt <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
gitster pushed a commit to gitster/git that referenced this pull request Aug 15, 2024
The NonStop platform does not have `mkdtemp()` available, which we rely
on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and
`mkdir()` instead on this platform.

This has been cherry-picked from the upstream pull request at [1].

[1]: clar-test/clar#96

Signed-off-by: Patrick Steinhardt <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
gitster pushed a commit to git/git that referenced this pull request Aug 16, 2024
The NonStop platform does not have `mkdtemp()` available, which we rely
on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and
`mkdir()` instead on this platform.

This has been cherry-picked from the upstream pull request at [1].

[1]: clar-test/clar#96

Signed-off-by: Patrick Steinhardt <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
dscho pushed a commit to dscho/git that referenced this pull request Aug 16, 2024
The NonStop platform does not have `mkdtemp()` available, which we rely
on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and
`mkdir()` instead on this platform.

This has been cherry-picked from the upstream pull request at [1].

[1]: clar-test/clar#96

Signed-off-by: Patrick Steinhardt <[email protected]>
pks-t added a commit to pks-t/git that referenced this pull request Aug 20, 2024
The NonStop platform does not have `mkdtemp()` available, which we rely
on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and
`mkdir()` instead on this platform.

This has been cherry-picked from the upstream pull request at [1].

[1]: clar-test/clar#96

Signed-off-by: Patrick Steinhardt <[email protected]>
pks-t added a commit to pks-t/git that referenced this pull request Aug 20, 2024
The NonStop platform does not have `mkdtemp()` available, which we rely
on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and
`mkdir()` instead on this platform.

This has been cherry-picked from the upstream pull request at [1].

[1]: clar-test/clar#96

Signed-off-by: Patrick Steinhardt <[email protected]>
pks-t added a commit to pks-t/git that referenced this pull request Aug 20, 2024
The NonStop platform does not have `mkdtemp()` available, which we rely
on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and
`mkdir()` instead on this platform.

This has been cherry-picked from the upstream pull request at [1].

[1]: clar-test/clar#96

Signed-off-by: Patrick Steinhardt <[email protected]>
pks-t added a commit to pks-t/git that referenced this pull request Aug 20, 2024
The NonStop platform does not have `mkdtemp()` available, which we rely
on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and
`mkdir()` instead on this platform.

This has been cherry-picked from the upstream pull request at [1].

[1]: clar-test/clar#96

Signed-off-by: Patrick Steinhardt <[email protected]>
pks-t added a commit to pks-t/git that referenced this pull request Aug 20, 2024
The NonStop platform does not have `mkdtemp()` available, which we rely
on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and
`mkdir()` instead on this platform.

This has been cherry-picked from the upstream pull request at [1].

[1]: clar-test/clar#96

Signed-off-by: Patrick Steinhardt <[email protected]>
pks-t added a commit to pks-t/git that referenced this pull request Aug 20, 2024
The NonStop platform does not have `mkdtemp()` available, which we rely
on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and
`mkdir()` instead on this platform.

This has been cherry-picked from the upstream pull request at [1].

[1]: clar-test/clar#96

Signed-off-by: Patrick Steinhardt <[email protected]>
pks-t added a commit to pks-t/git that referenced this pull request Aug 20, 2024
The NonStop platform does not have `mkdtemp()` available, which we rely
on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and
`mkdir()` instead on this platform.

This has been cherry-picked from the upstream pull request at [1].

[1]: clar-test/clar#96

Signed-off-by: Patrick Steinhardt <[email protected]>
pks-t added a commit to pks-t/git that referenced this pull request Aug 20, 2024
The NonStop platform does not have `mkdtemp()` available, which we rely
on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and
`mkdir()` instead on this platform.

This has been cherry-picked from the upstream pull request at [1].

[1]: clar-test/clar#96

Signed-off-by: Patrick Steinhardt <[email protected]>
pks-t added a commit to pks-t/git that referenced this pull request Aug 20, 2024
The NonStop platform does not have `mkdtemp()` available, which we rely
on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and
`mkdir()` instead on this platform.

This has been cherry-picked from the upstream pull request at [1].

[1]: clar-test/clar#96

Signed-off-by: Patrick Steinhardt <[email protected]>
pks-t added a commit to pks-t/git that referenced this pull request Aug 20, 2024
The NonStop platform does not have `mkdtemp()` available, which we rely
on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and
`mkdir()` instead on this platform.

This has been cherry-picked from the upstream pull request at [1].

[1]: clar-test/clar#96

Signed-off-by: Patrick Steinhardt <[email protected]>
gitster pushed a commit to git/git that referenced this pull request Aug 20, 2024
The NonStop platform does not have `mkdtemp()` available, which we rely
on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and
`mkdir()` instead on this platform.

This has been cherry-picked from the upstream pull request at [1].

[1]: clar-test/clar#96

Signed-off-by: Patrick Steinhardt <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
pks-t added a commit to pks-t/git that referenced this pull request Sep 3, 2024
The NonStop platform does not have `mkdtemp()` available, which we rely
on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and
`mkdir()` instead on this platform.

This has been cherry-picked from the upstream pull request at [1].

[1]: clar-test/clar#96

Signed-off-by: Patrick Steinhardt <[email protected]>
gitster pushed a commit to git/git that referenced this pull request Sep 3, 2024
The NonStop platform does not have `mkdtemp()` available, which we rely
on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and
`mkdir()` instead on this platform.

This has been cherry-picked from the upstream pull request at [1].

[1]: clar-test/clar#96

Signed-off-by: Patrick Steinhardt <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
gitster pushed a commit to git/git that referenced this pull request Sep 4, 2024
The NonStop platform does not have `mkdtemp()` available, which we rely
on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and
`mkdir()` instead on this platform.

This has been cherry-picked from the upstream pull request at [1].

[1]: clar-test/clar#96

Signed-off-by: Patrick Steinhardt <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
@pks-t
Copy link
Member

pks-t commented Sep 19, 2024

The HPE NonStop changes have been cherry-picked and we have replaced Makefiles with CMake. So this can be closed now.

@pks-t pks-t closed this Sep 19, 2024
@rsbeckerca
Copy link
Author

Just as a note, CMake is not available on HPE NonStop.

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.

Request for slightly more portability - specifically c99 or c11 support
2 participants