Git Product home page Git Product logo

openssl-rpm-builder's Introduction

OpenSSL rpm builder for CentOS 7 - build latest OpenSSL binary

GitHub last commit GitHub All Releases

OpenSSL 1.1.1 End of Life

Remove old versions

rpm -qa | grep openssl
rpm -e --justdb --nodeps <yourpackage>

OpenSSL 1.1.1w:

Build:

sudo yum -y groupinstall 'Development Tools'
git clone https://github.com/philyuchkoff/openssl-RPM-Builder
cd openssl-RPM-Builder
chmod +x install-openssl_1.1.1.sh 
sudo ./install-openssl_1.1.1.sh

Builded RPM will be in

/root/rpmbuild/RPMS/x86_64/

After install-openssl_1.1.1.sh will finish, you can install builded rpm:

sudo rpm -ivvh /root/rpmbuild/RPMS/x86_64/openssl-1.1.1w-1.el7.x86_64.rpm --nodeps

Check:

$openssl version
OpenSSL 1.1.1w  11 Sep 2023

or

$rpm -qa openssl
openssl-1.1.1w-1.el7.x86_64

OpenSSL 3.3.0:

Build:

sudo yum -y groupinstall 'Development Tools'
git clone https://github.com/philyuchkoff/openssl-RPM-Builder
cd openssl-RPM-Builder
chmod +x install-openssl_3.sh 
sudo ./install-openssl_3.sh

Builded RPM will be in

/root/rpmbuild/RPMS/x86_64/

After install-openssl_3.sh will finish, you can install builded rpm:

sudo rpm -ivvh /root/rpmbuild/RPMS/x86_64/openssl-3.3.0-1.el7.x86_64.rpm --nodeps

openssl-rpm-builder's People

Contributors

dmitry-j-mikhin avatar philyuchkoff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

openssl-rpm-builder's Issues

unable to run rpmbuild

on the rpmbuild step I get the following

Processing files: openssl-1.1.1k-1.el8.x86_64
Provides: libcrypto.so.1.1()(64bit) libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) libcrypto.so.1.1(OPENSSL_1_1_0a)(64bit) libcrypto.so.1.1(OPENSSL_1_1_0c)(64bit) libcrypto.so.1.1(OPENSSL_1_1_0d)(64bit) libcrypto.so.1.1(OPENSSL_1_1_0f)(64bit) libcrypto.so.1.1(OPENSSL_1_1_0g)(64bit) libcrypto.so.1.1(OPENSSL_1_1_0h)(64bit) libcrypto.so.1.1(OPENSSL_1_1_0i)(64bit) libcrypto.so.1.1(OPENSSL_1_1_0j)(64bit) libcrypto.so.1.1(OPENSSL_1_1_1)(64bit) libcrypto.so.1.1(OPENSSL_1_1_1b)(64bit) libcrypto.so.1.1(OPENSSL_1_1_1c)(64bit) libcrypto.so.1.1(OPENSSL_1_1_1d)(64bit) libcrypto.so.1.1(OPENSSL_1_1_1e)(64bit) libcrypto.so.1.1(OPENSSL_1_1_1h)(64bit) libssl.so.1.1()(64bit) libssl.so.1.1(OPENSSL_1_1_0)(64bit) libssl.so.1.1(OPENSSL_1_1_0d)(64bit) libssl.so.1.1(OPENSSL_1_1_1)(64bit) libssl.so.1.1(OPENSSL_1_1_1a)(64bit) openssl = 1.1.1k openssl = 1.1.1k-1.el8 openssl(x86-64) = 1.1.1k-1.el8
Requires(interp): /sbin/ldconfig /sbin/ldconfig
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Requires: /usr/bin/perl libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.16)(64bit) libc.so.6(GLIBC_2.17)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.25)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.2)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) libcrypto.so.1.1()(64bit) libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) libcrypto.so.1.1(OPENSSL_1_1_0d)(64bit) libcrypto.so.1.1(OPENSSL_1_1_0f)(64bit) libcrypto.so.1.1(OPENSSL_1_1_0i)(64bit) libcrypto.so.1.1(OPENSSL_1_1_1)(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libssl.so.1.1()(64bit) libssl.so.1.1(OPENSSL_1_1_0)(64bit) libssl.so.1.1(OPENSSL_1_1_1)(64bit) perl(File::Basename) perl(Getopt::Std) perl(IO::Handle) perl(WWW::Curl::Easy) perl(strict) perl(vars) perl(warnings) rtld(GNU_HASH)
Obsoletes: openssl <= 1.1.1k
Processing files: openssl-devel-1.1.1k-1.el8.x86_64
Provides: openssl-devel = 1.1.1k-1.el8 openssl-devel(x86-64) = 1.1.1k-1.el8
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Processing files: openssl-debugsource-1.1.1k-1.el8.x86_64
error: Empty %files file /root/rpmbuild/BUILD/openssl-1.1.1k/debugsourcefiles.list


RPM build errors:
    Empty %files file /root/rpmbuild/BUILD/openssl-1.1.1k/debugsourcefiles.list

build openssl rpm failed

build openssl rpm with openssl_3.spec.

Requires: /usr/bin/perl libc.so.6()(64bit) libc.so.6(GLIBC_2.12)(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.16)(64bit) libc.so.6(GLIBC_2.17)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.25)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) libcrypto.so.3()(64bit) libcrypto.so.3(OPENSSL_3.0.0)(64bit) libcrypto.so.3(OPENSSL_3.0.3)(64bit) libcrypto.so.3(OPENSSL_3.0.9)(64bit) libcrypto.so.3(OPENSSL_3.2.0)(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libpthread.so.0(GLIBC_2.3.2)(64bit) libssl.so.3()(64bit) libssl.so.3(OPENSSL_3.0.0)(64bit) libssl.so.3(OPENSSL_3.2.0)(64bit) perl(File::Basename) perl(Getopt::Std) perl(IO::Handle) perl(WWW::Curl::Easy) perl(strict) perl(vars) perl(warnings) rtld(GNU_HASH)
Obsoletes: openssl <= 3.2.1
Processing files: openssl-devel-3.2.1-1.el8.x86_64
Provides: openssl-devel = 3.2.1-1.el8 openssl-devel(x86-64) = 3.2.1-1.el8
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Processing files: openssl-debugsource-3.2.1-1.el8.x86_64
error: Empty %files file /root/rpmbuild/BUILD/openssl-3.2.1/debugsourcefiles.list

RPM build errors:
Empty %files file /root/rpmbuild/BUILD/openssl-3.2.1/debugsourcefiles.list

openssl-libs build?

Hi,

Can you guideline how to build openssl include openssl-libs?

Thanks,
Tuan Ngo

How to build openssl-libs in this .spec file

Due to some special reasons, I need to build openssl-libs on CentOS 7. Based on the files you provided, I successfully built openssl and openssl-devel. However, I still need openssl-libs. What should I do next?

OpenSSL Libs and Devel Packages

I just came across your openssl RPM builder would like to know if possible to include the libs and devel packages as well with it?

bug report

Ur original code :

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%files
%{openssldir}
%defattr(-,root,root)

%files devel
%{openssldir}/include/*
%defattr(-,root,root)

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

I modified as follows:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%files
%{openssldir}
%defattr(-,root,root)
/usr/bin/openssl
/usr/lib64/libcrypto.so.1.1
/usr/lib64/libssl.so.1.1

              %files devel
               %{openssldir}/include/*
               %defattr(-,root,root)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

openssl < 1:1.0.1-0.3.beta3 is obsoleted

building already, but when i install package failed dependencies with openssl-libs

rpm -ivh /root/rpmbuild/RPMS/x86_64/openssl-1.1.1g-1.el7.x86_64.rpm

error: Failed dependencies:
openssl < 1:1.0.1-0.3.beta3 is obsoleted by (installed) openssl-libs-1:1.0.2k-12.el7.x86_64

编译后的rpm,安装完后 yum update 无法运行,求解

[root@centos2207 ~]# yum update
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
正在解决依赖关系
--> 正在检查事务
---> 软件包 openssl.x86_64.0.3.0.8-1.el7 将被 升级
---> 软件包 openssl.x86_64.1.1.0.2k-25.el7_9 将被 更新
Removing openssl.x86_64 0:3.0.8-1.el7 - ud due to obsoletes from installed 1:openssl-libs-1.0.2k-25.el7_9.x86_64
--> 正在使用新的信息重新解决依赖关系
--> 正在检查事务
---> 软件包 openssl.x86_64.0.3.0.8-1.el7 将被 升级
--> 解决依赖关系完成
错误: Multilib version problems found. This often means that the root
cause is something else and multilib version checking is just
pointing out that there is a problem. Eg.:

    1. You have an upgrade for openssl which is missing some
       dependency that another package requires. Yum is trying to
       solve this by installing an older version of openssl of the
       different architecture. If you exclude the bad architecture
       yum will tell you what the root cause is (which package
       requires what). You can try redoing the upgrade with
       --exclude openssl.otherarch ... this should give you an error
       message showing the root cause of the problem.
  
    2. You have multiple architectures of openssl installed, but
       yum can only see an upgrade for one of those architectures.
       If you don't want/need both architectures anymore then you
       can remove the one with the missing update and everything
       will work.
  
    3. You have duplicate versions of openssl installed already.
       You can use "yum check" to get yum show these errors.
  
  ...you can also use --setopt=protected_multilib=false to remove
  this checking, however this is almost never the correct thing to
  do as something else is very likely to go wrong (often causing
  much more problems).
  
  保护多库版本:1:openssl-1.0.2k-25.el7_9.x86_64 != openssl-3.0.8-1.el7.x86_64

源码编译 openssl 则正常

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.