NCI-Agency / anet

Advisor Network
MIT License
24 stars 11 forks source link

jpackage RPM Zstd compression incompatibility #3295

Closed midmarch closed 3 years ago

midmarch commented 4 years ago

Describe the bug RPM package introduced in #3279 is not installing on RedHat Enterprise 7.6. There are likely more distributions effected, which dropped support for Zstd compression in rpmlib.

To Reproduce Steps to reproduce the behavior:

  1. Build the RPM using gradle distRpm
  2. Install the RPM: sudo yum localinstall anet-2.1.33.133.g529c3de10-1.x86_64.rpm

Expected behavior It installs on RedHat 7.x

Screenshots

[root@test-ansible-redhat76-01 anet]# yum localinstall anet-2.1.33.133.g529c3de10-1.x86_64.rpm 
Loaded plugins: langpacks, product-id, search-disabled-repos
Examining anet-2.1.33.133.g529c3de10-1.x86_64.rpm: anet-2.1.33.133.g529c3de10-1.x86_64
Marking anet-2.1.33.133.g529c3de10-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package anet.x86_64 0:2.1.33.133.g529c3de10-1 will be installed
--> Processing Dependency: libX11 for package: anet-2.1.33.133.g529c3de10-1.x86_64
--> Processing Dependency: libXau for package: anet-2.1.33.133.g529c3de10-1.x86_64
--> Processing Dependency: libXext for package: anet-2.1.33.133.g529c3de10-1.x86_64
--> Processing Dependency: libXi for package: anet-2.1.33.133.g529c3de10-1.x86_64
--> Processing Dependency: libXrender for package: anet-2.1.33.133.g529c3de10-1.x86_64
--> Processing Dependency: libXtst for package: anet-2.1.33.133.g529c3de10-1.x86_64
--> Processing Dependency: libxcb for package: anet-2.1.33.133.g529c3de10-1.x86_64
--> Running transaction check
---> Package libX11.x86_64 0:1.6.5-2.el7 will be installed
--> Processing Dependency: libX11-common >= 1.6.5-2.el7 for package: libX11-1.6.5-2.el7.x86_64
---> Package libXau.x86_64 0:1.0.8-2.1.el7 will be installed
---> Package libXext.x86_64 0:1.3.3-3.el7 will be installed
---> Package libXi.x86_64 0:1.7.9-1.el7 will be installed
---> Package libXrender.x86_64 0:0.9.10-1.el7 will be installed
---> Package libXtst.x86_64 0:1.2.3-1.el7 will be installed
---> Package libxcb.x86_64 0:1.13-1.el7 will be installed
--> Running transaction check
---> Package libX11-common.noarch 0:1.6.5-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================================================
 Package                            Arch                        Version                                        Repository                                                 Size
===============================================================================================================================================================================
Installing:
 anet                               x86_64                      2.1.33.133.g529c3de10-1                        /anet-2.1.33.133.g529c3de10-1.x86_64                      114 M
Installing for dependencies:
 libX11                             x86_64                      1.6.5-2.el7                                    rhui-rhel-7-server-rhui-eus-rpms                          606 k
 libX11-common                      noarch                      1.6.5-2.el7                                    rhui-rhel-7-server-rhui-eus-rpms                          164 k
 libXau                             x86_64                      1.0.8-2.1.el7                                  rhui-rhel-7-server-rhui-eus-rpms                           29 k
 libXext                            x86_64                      1.3.3-3.el7                                    rhui-rhel-7-server-rhui-eus-rpms                           39 k
 libXi                              x86_64                      1.7.9-1.el7                                    rhui-rhel-7-server-rhui-eus-rpms                           40 k
 libXrender                         x86_64                      0.9.10-1.el7                                   rhui-rhel-7-server-rhui-eus-rpms                           26 k
 libXtst                            x86_64                      1.2.3-1.el7                                    rhui-rhel-7-server-rhui-eus-rpms                           20 k
 libxcb                             x86_64                      1.13-1.el7                                     rhui-rhel-7-server-rhui-eus-rpms                          214 k

Transaction Summary
===============================================================================================================================================================================
Install  1 Package (+8 Dependent packages)

Total size: 116 M
Installed size: 118 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
ERROR You need to update rpm to handle:
rpmlib(PayloadIsZstd) <= 5.4.18-1 is needed by anet-2.1.33.133.g529c3de10-1.x86_64
RPM needs to be updated

Environment (please complete the following information):

midmarch commented 3 years ago

We no longer use the jpackage rpm in favor of the rpm generated by the Gradle Nebula plugin.