rpmbuild Questions

0

I am compiling software for Red Hat/CentOS 7 (running on CentOS) using the compiler from Developer Toolset 7, and when I try to create an RPM, rpmbuild fails with the following error: + /usr/lib/r...
Pollination asked 5/7, 2018 at 9:26

6

Background. $ rpmbuild --version RPM version 4.3.3 I am working on a spec file that needs to process a list of files in multiple scriptlets. DRY (don't repeat youself) has me defining the list on...
Stifle asked 2/12, 2010 at 20:16

2

I'm trying to create an rpm from local source. Is it possible to do compilation in a similar to what pdebuild does - just copy the local directory as the source and operate on that copy? Every time...
Emend asked 6/4, 2011 at 13:24

1

Is it possible to have a separate %install section for a subpackage in a spec file? For example, files can be specified for the main package as %files and for the subpackage like this: %files ...
Leporine asked 21/9, 2017 at 11:17

1

Solved

I am trying a sample rpm package with single file. In my source folder I have python_test_rpm.tar.gz which contains only one python script file. But, the file is not a valid python script. All ...
Baldachin asked 25/11, 2016 at 9:51

3

Solved

I am trying to build and sign an RPM. I created my .rpmmacro file in the location I am building /path/to/macrodir/ Then I am using --define with _topdir referring to /path/to/macrodir/ If I build ...
Gutbucket asked 10/8, 2012 at 14:23

1

import os from setuptools import setup from distutils.command.install import install as _install def _post_install(dir): from subprocess import call call([sys.executable, 'post_script.py'], cwd=...
Pleurodynia asked 10/3, 2016 at 2:3

2

Solved

I am getting the following in my build log: Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.CgE2Qn + umask 022 + cd /export/home/svn_checkouts/*snip*/Output/release/bin/packaging/BUILD + /bin/rm -r...
Hazelhazelnut asked 11/12, 2012 at 23:29

9

Solved

I just want to create an RPM file to distribute my Linux binary "foobar", with only a couple of dependencies. It has a config file, /etc/foobar.conf and should be installed in /usr/bin/foobar. Un...
Rema asked 18/5, 2009 at 23:10

1

My spec files path looks like below : /opt/OV /opt/OV/NonOV /opt/OV/NonOV/ABCD /opt/OV/NonOV/ABCD/ABC /opt/OV/NonOV/ABCD/ABC/Test1 /opt/OV/NonOV/ABCD/ABC/Test1/test1.txt /opt/OV/NonOV/ABCD/ABC/Te...
Percaline asked 18/3, 2016 at 9:24

2

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...
Triphylite asked 21/10, 2015 at 9:4

1

I use this spec file to use RPM files Name: pack-agent Version: 1.0 Release: 1%{?dist} Summary: Linux Agent installation script Group: Utilities License: license Source0: pack-agent-1.0.tar.gz Bui...
Gemina asked 28/8, 2015 at 19:5

1

rpm created using spec file will create directory "directory1" and all files in /var/lib/directory1. For another use case i want to create another directory in "/var/lib" which should be a symlink...
Kristiankristiansand asked 18/8, 2015 at 8:25

2

Solved

I want to create simple RPM file with many small files. [root@laptop rpm]# tree . ├── BUILD ├── BUILDROOT ├── RPMS ├── SOURCES │   └── some_agent-1.0.tar.gz ├── SPECS │   ├── kernel.spec │   └── k...
Toxic asked 26/7, 2015 at 16:34

4

Have next kind of question. Wanna to rebuild garbage collector (gc-7.1-10.el6.src.rpm) and exclude ld-linux.so.2, ld-linux.so.2(GLIBC_2.3) & libpthread.so.0(GLIBC_2.3.2) dependencies. How can I...
Cloy asked 10/10, 2011 at 16:39

1

Solved

I'm running an rpm spec file, and encountering the following error: $ rpmbuild -ba gregorio.spec Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.dDWqRV + umask 022 + cd /home/cantanima/rpmbuild/BUI...
Lackluster asked 12/4, 2015 at 4:36

4

Solved

I'm kinda a new to writing spec files and building RPM's. Currently I have one RPM that is supposed to deploy some files in 1 of 2 possible directories that will vary with the OS. How can I, with...
Bedight asked 9/9, 2013 at 15:27

1

Solved

I worked on Redhat Linux, I have a tar.gz file. I want to package this tar.gz file to a rpm package file. In the rpm package phase, I just want to extract the tar.gz file and package all of the ...
Barong asked 12/1, 2015 at 2:32

1

Solved

I have been struggling for a while with this one. So I wrote a .specs file for my project and everything went fine. The rpm is built, the installation is smooth... but then I got some trouble becau...
Lumenhour asked 17/9, 2014 at 16:15

1

Solved

I would like to add the last "git commit id" to my rpms to have a foolproof way to track back the sources used to build a package. I could use the rpm release tag, but this is already used for rel...
Ambulance asked 22/5, 2014 at 12:59

3

I would like to use 'chkconfig --del NetworkManager' command in the %install section of a rpm spec file. If I include this command the rpm is building fine but when I install that rpm, it looks tha...
Antitype asked 21/3, 2011 at 9:4

4

I am building a series of rpms from a single source and want to only build the subpackages; i.e. I don't want an empty main package created, only the subpackages. How do I do this? is it an rpmbui...
Bratislava asked 22/3, 2014 at 6:5

2

Solved

i want to check the rpm i have created is install or update by user(client) like rpm -ivh abc.rpm or rpm -Uvh abc.rpm is their any %command in spec file to get info regarding this command. ...
Hie asked 6/12, 2012 at 9:11

3

Solved

I have java project with building rpm by maven. Required create noarch packets, but i see concrete arch. I install rpm(4.4.9 or 5.2.0) via macports at MacOsX, and run command from maven rpm plugin:...
Unguent asked 8/11, 2011 at 14:14

3

Solved

I am building a custom rpm to install apache, among other things. When i try and build i get the above error, and then it lists /httpd-2.2.17/ and all of its subfiles. As far as i know, this is th...
Insecticide asked 17/2, 2011 at 16:8

© 2022 - 2024 — McMap. All rights reserved.