[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

setting up packages to autobuild on alpha



For those of you who maintain kde based packages for Debian this is for you.

alpha currently uses gcc2.9x by default.  gcc3 is required to build the
kde packages so we have to do some magic to make sure that any joe blow
can apt-get source package and build it with no probs.  Now, we can do this
all on the buildd side but then the buildd would be the only thing that
could build it...which really is alot of work for nothing if you ask me...so
we do it this way to make sure.

First you need to make sure you build-depend on g++-3.0 [alpha] so that
we are sure g++-3.0 is installed...I don't know if it's a default package or
not so it may not be needed...I put it there just in case since g++-3 is not
the default compiler yet...

Then in debian/rules you need to add this at the top somewhere:

ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH)
ifeq ($(ARCH),alpha)
  COMPILER_FLAGS=CXX=g++-3.0 CC=gcc-3.0
else
  COMPILER_FLAGS=CXX=g++ CC=gcc
endif

then make your configure line look something like this:

        if test ! -f configure; then \
          $(MAKE) -f admin/Makefile.common ;\
        fi
        $(COMPILER_FLAGS) \
        ./configure $(configkde) \
        --libdir=$(kde_libdir) --includedir=$(kde_includedir)


this at least works...if you have a cleaner solution let me know.

Ivan


-- 
----------------
Ivan E. Moore II
rkrusty@tdyc.com
http://snowcrash.tdyc.com
GPG KeyID=90BCE0DD
GPG Fingerprint=F2FC 69FD 0DA0 4FB8 225E 27B6 7645 8141 90BC E0DD



Reply to: