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 NetBSD Support #258

Closed
wants to merge 4 commits into from
Closed

Add NetBSD Support #258

wants to merge 4 commits into from

Conversation

amoibos
Copy link

@amoibos amoibos commented Sep 2, 2016

Signed-Off-By: Daniel Ölschlegel amoibos@gmail.com

@karlp
Copy link
Contributor

karlp commented Sep 2, 2016

in general, (I'm not a developer or committer here) your commit messages should have somethign useful in them, like, "Support building on NetBSD" rather than the incredibly vague "update file X" "Update file x" is immediately obvious from the diffstat, what's more interesting in the commit comment is the why and how the changes made were done.

@@ -115,7 +115,7 @@ LIB_LDFLAGS:=${LDFLAGS}
BROKER_CFLAGS:=${LIB_CFLAGS} ${CPPFLAGS} -DVERSION="\"${VERSION}\"" -DTIMESTAMP="\"${TIMESTAMP}\"" -DWITH_BROKER
CLIENT_CFLAGS:=${CFLAGS} ${CPPFLAGS} -I../lib -DVERSION="\"${VERSION}\""

ifneq ($(or $(findstring $(UNAME),FreeBSD), $(findstring $(UNAME),OpenBSD)),)
ifneq ($(or $(findstring $(UNAME),FreeBSD), $(findstring $(UNAME),OpenBSD), $(findstring $(UNAME),NetBSD)),)
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps it's time to just make this look for "BSD" ? dragonfly, miros, trusted, pc, et al?

Copy link
Author

Choose a reason for hiding this comment

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

My intention was to add the support for my OS and reduce the size of the patchset on Pkgsrc,, not to refactoring foreign code. For Dragonfly, NetBSD, OpenBSD, FreeBSD and many derivates this could work. But not for Bitrig.

ralight added a commit that referenced this pull request Aug 9, 2018
Closes #258.

Thanks to Daniel Ölschlegel.
@ralight
Copy link
Contributor

ralight commented Aug 9, 2018

Thanks for these fixes. I've just pushed a slightly different version of the changes based on some of Karl's suggestions, so I'm going to close this.

You can avoid the install long options using make WITH_STRIP=yes STRIP_OPTS=-s. The default now is to not strip anyway.

@ralight ralight closed this Aug 9, 2018
@gdt
Copy link

gdt commented Sep 4, 2018

Thanks for integrating this. I just updated pkgsrc-wip/mosquitto to 1.5.1, and was able to drop a lot of patches. Also you can close #252 as a dup of this.

@gdt gdt mentioned this pull request Sep 4, 2018
ralight added a commit that referenced this pull request Nov 8, 2018
Closes #258.

Thanks to Daniel Ölschlegel.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants