Package: aleph Version: 0.9.0-2 Severity: serious Tags: patch aleph does not know how to build with GCC 4.0; it fails to build:
cnf/bin/aleph-setup -o --prefix=/usr aleph-setup: cannot find compiler file make: *** [build] Error 1 The attached patch fixes this build problem. -- Matt
only in patch2:
unchanged:
--- aleph-0.9.0.orig/cnf/bin/aleph-vcomp
+++ aleph-0.9.0/cnf/bin/aleph-vcomp
@@ -31,6 +31,7 @@
case $vers in
2.*) version=2;;
3.*) version=3;;
+ 4.*) version=4;;
*) version=;;
esac
}
only in patch2:
unchanged:
--- aleph-0.9.0.orig/cnf/mak/aleph-gcc-4.mak
+++ aleph-0.9.0/cnf/mak/aleph-gcc-4.mak
@@ -0,0 +1,111 @@
+# ----------------------------------------------------------------------------
+# - aleph-gcc -
+# - aleph compiler configuration - gcc configuration -
+# ----------------------------------------------------------------------------
+# - This program is free software; you can redistribute it and/or modify -
+# - it provided that this copyright notice is kept intact. -
+# - -
+# - This program is distributed in the hope that it will be useful, but -
+# - without any warranty; without even the implied warranty of -
+# - merchantability or fitness for a particular purpose. In not event shall -
+# - the copyright holder be liable for any direct, indirect, incidental or -
+# - special damages arising in any way out of the use of this software. -
+# ----------------------------------------------------------------------------
+# - copyright (c) 1999-2003 amaury darsch -
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# - compiler and linker section -
+# ----------------------------------------------------------------------------
+
+CC = g++
+LD = gcc
+LK = gcc
+AR = ar rc
+STDCCFLAGS = -Wall -Werror -MMD -fno-builtin
+STACCFLAGS =
+DYNCCFLAGS = -fPIC
+PLTCCFLAGS =
+DEBUGFLAGS = -g
+OPTCCFLAGS = -O2
+PFLCCFLAGS = -g -pg
+COVCCFLAGS = -g -fprofile-arcs -ftest-coverage
+CPPCCFLAGS = -nostdinc -nostdinc++
+CXXCCFLAGS =
+STDDEFINES = -D_REENTRANT
+DBGDEFINES = -DDEBUG
+OPTDEFINES =
+STDINCLUDE =
+ALPCPPTYPE = GNU
+ALPCPPVERS = 3
+
+# ----------------------------------------------------------------------------
+# - compiler dependant libraries -
+# ----------------------------------------------------------------------------
+
+ALPCPPLIBS = -lsupc++
+
+# ----------------------------------------------------------------------------
+# - platform dependant linking flags -
+# ----------------------------------------------------------------------------
+
+# adjust for linux platform
+ifeq ($(PLATNAME),linux)
+LDFLAGS = -shared
+ifeq ($(LKMODE),soname)
+LDFLAGS += -Wl,-soname,$(SONAME)
+endif
+endif
+
+# adjust for solaris platform
+ifeq ($(PLATNAME),solaris)
+LDFLAGS = -shared
+ifeq ($(LKMODE),soname)
+LDFLAGS += -Wl,-h,$(SONAME)
+endif
+OPTCCFLAGS =
+endif
+
+# adjust for freebsd platform
+ifeq ($(PLATNAME),freebsd)
+LDFLAGS = -shared
+ifeq ($(LKMODE),soname)
+LDFLAGS += -Wl,-soname,$(SONAME)
+endif
+endif
+
+# ----------------------------------------------------------------------------
+# - platform dependant final executable flags -
+# ----------------------------------------------------------------------------
+
+LKFLAGS =
+
+# adjust linker flags for freebsd
+ifeq ($(PLATNAME),freebsd)
+LKFLAGS = -pthread
+endif
+
+# ----------------------------------------------------------------------------
+# - platform dependant compilation flags -
+# ----------------------------------------------------------------------------
+
+# adjust platform flag for static or dynamic
+ifeq ($(LKTYPE),dynamic)
+PLTCCFLAGS += $(DYNCCFLAGS)
+endif
+ifeq ($(LKTYPE),static)
+PLTCCFLAGS += $(STACCFLAGS)
+endif
+
+# adjust intel processor
+ifeq ($(PROCNAME)-$(PROCTYPE),ia-586)
+PLTCCFLAGS += -mcpu=i586
+endif
+ifeq ($(PROCNAME)-$(PROCTYPE),ia-686)
+PLTCCFLAGS += -mcpu=i686
+endif
+
+# adjust sparc processor
+ifeq ($(PROCNAME)-$(PROCTYPE),sparc-ultra)
+PLTCCFLAGS += -mcpu=ultrasparc -mtune=ultrasparc
+endif
signature.asc
Description: Digital signature

