Subject: Re: 0.7.12 srpm questions
From: Vlad Harchev (hvv@hippo.ru)
Date: Thu Jan 18 2001 - 10:36:16 CST
On Thu, 18 Jan 2001, Hollis R Blanchard wrote:
Hi,
> Hi, I was trying to build abiword 0.7.12 on PPC from the SRPM posted at
> http://download.abisource.com/releases/0.7.12/linux/i386/abisuite-0.7.12-1.src.rpm
>
> I noticed that the included tarball contains 23 MB of i386 object files.
Wow! That's bad.
> Also, the tarball contains the symlink 'wv -> wv-abi' (which doesn't exist),
> so I'm not sure how the srpm built before...
>
> Anyways, I figured out the layout and just grabbed the .tar.gz files directly
> (constructing my own srpm). Everything went great until I stumbled across
> this buried Makefile typo (strip modifies files in place, so it choked looking
> for "AbiWord_s") [patch below].
Your patch is incorrect. Typically both dynamically-linked and
statically-linked versions of AW are built, and their names are
AbiWord_d and AbiWord_s. In your case AbiWord_s was not built, so that caused
the problem. IMO the correct patch is something like the one I've attached
(by editing your patch).
> After that, I discovered that both the Makefiles and the spec attempt to
> install all over my root filesystem (and not in /var/tmp/... as all good rpm's
> do). The problem seems to come from the install_redhat makefile target,
> install_redhat.sh, and the spec. I'm not really in the mood to mess with it at
> this point, but does anyone have an install patch to fix that?
>
> -Hollis
>
--- abisuite-0.7.12/abi-0.7.12/src/pkg/linux/Makefile.old Thu Jan 18 00:32:21
2001
+++ abisuite-0.7.12/abi-0.7.12/src/pkg/linux/Makefile Thu Jan 18 00:32:27 2001
@@ -46,7 +46,7 @@
########################################################################
install_redhat:
- @strip $(OUTDIR)/bin/AbiWord_d $(OUTDIR)/bin/AbiWord_s
+ @strip $(OUTDIR)/bin/AbiWord_d
+ test -f $(OUTDIR)/bin/AbiWord_s && @strip $(OUTDIR)/bin/AbiWord_s
@TARGET=/usr/share/abisuite BINDIR=/usr/bin SRCDIR=$(OUTDIR) \
DOCDIR=/usr/doc LIBDIR=/usr/lib \
SCRIPTDIR=$(ABI_ROOT)/src/pkg/common/unix/scripts \
Best regards,
-Vlad
This archive was generated by hypermail 2b25 : Thu Jan 18 2001 - 12:46:02 CST