Questions tagged [rpmbuild]

rpmbuild command used to build rpms from rpm SPEC files

rpmbuild is the command used to build rpms from a rpm SPEC file.

854 questions
4
votes
2 answers

Rpm-build limitaitons

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…
4rk
  • 375
  • 3
  • 15
4
votes
2 answers

RPM build error

I needed some help debugging my rpm build. Any time it encounters a %files or %build or %install directive it gives me an error and I am not able to figure out what "[rpm] + $'\r'" means [rpm] Building the RPM based on the LBR.spec file [rpm]…
Anand
4
votes
4 answers

Private repository - update so new rpms can be pulled immediately

I setup a private repository (local mount for now) and built custom rpms. The idea is to build the rpm, add it to the repo, and trigger a yum update mypackage to several servers. The problem I'm having is that the newer version of the rpm does not…
Coder1
  • 13,139
  • 15
  • 59
  • 89
4
votes
1 answer

How to create RPM subpackages using the same paths for different envs?

I would like to use a rpm to build subpackages for different environments (live,testing,developer) but for the same files, so having a package called name-config-live, one called name-config-testing and one called name-config-developer and in them…
Sorin
  • 43
  • 4
4
votes
1 answer

rpmbuild 32bit lib packages for x86-64

I'm trying to use rpmbuild to build x86-64 packages and libs-32bit package. The same src rpm is uesd to build both output packages. What is the arguments to rpmbuild to make package-lib-32bit-X.x.x68_64.rpm ? I currently do this to get a 32-bit…
codeDr
  • 1,535
  • 17
  • 20
4
votes
1 answer

"rpmbuild -bb package.spec" produces error: Package already exists: %package debuginfo

When i run the command rpmbuild -bb mypackage.spec, on centos, i get an error error: Package already exists: %package debuginfo following is part of the spec file: BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} BuildRequires: gcc =…
kamal
  • 9,637
  • 30
  • 101
  • 168
3
votes
3 answers

Rpm package information: Auto incrementing version

I wondering if any one knew if there was a way to auto increment the Version/Release number for the information found in an rpm package. i.e. rpm -qil 'package_name' Would return something like: Name: package_name Version: 1.5 Release: 000001 Is…
user459811
  • 2,874
  • 10
  • 37
  • 63
3
votes
2 answers

RPM build process without installing

I'm trying to build my own rpm package and have a couple of doubts. First of all, in several places I've red that one shouldn't build rpms as root. Why is that? During the building process, rpmbuild has to go through the install stage where it…
facha
  • 11,862
  • 14
  • 59
  • 82
3
votes
0 answers

RHEL 8 find-debuginfo.sh gdb-add-index: No index was created

Trying to generate rpm on RHEL8 Machine. The same rpm_build.sh script works fine on RHEL6 & RHEL7. But in RHEL 8 its failing to generate debuginfo packages. RPM BUILD VERSION : $ sudo yum install rpm-build Package rpm-build-4.14.3-23.el8.x86_64 is…
Vikas
  • 57
  • 1
  • 6
3
votes
1 answer

rpmbuild failure: error: Installed (but unpackaged) file(s) found:

Not sure if this is the right place to post the question. I am trying to create rpm's for my project, this is the first time I am writing a spec file. When I am building the spec the file with the command rpmbuild -ba name.spec error: Installed…
hue
  • 1,759
  • 3
  • 27
  • 37
3
votes
1 answer

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

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:…
vishu
  • 71
  • 2
  • 7
3
votes
1 answer

How to make an RPM package (without rpmbuild)

deb: fakeroot dpkb-build -b directory package.deb # Name, version, architecture, etc. are in directory/DEBIAN/control rpm: $SOME_COMMAND directory package.rpm # Name, version, architecture, etc. are in SOME_FILE What to use as SOME_COMMAND and…
Vi.
  • 37,014
  • 18
  • 93
  • 148
3
votes
1 answer

fpm v.1.11.0 vs inclusion of /usr/lib/.build-id files

New to using fpm I’m trying to package some config files and a few binaries (from source: dir), eg. no building from sources. When I get a package it seems to include symlinks from under /usr/lib/.build-id pointing to the binaries in the…
3
votes
1 answer

Build Python with static openssl

I need to build a Python 3.7.1 RPM for work. It looks 3.7.1 requires OpenSSL 1.1.1 so if I first build OpenSSL 1.1.1 in /usr then build Python 3.7.1 in /usr everything works on the build system. If I package the RPM and install it on another machine…
gdanko
  • 1,922
  • 4
  • 20
  • 31
3
votes
2 answers

Building with rpmbuild under Ubuntu

I need to build yum with a patch under Ubuntu 10.4 (reason being that i need a yum with chroot support for my vserver instance) Since yum src for ubuntu where not avaliable (3rd party repos) i downloaded the source off the official repos and the…
Redconnection
  • 595
  • 2
  • 6
  • 7