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

[RFE] should we keep a static version of inih library in tree? #430

Closed
dougsland opened this issue Aug 2, 2023 · 4 comments
Closed

[RFE] should we keep a static version of inih library in tree? #430

dougsland opened this issue Aug 2, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@dougsland
Copy link
Contributor

dougsland commented Aug 2, 2023

Describe the bug

In the early days of the project it was added inih library (https://github.com/benhoyt/inih) in the source code. Should we keep this approach? I noticed inih released a new version last month. Can we use such library in a linking approach to we can keep getting recent bits?

commit caec5cedb26b7cec0850346f5bf581757ac5bdb6
Author: Veronika Fuxova <[email protected]>
Date:   Thu Dec 1 13:56:39 2022 +0100

    Add inih lib to src tree

    Adding the whole lib now. The plan is to identify what we don't need and
    progressively get rid of it as we continue to refine our use case.
@dougsland dougsland added the bug Something isn't working label Aug 2, 2023
@dougsland
Copy link
Contributor Author

/cc @rhatdan @engelmi @mwperina

@mwperina
Copy link
Member

mwperina commented Aug 3, 2023

So used the approach of copying the library because of simplicity 😉

But looking at the project, it's still quite active and, what's more important, it's packaged in Fedora, it was even included in EPEL 7/8 and older version is included in AutoSD.

So if we would want to use the package instead of inlining it, we would need to:

  1. Check if the compiled version aligns with our needs (many things in the project is configurable during the build only)
  2. Add it to EPEL 9
  3. Update the version in AutoSD
  4. Remove inline code and adapt build process to use the library from a package instead

@rhatdan
Copy link
Contributor

rhatdan commented Aug 3, 2023

I would prefer to use the active upstream project rather then inline it, just so we can get the benefit of any security fixes found upstream. Should we get the library into RHEL though especially if we end up shipping hirte in RHEL?

@dougsland
Copy link
Contributor Author

@engelmi solved that one via #432

@dougsland dougsland assigned dougsland and engelmi and unassigned dougsland Aug 11, 2023
@dougsland dougsland changed the title [question] should we keep a static version of inih library in tree? [RFE] should we keep a static version of inih library in tree? Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants