Fedora Core 2 - a patch and problems

"Dave Steele" <[email protected]> Wed, 15 Sep 2004 21:31:35 -0400
Newsgroups gmane.linux.bbc.devel
Message-ID <[email protected]>
I am attempting to build the BBC on Fedora. So far I've found one critical
patch below :-)

The problem now is with compile variables. I want to make sure that things
are set right before diving into a fix.

The project is checked out to /home/daves/lnxbbc/gar
build_prefix is set to /home/daves/lnxbbc/build
main_DESTDIR is set to /home/daves/lnxbbc/maindestdir
all other variables are default

Several packages are failing to install in the right place. gdbm is trying
to install relative to main_prefix (=/), instead of main_DESTDIR. The make
call for install is passing in the value of main_prefix for the "prefix"
variable (which is passed into INSTALL_OVERRIDE_DIRS)

Have I set the variables correctly?
Shouldn't INSTALL_OVERRIDE_DIRS = prefix cause the make file to set prefix
to /home/daves/lnxbbc/maindestdir?
Does anyone have the Fedora build working?

I've seen python and modutils install to someting like
$(build_prefix)/$(build_prefix)/lib. That comes next. Threads don't install
right either. Much of the rest appears ok.

I am building against blotto, though the research branch failed at the same
place. No chroot. Athlon.

--- orig/gar.mk
+++ mod/gar.mk
@@ -185,7 +185,7 @@
 # For rules that do nothing, display what dependencies they
 # successfully completed
 #DONADA = @echo "      [$@] complete.  Finished rules: $+"
-DONADA = @touch $(COOKIEDIR)/$@; echo -e "
$(ANNOUNCECOLOR)[$(STAGECOLOR)$@$(ANNOUNCECOLOR)] complete for
$(NAMECOLOR)$(GARNAME)$(ANNOUNCECOLOR).$(NORMALCOLOR)"; which xtermset >
/dev/null && xtermset -T "[$@] complete for $(GARNAME)" || true
+DONADA = @touch $(COOKIEDIR)/$@; echo -e "
$(ANNOUNCECOLOR)[$(STAGECOLOR)$@$(ANNOUNCECOLOR)] complete for
$(NAMECOLOR)$(GARNAME)$(ANNOUNCECOLOR).$(NORMALCOLOR)"; which xtermset >
/dev/null 2>&1  && xtermset -T "[$@] complete for $(GARNAME)" || true

 # TODO: write a stub rule to print out the name of a rule when it
 # *does* do something, and handle indentation intelligently.
@@ -222,7 +222,7 @@
        @true

 xtermset-%:
-       -@which xtermset > /dev/null && xtermset -T "$(GARNAME): $*" || true
+       -@which xtermset > /dev/null 2>&1 && xtermset -T "$(GARNAME): $*" ||
true

 # Call any arbitrary rule recursively
 deep-%: %