[users] unison srpm

Phil Schaffner Philip.R.Schaffner at NASA.gov
Wed Sep 5 21:47:51 CEST 2007


On Wed, 2007-09-05 at 13:18 -0500, Dan Bahena wrote:
> On Wed, 2007-09-05 at 19:54 +0200, Dries Verachtert wrote:
> > 
> > Hello Dan,
> > It's not possible to check what went wrong with only the '%install' part of 
> > the logfile. Apparently something went wrong during the '%build' part. I just 
> > started rebuilding the last version (2.13.16-1) and this version seems to 
> > build ok on el5. Maybe you can try again with 
> > http://dag.wieers.com/rpm/packages/unison/unison-2.13.16-1.rf.src.rpm ?
> > kind regards,
> > Dries
> 
> Hi Dries, thanks for your quick response. I downloaded the new version
> of it ant tried to rebuild and got the same error, here is the complete
> output:
> 
> [root at desktop tmp]# rpmbuild --rebuild --define 'dist el5'

Tried a build on CentOS-5.  The "--rebuild --define 'dist el5'" seems to
be a noop.

> unison-2.13.16-1.rf.src.rpm 
> Installing unison-2.13.16-1.rf.src.rpm
> warning: user dag does not exist - using root
> warning: group dag does not exist - using root
> warning: user dag does not exist - using root
> warning: group dag does not exist - using root
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.46621
> + umask 022
> + cd /usr/src/redhat/BUILD

Looks like you are building as root.  Might want to build as a normal
user for safety's sake.

> + LANG=C

... snip ...

> ocamlopt -I lwt -I ubase -c /usr/src/redhat/BUILD/unison-2.13.16/pty.c
> /usr/bin/make tags
> make[1]: Entering directory `/usr/src/redhat/BUILD/unison-2.13.16'
> etags *.mli */*.mli *.ml */*.ml *.m */*.m *.c */*.c *.txt
> /bin/sh: etags: command not found

Looks like a missing BuildRequires on ctags

Even after fixing the above, still failed with a similar error on the
install part - unison never got built.  The _smp_mflags seems to cause
the make to fail.  The following changes to the spec worked for me (at
least it produces and RPM that installs and runs - haven't tested much):

[prs at wx1 unison-2.13.16]$ diff -u unison.spec_orig unison.spec
--- unison.spec_orig    2005-12-02 14:55:37.000000000 -0500
+++ unison.spec 2007-09-05 15:37:48.000000000 -0400
@@ -24,7 +24,7 @@
 Source1: unison.png
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

-BuildRequires: ocaml
+BuildRequires: ocaml ctags
 #BuildRequires: tetex-latex, lablgtk >= 2.4.0, gtk2-devel
 %{!?_without_freedesktop:BuildRequires: desktop-file-utils}

@@ -51,7 +51,8 @@
 EOF

 %build
-%{__make} %{?_smp_mflags} NATIVE="true" #UISTYLE="gtk2"
+#%{__make} %{?_smp_mflags} NATIVE="true" #UISTYLE="gtk2"
+%{__make} NATIVE="true"

 %install
 %{__rm} -rf %{buildroot}

Phil






More information about the users mailing list