[Mono-dev] Error Building Mono RPM for Fedora

Mark Lintner mlintner at sinenomine.net
Fri Aug 30 23:47:36 UTC 2013


if you put this at the top of the spec file it should get you past
that problem. 
%global debug_package %{nil}

It looks like you don't have the build environment set up in your home directory

mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}

echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros

then you will put the spec in SPECS and the archive in SOURCES

then 
rpmbuild -ba rpmbuild/SPECS/mono-core.spec
________________________________________
From: Chris Tacke [ctacke at opennetcf.com]
Sent: Friday, August 30, 2013 11:33 AM
To: Mark Lintner; mono-devel-list at lists.ximian.com
Subject: Error Building Mono RPM for Fedora

I'm trying to build an RPM for the latest Mono source (3.3) and just not having much luck.

I was able to pull the source, configure, make, and  make dist.

I hacked the mono-core.spec to get past "features" not supported in Fedora.

I created the required rpmbuild folders and copied over the spec file and the tar.bz2 file from the make process.

I then tried to create the RPM in two ways:

rpmbuild -bb /opt/mono/mono-core.spec

rpmbuild -tb /opt/mono/mono-3.3.0.tar.bz2


Both end up with a failure after making what feels like a lot of progress in the build:

Extracting debug info from /root/rpmbuild/BUILDROOT/mono-core-3.3.0-0.i386/usr/lib/mono/4.5/mscorlib.dll.so
*** ERROR: No build ID note found in /root/rpmbuild/BUILDROOT/mono-core-3.3.0-0.i386/usr/lib/mono/4.5/mscorlib.dll.so
Error: Bad exit status from /var/tmp/rpm-tmp.XC64E7 (%install)

Any pointers on how to proceed from here?

-Chris


More information about the Mono-devel-list mailing list