[Scribus] Frustrating RPM build problem -- SOLVED

Scott Karns scottkinsf
Fri Feb 24 05:10:43 CET 2006

Hello all.

I just finished tracking down a curious and very
frustrating RPM build problem. Let me start by stating
that it is not a scribus build bug, rather an
autoconf/automake bug.

I have successfully used the same specfile to build my
RPMs from CVS snapshots for the better of a year now
when a few days ago my builds began to fail during the
install phase. The error I was getting was:

/usr/bin/install -c -p -m 644 ./colorchart.h          
/usr/bin/install -c -p -m 644 ./colorcombo.h          
/usr/bin/install: cannot create regular file \
`/usr/include/scribus/colorcombo.h': No such file or
make[3]: *** [install-data-local] Error 1
make[3]: Leaving directory
make[2]: *** [install-am] Error 2
make[2]: Leaving directory
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory
make: *** [install-recursive] Error 1
error: Bad exit status from
/home/scott/RPM/tmp/rpm-tmp.63260 (%install)

So my question was, why is DEST_DIR not used for
colorcombo.h? I looked and looked at the corresponding
line in scribus/Makefile.am and for the life of me,
could not see any difference. Not until a looked at
what whitespace was on that line as compared to the
other, error free lines, did I understand. The
colorcombo.h line in scribus/Makefile.h had tabs in it
and all the surrounding lines had multiple spaces in
them. It was then a simple matter to create the
following patch:

--- scribus-1.3.3cvs/scribus/Makefile.am.orig  
2006-02-21 \
17:02:16.000000000 -0700 
+++ scribus-1.3.3cvs/scribus/Makefile.am       
2006-02-23 \
20:13:43.000000000 -0700 
@@ -270,7 +270,7 @@
        $(INSTALL_DATA) $(srcdir)/collect4output.h    
        $(INSTALL_DATA) $(srcdir)/color.h             
        $(INSTALL_DATA) $(srcdir)/colorchart.h        
-       $(INSTALL_DATA) $(srcdir)/colorcombo.h        
+       $(INSTALL_DATA) $(srcdir)/colorcombo.h        
        $(INSTALL_DATA) $(srcdir)/colorm.h            
        $(INSTALL_DATA) $(srcdir)/cpalette.h          
        $(INSTALL_DATA) $(srcdir)/crypt.h             

Sorry, but this MUA doesn't allow me to send
attachments. I see that it has also converted the tabs
in the line in question to spaces, but hopefully you
get the idea.

The versions of the auto* family of utilities on my
build system are:

I hope this will save someone else the frustration
this caused me.


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

More information about the scribus mailing list