You are not logged in.

#1 2012-12-02 10:16:31

semberal
Member
Registered: 2012-11-13
Posts: 3

RPM builds on Arch Linux

Hi,

I've recently switched from Fedora to Arch linux on my work computer. We are using RPM packages for deployment of our application into both the testing and production environments and, therefore, I need to be able to create an RPM on Arch Linux (we're using rpmbuild scripts). I found in AUR the rpm package which provides the rpmbuild script, but the build fails with the following error message:

error: cannot open Packages(0) index: No such file or directory(2)
	DB: Berkeley DB 5.1.29: (October 25, 2011)
error: cannot open Packages database in /var/lib/rpm
error: cannot open Packages(0) index: No such file or directory(2)
	DB: Berkeley DB 5.1.29: (October 25, 2011)
error: cannot open Packages database in /var/lib/rpm
error: cannot open Packages(0) index: No such file or directory(2)
	DB: Berkeley DB 5.1.29: (October 25, 2011)
error: cannot open Packages database in /var/lib/rpm
error: cannot open Packages(0) index: No such file or directory(2)
	DB: Berkeley DB 5.1.29: (October 25, 2011)
error: cannot open Packages database in /var/lib/rpm
sh: line 0: fg: no job control
error: cannot open Packages(0) index: No such file or directory(2)
	DB: Berkeley DB 5.1.29: (October 25, 2011)
error: cannot open Packages database in /var/lib/rpm

It looks li ke I need to bootstrap the RPM database somehow. Do you have any ideas? Thank you.

Last edited by semberal (2012-12-02 10:26:25)

Offline

#2 2012-12-02 10:52:53

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: RPM builds on Arch Linux

You may be able to build a rpm on Arch, but I doubt that would then work on Fedora. Better install either a VM or chroot with Fedora.

Offline

#3 2012-12-21 18:00:45

vwyodajl
Member
Registered: 2012-01-21
Posts: 183

Re: RPM builds on Arch Linux

Have you looked into FMP[1] to see if it would suit your needs. I build all my RPM related packages for work on a Arch machine using FPM. I love it personally and has always been much easier to use than rpmbuild, and its package config files are more like PKGBUILD's to me. It is designed to build RPM, Deb's and so on but does not matter what the host packaging manager is.

Jordon is also a great maintainer of his software. He is almost always on IRC and quickly helps or resolves issues with the software.

HTH
[1]https://github.com/jordansissel/fpm

Can be found on AUR https://aur.archlinux.org/packages/ruby-fpm/

Edit: Added link to AUR

Last edited by vwyodajl (2012-12-21 18:12:29)

Offline

#4 2015-11-04 05:25:39

lyman
Member
From: China
Registered: 2008-01-13
Posts: 21
Website

Re: RPM builds on Arch Linux

vwyodajl wrote:

Have you looked into FMP[1] to see if it would suit your needs. I build all my RPM related packages for work on a Arch machine using FPM. I love it personally and has always been much easier to use than rpmbuild, and its package config files are more like PKGBUILD's to me. It is designed to build RPM, Deb's and so on but does not matter what the host packaging manager is.

Jordon is also a great maintainer of his software. He is almost always on IRC and quickly helps or resolves issues with the software.

HTH
[1]https://github.com/jordansissel/fpm

Can be found on AUR https://aur.archlinux.org/packages/ruby-fpm/

Edit: Added link to AUR

are you sure fpm could handle rpm? I just tried out fpm and it seems fpm still needs rpmbuild to finish packaging a rpm.

$ fpm -s tar -t rpm whatever.tar.gz
no value for epoch is set, defaulting to nil {:level=>:warn}
no value for epoch is set, defaulting to nil {:level=>:warn}
Need executable 'rpmbuild' to convert tar to rpm {:level=>:error}

arch x86_64 on Dell E7450

Offline

#5 2015-11-04 11:21:03

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: RPM builds on Arch Linux

Please don't necrobump, lyman.

https://wiki.archlinux.org/index.php/Fo … bumping.22

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB