Skip to content

Add package fsverity-utils#5732

Merged
joejoew merged 5 commits into
microsoft:mainfrom
joejoew:fsverity-utils
Jun 25, 2023
Merged

Add package fsverity-utils#5732
joejoew merged 5 commits into
microsoft:mainfrom
joejoew:fsverity-utils

Conversation

@joejoew

@joejoew joejoew commented Jun 22, 2023

Copy link
Copy Markdown
Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

  • The toolchain has been rebuilt successfully (or no changes were made to it)
  • The toolchain/worker package manifests are up-to-date
  • Any updated packages successfully build (or no packages were changed)
  • Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
  • Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
  • All package sources are available
  • cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
  • LICENSE-MAP files are up-to-date (./SPECS/LICENSES-AND-NOTICES/data/licenses.json, ./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md, ./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON)
  • All source files have up-to-date hashes in the *.signatures.json files
  • sudo make go-tidy-all and sudo make go-test-coverage pass
  • Documentation has been updated to match any changes to the build system
  • Ready to merge

Summary

What does the PR accomplish, why was it needed?
Required package to work in overlake project

Change Log
  • SPEC imported from Fedora
  • Run Linter
  • License Verified
Does this affect the toolchain?

YES/NO
No

Associated issues
Test Methodology
  • Local build

@joejoew joejoew requested a review from a team as a code owner June 22, 2023 20:02
@microsoft-github-policy-service microsoft-github-policy-service Bot added the main PR Destined for main label Jun 22, 2023
Comment thread SPECS/fsverity-utils/fsverity-utils.spec Outdated
Comment thread SPECS/fsverity-utils/fsverity-utils.spec Outdated
Comment thread SPECS/fsverity-utils/fsverity-utils.spec Outdated
Comment thread SPECS/fsverity-utils/fsverity-utils.spec Outdated
Comment thread SPECS/fsverity-utils/fsverity-utils.spec Outdated
Comment thread SPECS/fsverity-utils/fsverity-utils.spec Outdated
Comment thread SPECS/fsverity-utils/fsverity-utils.spec

%changelog
* Thu Apr 20 2023 Elaheh Dehghani <edehghani@microsoft.com> - 1.4-8
- Initial overlake-packages import from Fedora 36 (license: MIT).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why not use the latest version of Fedora?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

sorry, don't know the reason...but looks there are no change between Fedora 36 and latest (https://src.fedoraproject.org/rpms/fsverity-utils/blob/f38/f/fsverity-utils.spec)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

should I update the import from Fedora 36 to 38?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It's fine to keep it as Fedora 36, in that case.

@joejoew joejoew requested review from PawelWMS and oliviacrain June 23, 2023 20:43

@oliviacrain oliviacrain left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks great- approved with a small suggestion

Buddy build results: Package builds, all tests pass for both architectures

%make_build CFLAGS="$CFLAGS -g" USE_SHARED_LIB=1

%install
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir} CFLAGS="$CFLAGS -g" USE_SHARED_LIB=1

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nit: -g is already part of our default set of compiler flags.

Suggested change
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir} CFLAGS="$CFLAGS -g" USE_SHARED_LIB=1
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir} USE_SHARED_LIB=1

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done

%autosetup -p1

%build
%make_build CFLAGS="$CFLAGS -g" USE_SHARED_LIB=1

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nit: -g is already part of our default set of compiler flags.

Suggested change
%make_build CFLAGS="$CFLAGS -g" USE_SHARED_LIB=1
%make_build USE_SHARED_LIB=1

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done

@joejoew joejoew merged commit 9225690 into microsoft:main Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

main PR Destined for main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants