rpmbuild

How to install two different versions of same rpm and make them work parallely

孤人 提交于 2019-12-13 19:00:40
问题 Currently I am trying to install a rpm secured_soft_2.0.0.rpm and i am unable to install it as we already have secured_soft_1.3.0 installed. Requirement is that we need to have both the versions installed. Complexities : These package inturn have dependent rpm's (lot of them ) and all these interdependent rpm's also have versions ex: secured_soft_1.3.0 works only with packages which are of version 1.3, and secured_soft_2.0.0.rpm work only with dependecies of version 2.0 only. So all these

“Missing” lib for rpm install when it is present in rpm file

与世无争的帅哥 提交于 2019-12-13 13:02:45
问题 I'm generating an rpm file for centos but when I try to install it on a clean machine it fails with: --> Running transaction check ---> Package grass.x86_64 0:6.4.4-1.el6 will be installed --> Processing Dependency: libgrass_rli.so()(64bit) for package: grass-6.4.4-1.el6.x86_64 --> Finished Dependency Resolution Error: Package: grass-6.4.4-1.el6.x86_64 (/grass-6.4.4-1.el6.x86_64) Requires: libgrass_rli.so()(64bit) which would be fine except that the rpm contains libgrass_rli.so. [vagrant

Adding Qt Dependencies to spec file in rpmbuild

早过忘川 提交于 2019-12-13 10:21:28
问题 I'm using Ubuntu 14.04 and I am updating the rpmbuild spec file of an application that now uses Qt. The packages that I need are the following: sudo apt-get build-essential sudo apt-get install mesa-common-dev -y sudo apt-get install libglu1-mesa-dev -y sudo apt-get qt5-default sudo apt-get qtwebengine5-dev I know the spec file has "BuildRequires" and "Requires" dependency tags...any help in writing this as well as some examples would be helpful. I have a working spec file I just need to add

Python distutils - Change Path RPM Installs To

南楼画角 提交于 2019-12-13 04:59:20
问题 I have Python 2.7.5 and am using distutils ( python setup.py bdist_rpm ) to create the following RPM... me@hostname:/tmp/dist$ rpm -qpil myApp-2.0.146-1.noarch.rpm Name : myApp Version : 2.0.146 Release : 1 Architecture: noarch Install Date: (not installed) Group : Development/Libraries Size : 290576 License : GPL Signature : (none) Source RPM : myApp-2.0.146-1.src.rpm Build Date : Wed 15 Oct 2014 02:57:08 PM EDT Build Host : hostname.example.lan Relocations : /usr Vendor : Me <me@example.lan

Installing RPM doesn't run all the %install actions listed in .spec

三世轮回 提交于 2019-12-13 03:55:43
问题 TL;DR: I made a .spec file that successfully builds a .rpm , but rpm -i <file>.rpm doesn't do all the actions I think it should. Why? Excerpt from <file>.spec : %install sudo python2.7 -m pip install 'tornado<5' ...#other pip commands... cp -r $RPM_BUILD_DIR/%{name}-%{version}/* %{buildroot} (I know this isn't the ideal way to do it, but I'm forced to use CentOS 6 and can't upgrade the system version of python because corporate/shared environment so this was the best way I could figure out.)

%attr in rpm.spec does not take env variable's value

巧了我就是萌 提交于 2019-12-13 02:56:13
问题 I have a rpm.spec file in which i have to give file permissions for a file. I want %attr to take $user and $group values during the rpm installation.(where i will be doing "export user=" and "export group=") but it does not take these values,instead gives a syntax error while installing the rpm. I have something like this in my specfile %pre %files %defattr(-,root,root,-) <some_path> %config /etc/akshatha %doc /usr/share/doc/akshatha %attr(0700,$user,$group) %dir directory_path %attr(0700,

RPM spec made relocatable by adding prefix but while installing i do not see the files installed

前提是你 提交于 2019-12-12 23:38:03
问题 Summary: A small lighttpd Name: lighttpd Version: 1.4.28 Release: 1000 License: LGPL Group: Applications/Webserver URL: http://www.lighttpd.com/ Source: http://www.lighttpd.com/lighttpd-%{version}.tar.gz BuildRoot: %{name}-%{version} Prefix: /opt/src/Opensource/lighttpd-1.4.28/install #Do not terminate if there are files in the buildroot that are not packed into the rpm. %define _unpackaged_files_terminate_build 0 #Do not terminate if there are any documents missing in the buildroot dir and

内核源码编译 安装

匆匆过客 提交于 2019-12-12 18:34:27
https://bbs.huaweicloud.com/forum/thread-24362-1-1.html 查询当前内核的版本号和OS 镜像来源 [root@localhost ~]# uname -a Linux localhost.localdomain 4.14.0-115.el7a.0.1.aarch64 #1 SMP Sun Nov 25 20:54:21 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux [root@localhost ~]# cat /etc/os-release NAME="CentOS Linux" VERSION="7 (AltArch)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (AltArch)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7"

rpmbuild error file not found even though files are in the path

旧巷老猫 提交于 2019-12-12 02:56:58
问题 i did the following but gotten error when running rpmbuild Files are there in path Any help or hint are appreciated Thanks rpmbuild -vv --buildroot $PWD/root --target x86_64 -bb bin-show.spec Building target platforms: x86_64 Building for target x86_64 Processing files: helloworld-1.0-1.x86_64 error: File not found: /nobackup/username/prod/packaging/redhat/bin-show/root/etc/testpackage.conf RPM build errors: File not found: /nobackup/username/prod/packaging/redhat/bin-show/root/etc

How to build the rpm package with SHA-256 checksum for files?

廉价感情. 提交于 2019-12-11 13:19:50
问题 In standard alone RHEL 6.4 rpm build environment, the rpm packages is generated with SHA-256 check sum, which is gotten by command rpm -qp --dump xxx.rpm [user@redhat64 abc]$ rpm -qp --dump package/rpm/abc-1.0.1-1.x86_64.rpm .. /opt/company/abc/abc/1.0.1-1/bin/start.sh 507 1398338016 d8820685b6446ee36a85cc1f7387d14537d6f8bf5ce4c5a4ccd2f70e9066c859 0100750 user abcc 0 .. While if it is build in docker environment (still RHEL6.4) the checksum is md5 [user@c1cbdf51d189 abc]$ rpm -qp --dump