rpm

date command is giving erroneous output while using inside rpm spec file

℡╲_俬逩灬. 提交于 2021-02-20 05:00:52
问题 I have to perform some necessary steps before installing my package, such as taking back up of previous datastore snapshot. For that purpose I'm using a %pre script as follows. %pre #!/bin/sh -------- -------- stamp=`date +%Y%m%d%H%M%S` echo ${stamp} ------------- ------------- The output is as follows: 20161103123325OURCE It is printing some random characters along with date. "OURCE" is not present anywhere in my spec file. The same script works perfectly as standalone. The platform is

date command is giving erroneous output while using inside rpm spec file

我的梦境 提交于 2021-02-20 05:00:49
问题 I have to perform some necessary steps before installing my package, such as taking back up of previous datastore snapshot. For that purpose I'm using a %pre script as follows. %pre #!/bin/sh -------- -------- stamp=`date +%Y%m%d%H%M%S` echo ${stamp} ------------- ------------- The output is as follows: 20161103123325OURCE It is printing some random characters along with date. "OURCE" is not present anywhere in my spec file. The same script works perfectly as standalone. The platform is

cpack restrict OS version package can be installed on

强颜欢笑 提交于 2021-02-11 12:42:34
问题 I create packages for several OS versions including RHEL7 & RHEL8 (or mostly equally CentOS7 & 8). It is possible to install a package built for .el7. on .el8. but it will typically not work (for example due to undefined symbols etc). Ideally I would like to make the installation fail with an error message like "this package is only intend for RHEL7/CentOS7". How can I do this? More specifically how can I do this with CPack/CMake? Bonus points if you can also given an explanation suitable for

Python bdist_rpm -ba: unknown option error: command 'rpm' failed with exit status 1

末鹿安然 提交于 2021-02-07 12:32:26
问题 I'm getting the following error when trying to build a Python RPM package for my Linux distribution. I see warnings in the process but I don't think those have to do with the "-ba: unknown error", any ideas how to get this to run? Error: bdist_rpm -ba: unknown option error: command 'rpm' failed with exit status 1 I'm running the following python setup.py script: setup( name='Tester', version='0.1.0', author='My Name', author_email='emailaddress@gmail.com', packages=['tester'], license=

Python bdist_rpm -ba: unknown option error: command 'rpm' failed with exit status 1

天大地大妈咪最大 提交于 2021-02-07 12:32:20
问题 I'm getting the following error when trying to build a Python RPM package for my Linux distribution. I see warnings in the process but I don't think those have to do with the "-ba: unknown error", any ideas how to get this to run? Error: bdist_rpm -ba: unknown option error: command 'rpm' failed with exit status 1 I'm running the following python setup.py script: setup( name='Tester', version='0.1.0', author='My Name', author_email='emailaddress@gmail.com', packages=['tester'], license=

Python bdist_rpm -ba: unknown option error: command 'rpm' failed with exit status 1

孤街浪徒 提交于 2021-02-07 12:32:17
问题 I'm getting the following error when trying to build a Python RPM package for my Linux distribution. I see warnings in the process but I don't think those have to do with the "-ba: unknown error", any ideas how to get this to run? Error: bdist_rpm -ba: unknown option error: command 'rpm' failed with exit status 1 I'm running the following python setup.py script: setup( name='Tester', version='0.1.0', author='My Name', author_email='emailaddress@gmail.com', packages=['tester'], license=

How can I install yum rpm packages without internet connection?

南楼画角 提交于 2021-02-05 09:24:07
问题 This question has been asked before but mine is a bit different. I want to install a bunch of rpm packages using sudo yum. I do not have internet connection on the machine I want to install them on. These packages also do not exist on any machine in the network. Is there a way I can install them without internet connectivity and with them not anywhere on any machine in the network (so cannot use --downloadonly option) ? 回答1: if you have the RPM files on your local machine or any machine (not

bitbake do_rootfs install fails with shared library symlink in bbappend

纵饮孤独 提交于 2021-01-27 17:11:59
问题 I am trying to add a shared library package to a Yocto Krogoth image from a custom recipe that is dependent on libudev.so.0 but the openembedded-core layer's eudev recipe only provides libudev.so.1.6.3 and a libudev.so.1 symlink: libudev.so.1 -> libudev.so.1.6.3 I have added a eudev_%.bbappend recipes_core recipe that creates the symlink do_install_append() { ln -srf ${D}${base_libdir}/libudev.so.1 ${D}${base_libdir}/libudev.so.0 } and I can confirm the libudev.so.0 file is added to the

Rpm-build limitaitons

♀尐吖头ヾ 提交于 2021-01-27 06:43:14
问题 I am beginner in rpm packaging and as I understand rpm-build has issue with file sizes>4GB due to cpio limitations. So I split the large file in my package with gnu split into files of 512MB [which is done as a part of rpmbuild since the large files are generated build time]. I still see the error: "error: create archive failed on file /io1/dm/build/BUILDROOT/pkg/installdir/lib/clfsplitab: cpio: Bad magic" where clfsplitab is the 512MB split of the large file. Any suggestions on how to trace

How to publish a rpm package to YUM

大兔子大兔子 提交于 2020-12-26 23:29:50
问题 I have created a rpm package, and I need to publish it to YUM so that users can directly do yum install softwareName to install the application. I searched on google but can't find many resources. I'm new to this thing so I don't really know what I want to do is possible. I've tried to create a local yum repository for the application, but it seems work only for the local machine. Can anyone help please? Thank you. 回答1: Assuming you've YUM installed on a Linux box. You need to create a YUM