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

[RFC] glibc-sourcery: Add hash to glibc PKGVERSION #231

Open
wants to merge 1 commit into
base: cos10-adit
Choose a base branch
from

Conversation

mdurnev
Copy link
Contributor

@mdurnev mdurnev commented Jul 28, 2021

CUSTOMER ISSUE ID: TBD
MGC ISSUE ID: ADIT-75
SUMMARY: glibc: Add versioning
DESCRIPTION: glibc: Add versioning

RESOLUTION:
We can calculate a hash value for the glibc sources and use it as
an argument for --with-pkgversion to sign our builds. That will allow us
to identify glibc binaries via the output of 'ldd --version'.

DEPENDENCIES: None
LICENSE: MIT
TEST SUMMARY: Build in two different workspaces and compare hashes. Hashes must depend only on the glibc sources.
KNOWN LIMITATIONS: None
SOURCES: None

glibc includes some binaries such as ldd, that support a --version flag.
glibc can be configured with --with-pkgversion=<something> to display
some additional information for the --version flag.

We can calculate a hash value for the glibc sources and use it as
an argument for --with-pkgversion to sign our builds. That will allow us
to identify glibc binaries via the output of 'ldd --version'.

Signed-off-by: Mikhail Durnev <mikhail_durnev@mentor.com>
@kergoth
Copy link
Member

kergoth commented May 21, 2022

This is an interesting approach, but bitbake already does checksumming of task input, including SRC_URI sources, so I wonder if we couldn't use that existing knowledge, which would capture both input sources and metadata.

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.

None yet

2 participants