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

Hide internal headers #13

Closed
wants to merge 1 commit into from

Conversation

kubanrob
Copy link
Contributor

This patch applies on top of #9, and includes two changes:

  • Before, musl has exposed internal headers to other code, now the include paths are added to the appropriate variable.
  • The rule to generate src/internal/version.h previously had a typo, leading to multiple definitions of VERSION.

@razvand razvand added the enhancement New feature or request label Aug 20, 2022
@kubanrob
Copy link
Contributor Author

kubanrob commented Aug 22, 2022

How to reproduce: Compile any app using lib-musl. Include #include "version.h", this will include musl-1.1.19/src/internal/version.h and warn that VERSION is defined multiple times.

Using after merging the PR, the preprocessor will not find musl-1.1.19/src/internal/version.h anymore (and that file will only contain one definition of VERSION).

@kubanrob
Copy link
Contributor Author

Update: Rebased onto latest state of thread_support (PR #9)

michpappas pushed a commit to OpenSynergy/lib-musl that referenced this pull request Aug 26, 2022
PR: unikraft#13
repository: https://github.com/kubanrob/lib-musl
branch: hide-internal-headers
fetched: Do 25. Aug 21:03:20 CEST 2022
@razvand razvand assigned razvand and unassigned skuenzer Nov 2, 2022
@razvand razvand removed the request for review from dragosargint November 2, 2022 06:19
Copy link
Member

@mogasergiu mogasergiu left a comment

Choose a reason for hiding this comment

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

For the commit message:
s/approbate/appropriate

Otherwise, all looks good to me.

@kubanrob
Copy link
Contributor Author

Update: Fixed typo (thanks @mogasergiu) and rebased on top of the current thread_support branch.

Copy link
Member

@mogasergiu mogasergiu left a comment

Choose a reason for hiding this comment

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

Reviewed-by: Sergiu Moga sergiu.moga@protonmail.com

@razvand
Copy link
Contributor

razvand commented Nov 15, 2022

Thanks, @kubanrob . This works. I need to see whether I can approve it, or we should first integrated PR #9 and then you do a rebase.

Before, musl has exposed internal headers to other code,
now the include paths are added to the appropriate variable.

Signed-off-by: Robert Kuban <robert.kuban@opensynergy.com>
@kubanrob
Copy link
Contributor Author

Update: rebased onto staging

Copy link
Contributor

@razvand razvand left a comment

Choose a reason for hiding this comment

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

Thanks, @kubanrob

Reviewed-by: Razvan Deaconescu razvand@unikraft.io
Approved-by: Razvan Deaconescu razvand@unikraft.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/merged enhancement New feature or request
Projects
Status: Done
Status: Done!
Development

Successfully merging this pull request may close these issues.

None yet

5 participants