-
Notifications
You must be signed in to change notification settings - Fork 59
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
Port to FreeBSD #86
Open
vrza
wants to merge
43
commits into
taviso:main
Choose a base branch
from
vrza:openbsd-1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Port to FreeBSD #86
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
09a6d81
Ignore local gzip build
vrza 65683f9
Shell script portability improvements
vrza 731619f
Portable detection of ncurses linker lib flags
vrza 8892e2a
More portable Makefile
vrza dbd71a8
$(RM) might not be set
vrza dc94021
Remove GNU-specific $(sort) and |
vrza 0db1e6f
Helper shell script to install keymaps
vrza 98e7eac
More Makefile compatibility
vrza d85e398
Use more portable strndup instad of strndupa
vrza 91a047f
Use malloc instead of GNU-specific alloca
vrza 3ce58b8
Remove non-portable sighandler_t
vrza 8a040b3
Better ncurses linker flags detection
vrza 296be70
Use malloc instead of alloca
vrza be48ef6
More portable install(1) invocation
vrza f5e373d
More portable install(1) invocation
vrza a075613
Fix missing include
vrza d8914be
Consistent install invocation
vrza 8683a84
Include malloc through stdlib.h
vrza 2ade82f
Build GNU as with binutils
vrza da75cce
Drop non-portable nproc
vrza e62f142
Add locally built as to gitignore
vrza 5d88b62
Port to FreeBSD
vrza 98c3ace
Find GNU make in PATH
vrza 0777099
Remove commented out code
vrza 1404255
Fix install(1) invocation
vrza 0d1ee00
Merge branch 'main' into openbsd-1
vrza 1faceb1
Fix typo
vrza 3fcb192
Undefine init_showme on FreeBSD
vrza 2116cb3
Shell script to detect OS-specific symbol list file
vrza 76e1872
Use kebab case for script name
vrza 2c8f2d4
Fix build on NetBSD
vrza aac3764
Localize fwrite on Linux
vrza 8c8a21e
Symbol undefine list for OpenBSD
vrza 067bea0
Add environ to OpenBSD undefine list
vrza 522c490
Workaround for OpenBSD
vrza a44ff9c
Revert some malloc changes
vrza 6b9e561
Rebuild list undefine.openbsd
vrza 546186d
Quote command substitution
vrza 587d6bd
Merge updates from main
vrza 0e0e810
Merge branch 'main' into openbsd-1
vrza 5a0db70
Include alloca from stdlib.h for portability
vrza e644cf5
Don't use non-portable -v
vrza 9d413c8
Don't use non-portable -v
vrza File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ LDLIBS= | |
all: atfuncs.a | ||
|
||
atfuncs.a: date.o | ||
$(AR) r $@ $^ | ||
$(AR) r $@ date.o | ||
|
||
clean: | ||
rm -f *.a *.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
BASE="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)" | ||
PATH="${BASE}:$PATH" | ||
|
||
BFD_TARGET_ERROR="Your version of binutils was compiled without coff-i386 target support. | ||
You can try running ./binutils.sh to build a version that does support it." | ||
|
||
objdump --info | grep -q '^coff-i386$' || (echo "$BFD_TARGET_ERROR"; false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
gnu_make="$(command -v make 2>/dev/null)" | ||
if command -v gmake >/dev/null 2>&1; then | ||
gnu_make="$(command -v gmake)" | ||
fi | ||
if [ -z "$gnu_make" -o "$("$gnu_make" --version 2>/dev/null | head -n 1 | cut -c-3)" != "GNU" ]; then | ||
echo >&2 "Could not find GNU make in PATH" | ||
exit 1 | ||
fi |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems okay, but maybe we can just do undefine
undefine-$(shell uname).lst
? I dunno if that is portable though!There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK syntax-wise that should be portable between GNU and BSD make , but on systems for which you don't have an explicit list file, the build will error out with file not found. The shell script provides a default if it doesn't have explicit rules about the host system.