--- binutils-z80-2.18.50.orig/debian/rules +++ binutils-z80-2.18.50/debian/rules @@ -0,0 +1,89 @@ +#!/usr/bin/make -f + +include /usr/share/dpatch/dpatch.make + +PACKAGE=binutils-z80 +TARGET=z80-unknown-coff + +CONFARGS = --prefix=/usr \ + --build=$(DEB_BUILD_GNU_TYPE) \ + --host=$(DEB_HOST_GNU_TYPE) \ + --target=$(TARGET)\ + --disable-static\ + --with-gnu-ld\ + --with-gnu-as\ + --enable-install-libbfd + + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +TARFILE=binutils-2.18.50.tar.bz2 +SOURCE_DIR=src +BUILD_DIR=build + +unpack: unpack-stamp +unpack-stamp: + mkdir -p $(SOURCE_DIR) + cd $(SOURCE_DIR) && tar xj --strip-components=1 < ../$(TARFILE) + touch unpack-stamp + +configure: configure-stamp +configure-stamp: unpack-stamp + dh_testdir + mkdir -p $(BUILD_DIR) + cd $(BUILD_DIR) && env CC="gcc" ../$(SOURCE_DIR)/configure $(CONFARGS) + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: patch-stamp + dh_testdir + cd $(BUILD_DIR) && $(MAKE) + + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp unpack-stamp + rm -rf $(BUILD_DIR) #$(SOURCE_DIR) + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + cd $(BUILD_DIR) && $(MAKE) install prefix=$(CURDIR)/debian/$(PACKAGE)/usr + mv debian/$(PACKAGE)/usr/man debian/$(PACKAGE)/usr/share/man + # Files also in main binutils pkg + cd debian/$(PACKAGE)/usr && \ + rm -rf lib/libiberty.* lib/libbfd.* lib/libopcodes* \ + include/bfd.h include/ansidecl.h include/bfdlink.h \ + share/locale include/symcat.h include/dis-asm.h \ + info + # other not strictly needed files + cd debian/$(PACKAGE)/usr && \ + rm -rf z80-unknown-coff i486-linux-gnu + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs -n + dh_installman + dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure unpack --- binutils-z80-2.18.50.orig/debian/patches/00list +++ binutils-z80-2.18.50/debian/patches/00list @@ -0,0 +1 @@ +fix_format_strings --- binutils-z80-2.18.50.orig/debian/patches/fix_format_strings.dpatch +++ binutils-z80-2.18.50/debian/patches/fix_format_strings.dpatch @@ -0,0 +1,52 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## fix_format_strings.dpatch by Devid Filoni +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: fix FTBFS caused by -Wformat/-Wformat-security flag enabled in Intrepid. + +@DPATCH@ +diff -urNad binutils-z80-2.18.50~/src/binutils/dwarf.c binutils-z80-2.18.50/src/binutils/dwarf.c +--- binutils-z80-2.18.50~/src/binutils/dwarf.c 2008-04-11 11:04:17.000000000 +0200 ++++ binutils-z80-2.18.50/src/binutils/dwarf.c 2008-07-30 20:59:23.000000000 +0200 +@@ -186,7 +186,7 @@ + snprintf (buff, sizeof (buff), "%16.16lx ", val); + #endif + +- printf (buff + (byte_size == 4 ? 8 : 0)); ++ printf (buff + (byte_size == 4 ? 8 : 0),"%s\n"); + } + + static unsigned long int +diff -urNad binutils-z80-2.18.50~/src/gas/config/tc-z80.c binutils-z80-2.18.50/src/gas/config/tc-z80.c +--- binutils-z80-2.18.50~/src/gas/config/tc-z80.c 2007-07-03 13:01:05.000000000 +0200 ++++ binutils-z80-2.18.50/src/gas/config/tc-z80.c 2008-07-30 20:59:59.000000000 +0200 +@@ -412,7 +412,7 @@ + static void + error (const char * message) + { +- as_bad (message); ++ as_bad (message,"%s\n"); + err_flag = 1; + } + +@@ -445,7 +445,7 @@ + if (ins_type & ins_err) + error (_(p)); + else +- as_warn (_(p)); ++ as_warn (_(p),"%s\n"); + } + + static void +diff -urNad binutils-z80-2.18.50~/src/gas/listing.c binutils-z80-2.18.50/src/gas/listing.c +--- binutils-z80-2.18.50~/src/gas/listing.c 2008-04-11 11:06:02.000000000 +0200 ++++ binutils-z80-2.18.50/src/gas/listing.c 2008-07-30 20:59:23.000000000 +0200 +@@ -1100,7 +1100,7 @@ + int pos = strlen (field_name); + char **p; + +- fprintf (list_file, field_name); ++ fprintf (list_file, field_name,"%s\n"); + for (p = &argv[1]; *p != NULL; p++) + if (**p == '-') + { --- binutils-z80-2.18.50.orig/debian/control +++ binutils-z80-2.18.50/debian/control @@ -0,0 +1,20 @@ +Source: binutils-z80 +Section: devel +Priority: extra +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Joost Yervante Damad +Standards-Version: 3.7.3 +Build-Depends: autoconf (>= 2.13), bison, flex, gettext, texinfo, binutils (>= 2.9.5.0.12), gcc (>= 2.95.2-1), debhelper (>= 5), tar (>= 1.13.18), bzip2, findutils(>=4.2.31-1), binutils-source (>=2.18.50), dpatch + +Package: binutils-z80 +Section: devel +Architecture: any +Priority: extra +Depends: ${shlibs:Depends} +Suggests: binutils (>= ${source:Version}) +Description: The GNU binary utilities, for the z80-unknown-coff target + The programs in this package are used to assemble, link and manipulate + binary and object files for the Z80 and R800 CPUs. This + package is primarily for Z80 and R800 developers and is not + needed by normal users or developers. + --- binutils-z80-2.18.50.orig/debian/compat +++ binutils-z80-2.18.50/debian/compat @@ -0,0 +1 @@ +5 --- binutils-z80-2.18.50.orig/debian/copyright +++ binutils-z80-2.18.50/debian/copyright @@ -0,0 +1,24 @@ +This is a debian pakcage of the GNU assembler, linker, and binary +utilities compiled for cross develoopment for the avr processor. + +It uses the source as can be found in the binutils-source package. + +Copyright (C) 2007 Free Software Foundation, Inc. + +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 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 with +the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL; +if not, write to the Free Software Foundation, Inc., 51 Franklin Street, +Fifth Floor, Boston, MA 02110-1301 USA + +The packaging is (c) 2007-2008 Joost Yervante Damad +and is also licensed under the GPL, just as binutils. --- binutils-z80-2.18.50.orig/debian/dirs +++ binutils-z80-2.18.50/debian/dirs @@ -0,0 +1,6 @@ +usr/bin +usr/lib + + + + --- binutils-z80-2.18.50.orig/debian/changelog +++ binutils-z80-2.18.50/debian/changelog @@ -0,0 +1,22 @@ +binutils-z80 (2.18.50-0ubuntu1) intrepid; urgency=low + + * Use binutils-2.18.50.tar.bz2 instead of binutils-2.18.0.tar.bz2, there is + a new version of binutils in Ubuntu, fix FTBFS (LP: #253374). + * Add dpatch support. + * Add fix_format_strings.dpatch patch, fix FTBFS. + + -- Devid Filoni Wed, 30 Jul 2008 18:37:01 +0200 + +binutils-z80 (2.18.0-1) unstable; urgency=low + + * use version 2.18.0 instead of 2.18 for soft-link + + -- Joost Yervante Damad Tue, 08 Jan 2008 20:41:35 +0100 + +binutils-z80 (2.18-1) unstable; urgency=low + + * Initial release (closes: #458446) + * removed package dependency on dbs, clean up debian/rules + * package initially based on binutils-avr + + -- Joost Yervante Damad Mon, 31 Dec 2007 13:47:34 +0100 --- binutils-z80-2.18.50.orig/debian/README.debian +++ binutils-z80-2.18.50/debian/README.debian @@ -0,0 +1,4 @@ +To make it possible to have different versions of binutils packages +installed for diffrent targets the locale and most common documentation have +been removed from the cross packages. If you want these files aswell you'll +have to install the same version of the native package as of this package.