[Rpm-maint] How to build rpm from source

Florian Festi ffesti at redhat.com
Fri Aug 5 13:21:40 UTC 2016


Hi!

I use the attached script to build the sources.

Florian

On 08/03/2016 01:25 PM, Jun Aruga wrote:
> Hello,
> 
> I tried to build rpm on latest master branch and failed with an error.
> Could you tell me how to build it?
> 
> Is there the document for basic build?
> I have checked below files. but could not find it.
> 
> README
> INSTALL
> 
> ```
> $ rpm -q gcc
> gcc-5.3.1-6.fc23.x86_64
> 
> $ rpm -q  autoconf
> autoconf-2.69-21.fc23.noarch
> 
> $ git remote -v
> origin        https://github.com/rpm-software-management/rpm.git (fetch)
> origin        https://github.com/rpm-software-management/rpm.git (push)
> 
> $ git log --pretty=oneline | head -1
> 45bfecbf7dd4249abc197a5fc908e4efcc3108ad Add option to have unique debug file names across version/release/arch.
> 
> $ autoconf
> configure.ac:8: error: possibly undefined macro: AM_INIT_AUTOMAKE
>       If this token and others are legitimate, please use m4_pattern_allow.
>       See the Autoconf documentation.
> 
> $ ./configure --prefix=/usr/local/rpm-dev
> ./configure: line 2375: syntax error near unexpected token `1.10'
> ./configure: line 2375: `AM_INIT_AUTOMAKE(1.10 foreign tar-ustar dist-bzip2 subdir-objects nostdinc)
> ```
> 
> Kind regards,
> Jun Aruga
> _______________________________________________
> Rpm-maint mailing list
> Rpm-maint at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-maint
> 


-- 

Red Hat GmbH, http://www.de.redhat.com/, Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Paul Argiry, Charles Cachera, Michael Cunningham,
Michael O'Neill
-------------- next part --------------
#!/bin/sh

#export CPPFLAGS="-I/`rpm --eval %{_includedir}`/libdb `pkg-config --cflags nss`"

export LDFLAGS="-L/`rpm --eval %{_libdir}`/libdb"
export CFLAGS=`rpm --eval "%{optflags}"`

./autogen.sh --noconfigure && \
./configure \
	--with-hackingdocs \
	--build=`rpm --eval %{_build}` \
	--prefix=/usr \
	--libdir=`rpm --eval %{_libdir}` \
	--sysconfdir=/etc \
	--localstatedir=/var \
	--enable-python \
	--with-external-db \
	--without-apidocs \
	--with-cap \
	--with-lua \
	--with-archive \
	--with-magic \
	--with-archive \
	--without-selinux $* && \
#	--enable-ndb \
make -j8


More information about the Rpm-maint mailing list