--- kbuild-894.orig/debian/changelog +++ kbuild-894/debian/changelog @@ -0,0 +1,41 @@ +kbuild (894-5) unstable; urgency=low + + * Remove directory 'out' in clean target. (Closes: #424426) + + -- Torsten Werner Sat, 19 May 2007 23:25:17 +0200 + +kbuild (894-4) unstable; urgency=low + + * Add hppa, ia64, mips, mipsel, powerpc, s390 to already bootstrapped + architectures. + * Add patch unused.diff to fix a build problem on alpha. + + -- Torsten Werner Mon, 14 May 2007 05:30:43 +0200 + +kbuild (894-3) unstable; urgency=low + + * Add yet another fix for the missing architectures. + + -- Torsten Werner Sat, 12 May 2007 18:32:30 +0200 + +kbuild (894-2) unstable; urgency=low + + * Complete the last (incomplete) patch. + + -- Torsten Werner Sat, 12 May 2007 15:20:34 +0200 + +kbuild (894-1) unstable; urgency=low + + * New upstream revision. + * Use the revision number from debian/changelog for debian/orig-tar.sh. + * Add Build-Depends: kbuild [amd64 i386]. + * Add a patch to support all Debian architectures. + + -- Torsten Werner Sat, 12 May 2007 14:38:49 +0200 + +kbuild (893-1) unstable; urgency=low + + * Initial release (Closes: #422367) + + -- Torsten Werner Fri, 4 May 2007 20:35:40 +0200 + --- kbuild-894.orig/debian/control +++ kbuild-894/debian/control @@ -0,0 +1,34 @@ +Source: kbuild +Section: devel +Priority: extra +Maintainer: Torsten Werner +Build-Depends: byacc, cdbs, debhelper (>= 5), doxygen, flex, + kbuild [amd64 hppa i386 ia64 mips mipsel powerpc s390], libacl1-dev, quilt +Standards-Version: 3.7.2 +XS-X-Vcs-Svn: http://bollin.googlecode.com/svn/kbuild/trunk + +Package: kbuild +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: framework for writing simple makefiles for complex tasks + The goals of the kBuild framework: + - Similar behavior cross all supported platforms. + - Flexibility, don't create unnecessary restrictions preventing ad-hoc + solutions. + - Makefile can very simple to write and maintain. + . + There are four concepts being tried out in the current kBuild incaration: + - One configuration file for a subtree automatically included. + - Target configuration templates as the primary mechanism for makefile + simplification. + - Tools and SDKs for helping out the templates with flexibility. + - Non-recursive makefile method by using sub-makefiles. + . + kBuild does not provide any facilities for checking compiler/library/header + configurations, that's not in its scope. If this is important for your + project, check out the autoconf tool in the GNU build system. It is possible + to use kBuild together with autoconf if you like, but you might just as well + use the full GNU package. + . + Homepage: http://svn.netlabs.org/kbuild + --- kbuild-894.orig/debian/links +++ kbuild-894/debian/links @@ -0,0 +1,17 @@ +/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_append.1.gz +/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_ash.1.gz +/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_cat.1.gz +/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_cp.1.gz +/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_echo.1.gz +/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_mkdir.1.gz +/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_mv.1.gz +/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_install.1.gz +/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_ln.1.gz +/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_printf.1.gz +/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_rm.1.gz +/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_rmdir.1.gz +/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_gmake.1.gz +/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_sed.1.gz +/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kDepPre.1.gz +/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kDepIDB.1.gz + --- kbuild-894.orig/debian/compat +++ kbuild-894/debian/compat @@ -0,0 +1 @@ +5 --- kbuild-894.orig/debian/kmk.pod +++ kbuild-894/debian/kmk.pod @@ -0,0 +1,25 @@ +=head1 NAME + +kmk - framework for writing simple makefiles for complex tasks + +=head1 SYNOPSIS + +B [S>] + +=head1 DESCRIPTION + +kmk and its helper tools are an extension to GNU make to ease writing portable +Makefile. There is not a lot of documentation though. Starting points are +F and L. + +On Debian systems the kBuild binaries can be found in F and its data +files in F. + +=head1 SEE ALSO + +L + +=head1 AUTHOR + +Torsten Werner + --- kbuild-894.orig/debian/install +++ kbuild-894/debian/install @@ -0,0 +1,2 @@ +out/*.*/release/usr / + --- kbuild-894.orig/debian/patches/arch.diff +++ kbuild-894/debian/patches/arch.diff @@ -0,0 +1,54 @@ +Index: kbuild-894/kBuild/env.sh +=================================================================== +--- kbuild-894.orig/kBuild/env.sh 2007-01-29 07:20:50.000000000 +0100 ++++ kbuild-894/kBuild/env.sh 2007-05-12 18:27:31.000000000 +0200 +@@ -67,6 +67,16 @@ + k8|k8l|k9|k10) + BUILD_PLATFORM_ARCH='amd64' + ;; ++ parisc64) ++ BUILD_PLATFORM_ARCH='hppa' ++ ;; ++ ppc) ++ BUILD_PLATFORM_ARCH='powerpc' ++ ;; ++ alpha|ia64|mips|s390|sparc) ++ # NOTE: mipsel is not handled separately (yet) ++ BUILD_PLATFORM_ARCH=$BUILD_PLATFORM_CPU ++ ;; + *) echo "$0: unknown cpu/arch - $BUILD_PLATFORM_CPU" + sleep 1 + exit 1 +@@ -139,6 +149,16 @@ + k8|k8l|k9|k10) + BUILD_TARGET_ARCH='amd64' + ;; ++ parisc64) ++ BUILD_TARGET_ARCH='hppa' ++ ;; ++ ppc) ++ BUILD_TARGET_ARCH='powerpc' ++ ;; ++ alpha|ia64|mips|s390|sparc) ++ # NOTE: mipsel is not handled separately (yet) ++ BUILD_TARGET_ARCH=$BUILD_PLATFORM_CPU ++ ;; + *) echo "$0: unknown cpu/arch - $BUILD_TARGET_CPU" + sleep 1 + exit 1 +Index: kbuild-894/src/gmake/Makefile.kmk +=================================================================== +--- kbuild-894.orig/src/gmake/Makefile.kmk 2007-03-30 03:51:52.000000000 +0200 ++++ kbuild-894/src/gmake/Makefile.kmk 2007-05-12 18:27:52.000000000 +0200 +@@ -106,9 +106,8 @@ + \ + BUILD_PLATFORM=\"$(BUILD_TARGET)\" \ + BUILD_PLATFORM_ARCH=\"$(BUILD_TARGET_ARCH)\" \ +- BUILD_PLATFORM_CPU=\"$(BUILD_TARGET_CPU)\" +-kmk_DEFS.x86 = CONFIG_WITH_OPTIMIZATION_HACKS +-kmk_DEFS.amd64 = CONFIG_WITH_OPTIMIZATION_HACKS ++ BUILD_PLATFORM_CPU=\"$(BUILD_TARGET_CPU)\" \ ++ CONFIG_WITH_OPTIMIZATION_HACKS + kmk_DEFS.win.x86 = \ + CONFIG_NEW_WIN32_CTRL_EVENT + --- kbuild-894.orig/debian/patches/series +++ kbuild-894/debian/patches/series @@ -0,0 +1,2 @@ +arch.diff +unused.diff --- kbuild-894.orig/debian/patches/unused.diff +++ kbuild-894/debian/patches/unused.diff @@ -0,0 +1,15 @@ +Index: kbuild-894/src/gmake/kmkbuiltin/cp.c +=================================================================== +--- kbuild-894.orig/src/gmake/kmkbuiltin/cp.c 2007-05-14 05:29:14.000000000 +0200 ++++ kbuild-894/src/gmake/kmkbuiltin/cp.c 2007-05-14 05:30:16.000000000 +0200 +@@ -98,6 +98,10 @@ + *--(p).p_end = 0; \ + } + ++#ifndef __unused ++# define __unused ++#endif ++ + /* have wrappers for globals in cp_extern! */ + + const char *cp_argv0; --- kbuild-894.orig/debian/copyright +++ kbuild-894/debian/copyright @@ -0,0 +1,45 @@ +This package was debianized by Torsten Werner on +Sat May 5 14:23:24 CEST 2007. + +It was downloaded from http://svn.netlabs.org/kbuild + +Upstream Author: +2005-2007 knut st. osmundsen + +Copyright: +(C) 2005-2007 knut st. osmundsen + +License: + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + 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. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +On Debian systems, the complete text of the GNU General Public License can be +found in `/usr/share/common-licenses/GPL'. + + +kBuild ships modified sources of ash, make and sed. + +GNU make is Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, +1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 +Free Software Foundation, Inc. +GNU sed is Copyright (C) 2003 - Free Software Foundation, Inc. +Both make and sed are licensed under the GPL. + +ash is Copyright (C) 1993 The Regents of the University of California. ash is +licensed under the BSD license, see `/usr/share/common-licenses/BSD'. + + +The Debian packaging is (C) 2007, Torsten Werner and is +licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- kbuild-894.orig/debian/docs +++ kbuild-894/debian/docs @@ -0,0 +1,2 @@ +out/docs/* + --- kbuild-894.orig/debian/rules +++ kbuild-894/debian/rules @@ -0,0 +1,49 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk + +HAVE_KMK := $(shell test -x /usr/bin/kmk && echo yes) +ifeq ($(HAVE_KMK),yes) + KMK_INVOKE := kmk +else + KMK_INVOKE := kBuild/env.sh kmk + EXTRATARGET := debian/stamp-bootstrap +endif + +ASH := ASH=/bin/bash +BOOTSTRAP := $(ASH) ECHO=/bin/echo MKDIR=/bin/mkdir CP=/bin/cp \ + RM=/bin/rm INSTALL=/usr/bin/install +YACC := YACC=/usr/bin/byacc + +debian/stamp-bootstrap: + kBuild/env.sh $(MAKE) -C src/gmake -f Makefile.kmk $(BOOTSTRAP) + cd out/*.*/release && cp --parents kBuild/bin/*.*/* ../../../ + kBuild/env.sh kmk -C src/ash $(ASH) $(YACC) + cd out/*.*/release && cp --parents kBuild/bin/*.*/* ../../../ + touch $@ + +build/kbuild:: $(EXTRATARGET) debian/stamp-build +debian/stamp-build: + $(KMK_INVOKE) BUILD_TYPE=release rebuild $(YACC) NIX_INSTALL_DIR=/usr + doxygen kBuild.DoxyFile + pod2man -c 'kBuild for Debian GNU/Linux' \ + -r kBuild-$(DEB_UPSTREAM_VERSION) debian/kmk.pod > debian/kmk.1 + touch $@ + +install/kbuild:: + $(KMK_INVOKE) install NIX_INSTALL_DIR=/usr + cd out/*.*/release/usr/share/kBuild && chmod a-x *.kmk */*.kmk + +clean:: + $(RM) -r debian/stamp-* debian/kmk.1 out + + +SVNROOT := http://svn.netlabs.org/repos/kbuild/trunk + +get-orig-info: + svn info $(SVNROOT) + +get-orig-source: + sh debian/orig-tar.sh $(SVNROOT) $(DEB_UPSTREAM_VERSION) + --- kbuild-894.orig/debian/manpages +++ kbuild-894/debian/manpages @@ -0,0 +1 @@ +debian/kmk.1 --- kbuild-894.orig/debian/orig-tar.sh +++ kbuild-894/debian/orig-tar.sh @@ -0,0 +1,20 @@ +#!/bin/sh -e + +SVNROOT=$1 +REVISION=$2 + +DIR=kbuild-$REVISION +TAR=../kbuild_$REVISION.orig.tar.gz + +svn export -r $REVISION $SVNROOT $DIR +rm -f $DIR/kBuild/bin/*/* +tar -c -z -f $TAR $DIR +rm -rf $DIR + +# move to directory 'tarballs' +if [ -r .svn/deb-layout ]; then + . .svn/deb-layout + mv $TAR $origDir + echo "moved $TAR to $origDir" +fi + --- kbuild-894.orig/debian/doc-base +++ kbuild-894/debian/doc-base @@ -0,0 +1,8 @@ +Document: kbuild +Title: framework for writing simple makefiles for complex tasks +Author: knut st. osmundsen +Section: Programming + +Format: HTML +Index: /usr/share/doc/kbuild/index.html +Files: /usr/share/doc/kbuild/*.html