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

Multiple fixes and cleanup for FreeBSD #584

Closed
wants to merge 6 commits into from

Conversation

rbgarga
Copy link

@rbgarga rbgarga commented Apr 11, 2022

On FreeBSD ports tree we have multiple patches [1] to get open-vm-tools working on all supported versions. The main idea of this PR is to upstream some of those patches.

While here I decided to also cleanup code that was added to support old FreeBSD versions. The older supported version is 12.3.

[1] https://github.com/freebsd/freebsd-ports/tree/main/emulators/open-vm-tools/files

rbgarga added 6 commits April 11, 2022 17:17
Oldest supported FreeBSD version is 12.3.  Remove code added to
implement support for older versions.  No functional changes.
On FreeBSD a SIGBUS is delivered when accessing port that is not accessible,
which is the case when running vmware-vmcheck on bare metal system.
Recently NDF_ONLY_PNBUF was removed from FreeBSD code.  NDFREE_PNBUF
should be used instead.
After FreeBSD OSVERSION 1400051, insmntque1() was changed and only have
2 parameters.  This commit fixes the build.
After FreeBSD OSVERSION 1400043, NDINIT() last parameter was removed.
@vmwclabot
Copy link
Member

@rbgarga, you must sign our contributor license agreement before your changes are merged. Click here to sign the agreement. If you are a VMware employee, read this for further instruction.

@vmwclabot
Copy link
Member

@rbgarga, VMware has approved your signed contributor license agreement.

@rbgarga
Copy link
Author

rbgarga commented Aug 24, 2022

@johnwvmw can you check this out when you have some time? It would be nice to reduce technical debt on FreeBSD ports

fkaty added a commit that referenced this pull request Jan 18, 2023
Changes to allow open-vm-tools and drivers to be compiled for newer
FreeBSD releases and clean-up/remove code for earlier FreeBSD
releases that are no longer supported by the FreeBSD Foundation.
- remove old FreeBSD version support.
- trap SIGBUS while VmCheckSafe().
- fix build on recent versions.
- fix build after 1400043
- fix build after 1400051.
- replace deprecated NO_MAN by MK_MAN=no.

Pull request: #584
@rbgarga
Copy link
Author

rbgarga commented Mar 10, 2023

@johnwvmw This one can be closed now

@rbgarga rbgarga closed this Mar 10, 2023
@johnwvmw
Copy link
Contributor

Thanks, Renato

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.

3 participants