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

Support GNU/kFreeBSD #113

Closed
wants to merge 4 commits into from
Closed

Conversation

rockclimb
Copy link

This pull request is for changes to enable building of JNA on GNU/kFreeBSD:

It is used in the Debian build of JNA, and I would appreciate it if you would consider merging it into the source.

Andy

@rockclimb rockclimb mentioned this pull request Aug 31, 2012
@@ -172,6 +172,9 @@
<condition property="os.prefix" value="freebsd-${os.arch}">
<os name="FreeBSD"/>
</condition>
<condition property="os.prefix" value="linux-${jre.arch}">
<os name="GNU/kFreeBSD"/>
</condition>
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this target binary-compatible with the other targets that generate linux-XXX binaries? It's not strictly an issue with this patch, since this patch enables builds but does not bundle the resulting binaries, but it could lead to some confusion.

Copy link
Author

Choose a reason for hiding this comment

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

This one is copied from how Debian has been building for GNU/kFreeBSD for the last year or so. I'm not really sure what the implications are of using a different string here - can we just change it to kfreebsd (both here and in native/Makefile)?

Copy link
Author

Choose a reason for hiding this comment

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

Actually I had more of a look. I think I'd need to add the right compilation flags in native/Makefile too, but should be able to mostly copy the linux ones. I'll have a go with that tomorrow.

@rockclimb
Copy link
Author

I've had more of a play once I got my kfreebsd VM working. I think you're right that it's best to have a separate target name, so I've added kfreebsd in (hopefully all of) the relevent places. My latest changes are now in this branch.
Thanks,
Andy

@twall
Copy link
Contributor

twall commented Oct 5, 2012

@rockclimb Please update this PR. You don't have to embed the resulting shared library into jna.jar (if you do, make sure you provide lib/native/xxx/libjnidispatch.so). Also please include whatever additional targets you need to support debian builds.

@rockclimb
Copy link
Author

OK, I've updated the branch, and left it so it won't embed the shared library (unless you're building on kfreebsd, when it does anyway because the .so is in the build tree). I also added a target "nonativejar" which builds the jar file without including any native libraries (these get deployed separately in Debian/Ubuntu). Feel free to suggest a better name for this task!

Thanks,
Andy

@twall twall closed this in d51479c Oct 6, 2012
@twall
Copy link
Contributor

twall commented Oct 6, 2012

yeah, I've been thinking there needs to be a jna-min.jar target of some sort...

On Oct 5, 2012, at 5:35 PM, rockclimb wrote:

OK, I've updated the branch, and left it so it won't embed the shared library (unless you're building on kfreebsd, when it does anyway because the .so is in the build tree). I also added a target "nonativejar" which builds the jar file without including any native libraries (these get deployed separately in Debian/Ubuntu). Feel free to suggest a better name for this task!

Thanks,
Andy


Reply to this email directly or view it on GitHub.

mstyura pushed a commit to mstyura/jna that referenced this pull request Sep 9, 2024
Motivation:

We should use the same docker / docker-compose file for the CI as we do when we build locally. This helps to keep things consistent and easy to reproduce

Modifications:

- Add new workflow that uses docker / docker-compose
- Adjust dockerfile to pre-download all dependencies
- Adjust dockerfile to pre-build quiche
- Add new docker-compose task that can be used to run the build against the pre-build quiche and so save time

Result:

Better CI setup
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.

2 participants