[Rpm-maint] [rpm-software-management/rpm] Use of sha256 as digest algorithm (Discussion #2037)
Yash-Khatri
notifications at github.com
Tue Apr 26 14:16:26 UTC 2022
Hi,
I am trying to use sha256 algo for digest for my RPM packages. currently, it is building with default sha1 and md5 digests.
Here is what I tried so far
- Upgraded the RPM to version 4.14.3. which supports the sha256 as default algo for digests.
- Override macros for the digest algorithm by adding the below lines in **$HOME/.rpmmacros file or /etc/rpm/macros** file [reference](https://www.starlab.io/blog/adding-sha256-digests-to-rpms)
```
%_source_filedigest_algorithm 8
%_binary_filedigest_algorithm 8
```
- Add the above macros in pkg.spec file as below which is being passed to rpmbuild command
```
%define _source_filedigest_algorithm 8
%define _binary_filedigest_algorithm 8
```
but none of the above solutions worked for me and after rebuilding I still see my package is building with sha1 and md5 as digest algo.
Any help is appreciated.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/2037
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/repo-discussions/2037 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220426/36c1e5b8/attachment.html>
More information about the Rpm-maint
mailing list