mirror of
https://github.com/quamotion/dotnet-packaging.git
synced 2026-02-15 21:35:27 +00:00
[PR #25] [MERGED] RPM: Properly order Signature tags #176
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/quamotion/dotnet-packaging/pull/25
Author: @qmfrederik
Created: 10/12/2017
Status: ✅ Merged
Merged: 10/12/2017
Merged by: @qmfrederik
Base:
master← Head:fixes/rhel📝 Commits (5)
1a2463bDon't fail if lzma_stream_encoder_mt is not available (like e.g. on Ubuntu)a5b20ebSpecify an order for the Signature tags85ddadeMake package creation more flexible:9f7063dSupport dumping RPM package headers to a text file5e505d3Add test which recreates a RPM lib from scratch, and aims to be 100% binary compatible.📊 Changes
13 files changed (+465 additions, -30 deletions)
View changed files
📝
Packaging.Targets.Tests/Packaging.Targets.Tests.csproj(+6 -0)➕
Packaging.Targets.Tests/Rpm/DummySigner.cs(+38 -0)📝
Packaging.Targets.Tests/Rpm/RpmPackageCreatorTests.cs(+90 -1)➕
Packaging.Targets.Tests/Rpm/RpmSigTag_Pgp.bin(+0 -0)➕
Packaging.Targets.Tests/Rpm/RpmSigTag_Rsa.bin(+0 -0)📝
Packaging.Targets/IO/NativeMethods.cs(+20 -2)📝
Packaging.Targets/IO/XZOutputStream.cs(+1 -1)📝
Packaging.Targets/Native/FunctionLoader.cs(+11 -3)📝
Packaging.Targets/Rpm/DefaultOrder.cs(+7 -0)➕
Packaging.Targets/Rpm/IPackageSigner.cs(+13 -0)➕
Packaging.Targets/Rpm/PackageSigner.cs(+30 -0)➕
Packaging.Targets/Rpm/RpmDumper.cs(+86 -0)📝
Packaging.Targets/Rpm/RpmPackageCreator.cs(+163 -23)📄 Description
This fixes an issue where the order of the tags in the Signature section was not what was expected by RPM. This would cause validation of the RPM packages to fail on RPM version 4.13.0.1 and higher.
This PR also adds unit tests which re-create the libplist package from scratch and ensure it is 100% binary compatible with the original package. To enable this, some updates were required:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.