--- binutils-h8300-hms-2.16.1.orig/debian/watch +++ binutils-h8300-hms-2.16.1/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://ftp.gnu.org/gnu/binutils/binutils-2.16([\d\.]*).tar.gz --- binutils-h8300-hms-2.16.1.orig/debian/dirs +++ binutils-h8300-hms-2.16.1/debian/dirs @@ -0,0 +1,7 @@ +usr/share/lintian/overrides +usr/share/linda/overrides +usr/share/doc/binutils-h8300-hms +usr/share/doc/binutils-h8300-hms/bfd +usr/share/doc/binutils-h8300-hms/gas +usr/share/doc/binutils-h8300-hms/gprof +usr/share/doc/binutils-h8300-hms/ld --- binutils-h8300-hms-2.16.1.orig/debian/overrides.linda +++ binutils-h8300-hms-2.16.1/debian/overrides.linda @@ -0,0 +1,2 @@ +Tag: non-standard-dir-in-usr +Data: /usr/h8300-hitachi-coff(|/bin) --- binutils-h8300-hms-2.16.1.orig/debian/copyright +++ binutils-h8300-hms-2.16.1/debian/copyright @@ -0,0 +1,406 @@ +This is the Debian GNU/Linux prepackaged version of the GNU assembler, +linker, and binary utilities. + +This package was put together by me, James Troup , +from sources, which I obtained from: + + ftp://ftp.gnu.org/pub/gnu/binutils/ + +It was previously maintained by Christopher C. Chimelis + +GNU Binutils is Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 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; version 2 dated June, 1991. + + 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 St, Fifth Floor, Boston, MA 02110-1301, USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL' +and `/usr/share/common-licenses/LGPL'. + +The binutils manuals and associated documentation are also Copyright +(C) Free Software Foundation, Inc. They are distributed under the GNU +Free Documentation License Version 1.1 or any later version published +by the Free Software Foundation; with no Invariant Sections, with no +Front-Cover Texts, and with no Back-Cover Texts. A copy of the license +is shown below: + +GNU Free Documentation License +****************************** + + Version 1.1, March 2000 + Copyright (C) 2000 Free Software Foundation, Inc. + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + 0. PREAMBLE + + The purpose of this License is to make a manual, textbook, or other + written document "free" in the sense of freedom: to assure everyone + the effective freedom to copy and redistribute it, with or without + modifying it, either commercially or noncommercially. Secondarily, + this License preserves for the author and publisher a way to get + credit for their work, while not being considered responsible for + modifications made by others. + + This License is a kind of "copyleft", which means that derivative + works of the document must themselves be free in the same sense. + It complements the GNU General Public License, which is a copyleft + license designed for free software. + + We have designed this License in order to use it for manuals for + free software, because free software needs free documentation: a + free program should come with manuals providing the same freedoms + that the software does. But this License is not limited to + software manuals; it can be used for any textual work, regardless + of subject matter or whether it is published as a printed book. + We recommend this License principally for works whose purpose is + instruction or reference. + + + 1. APPLICABILITY AND DEFINITIONS + + This License applies to any manual or other work that contains a + notice placed by the copyright holder saying it can be distributed + under the terms of this License. The "Document", below, refers to + any such manual or work. Any member of the public is a licensee, + and is addressed as "you." + + A "Modified Version" of the Document means any work containing the + Document or a portion of it, either copied verbatim, or with + modifications and/or translated into another language. + + A "Secondary Section" is a named appendix or a front-matter + section of the Document that deals exclusively with the + relationship of the publishers or authors of the Document to the + Document's overall subject (or to related matters) and contains + nothing that could fall directly within that overall subject. + (For example, if the Document is in part a textbook of + mathematics, a Secondary Section may not explain any mathematics.) + The relationship could be a matter of historical connection with + the subject or with related matters, or of legal, commercial, + philosophical, ethical or political position regarding them. + + The "Invariant Sections" are certain Secondary Sections whose + titles are designated, as being those of Invariant Sections, in + the notice that says that the Document is released under this + License. + + The "Cover Texts" are certain short passages of text that are + listed, as Front-Cover Texts or Back-Cover Texts, in the notice + that says that the Document is released under this License. + + A "Transparent" copy of the Document means a machine-readable copy, + represented in a format whose specification is available to the + general public, whose contents can be viewed and edited directly + and straightforwardly with generic text editors or (for images + composed of pixels) generic paint programs or (for drawings) some + widely available drawing editor, and that is suitable for input to + text formatters or for automatic translation to a variety of + formats suitable for input to text formatters. A copy made in an + otherwise Transparent file format whose markup has been designed + to thwart or discourage subsequent modification by readers is not + Transparent. A copy that is not "Transparent" is called "Opaque." + + Examples of suitable formats for Transparent copies include plain + ASCII without markup, Texinfo input format, LaTeX input format, + SGML or XML using a publicly available DTD, and + standard-conforming simple HTML designed for human modification. + Opaque formats include PostScript, PDF, proprietary formats that + can be read and edited only by proprietary word processors, SGML + or XML for which the DTD and/or processing tools are not generally + available, and the machine-generated HTML produced by some word + processors for output purposes only. + + The "Title Page" means, for a printed book, the title page itself, + plus such following pages as are needed to hold, legibly, the + material this License requires to appear in the title page. For + works in formats which do not have any title page as such, "Title + Page" means the text near the most prominent appearance of the + work's title, preceding the beginning of the body of the text. + + 2. VERBATIM COPYING + + You may copy and distribute the Document in any medium, either + commercially or noncommercially, provided that this License, the + copyright notices, and the license notice saying this License + applies to the Document are reproduced in all copies, and that you + add no other conditions whatsoever to those of this License. You + may not use technical measures to obstruct or control the reading + or further copying of the copies you make or distribute. However, + you may accept compensation in exchange for copies. If you + distribute a large enough number of copies you must also follow + the conditions in section 3. + + You may also lend copies, under the same conditions stated above, + and you may publicly display copies. + + 3. COPYING IN QUANTITY + + If you publish printed copies of the Document numbering more than + 100, and the Document's license notice requires Cover Texts, you + must enclose the copies in covers that carry, clearly and legibly, + all these Cover Texts: Front-Cover Texts on the front cover, and + Back-Cover Texts on the back cover. Both covers must also clearly + and legibly identify you as the publisher of these copies. The + front cover must present the full title with all words of the + title equally prominent and visible. You may add other material + on the covers in addition. Copying with changes limited to the + covers, as long as they preserve the title of the Document and + satisfy these conditions, can be treated as verbatim copying in + other respects. + + If the required texts for either cover are too voluminous to fit + legibly, you should put the first ones listed (as many as fit + reasonably) on the actual cover, and continue the rest onto + adjacent pages. + + If you publish or distribute Opaque copies of the Document + numbering more than 100, you must either include a + machine-readable Transparent copy along with each Opaque copy, or + state in or with each Opaque copy a publicly-accessible + computer-network location containing a complete Transparent copy + of the Document, free of added material, which the general + network-using public has access to download anonymously at no + charge using public-standard network protocols. If you use the + latter option, you must take reasonably prudent steps, when you + begin distribution of Opaque copies in quantity, to ensure that + this Transparent copy will remain thus accessible at the stated + location until at least one year after the last time you + distribute an Opaque copy (directly or through your agents or + retailers) of that edition to the public. + + It is requested, but not required, that you contact the authors of + the Document well before redistributing any large number of + copies, to give them a chance to provide you with an updated + version of the Document. + + 4. MODIFICATIONS + + You may copy and distribute a Modified Version of the Document + under the conditions of sections 2 and 3 above, provided that you + release the Modified Version under precisely this License, with + the Modified Version filling the role of the Document, thus + licensing distribution and modification of the Modified Version to + whoever possesses a copy of it. In addition, you must do these + things in the Modified Version: + + A. Use in the Title Page (and on the covers, if any) a title + distinct from that of the Document, and from those of previous + versions (which should, if there were any, be listed in the + History section of the Document). You may use the same title + as a previous version if the original publisher of that version + gives permission. + B. List on the Title Page, as authors, one or more persons or + entities responsible for authorship of the modifications in the + Modified Version, together with at least five of the principal + authors of the Document (all of its principal authors, if it + has less than five). + C. State on the Title page the name of the publisher of the + Modified Version, as the publisher. + D. Preserve all the copyright notices of the Document. + E. Add an appropriate copyright notice for your modifications + adjacent to the other copyright notices. + F. Include, immediately after the copyright notices, a license + notice giving the public permission to use the Modified Version + under the terms of this License, in the form shown in the + Addendum below. + G. Preserve in that license notice the full lists of Invariant + Sections and required Cover Texts given in the Document's + license notice. + H. Include an unaltered copy of this License. + I. Preserve the section entitled "History", and its title, and add + to it an item stating at least the title, year, new authors, and + publisher of the Modified Version as given on the Title Page. + If there is no section entitled "History" in the Document, + create one stating the title, year, authors, and publisher of + the Document as given on its Title Page, then add an item + describing the Modified Version as stated in the previous + sentence. + J. Preserve the network location, if any, given in the Document for + public access to a Transparent copy of the Document, and + likewise the network locations given in the Document for + previous versions it was based on. These may be placed in the + "History" section. You may omit a network location for a work + that was published at least four years before the Document + itself, or if the original publisher of the version it refers + to gives permission. + K. In any section entitled "Acknowledgements" or "Dedications", + preserve the section's title, and preserve in the section all the + substance and tone of each of the contributor acknowledgements + and/or dedications given therein. + L. Preserve all the Invariant Sections of the Document, + unaltered in their text and in their titles. Section numbers + or the equivalent are not considered part of the section titles. + M. Delete any section entitled "Endorsements." Such a section + may not be included in the Modified Version. + N. Do not retitle any existing section as "Endorsements" or to + conflict in title with any Invariant Section. + + If the Modified Version includes new front-matter sections or + appendices that qualify as Secondary Sections and contain no + material copied from the Document, you may at your option + designate some or all of these sections as invariant. To do this, + add their titles to the list of Invariant Sections in the Modified + Version's license notice. These titles must be distinct from any + other section titles. + + You may add a section entitled "Endorsements", provided it contains + nothing but endorsements of your Modified Version by various + parties-for example, statements of peer review or that the text has + been approved by an organization as the authoritative definition + of a standard. + + You may add a passage of up to five words as a Front-Cover Text, + and a passage of up to 25 words as a Back-Cover Text, to the end + of the list of Cover Texts in the Modified Version. Only one + passage of Front-Cover Text and one of Back-Cover Text may be + added by (or through arrangements made by) any one entity. If the + Document already includes a cover text for the same cover, + previously added by you or by arrangement made by the same entity + you are acting on behalf of, you may not add another; but you may + replace the old one, on explicit permission from the previous + publisher that added the old one. + + The author(s) and publisher(s) of the Document do not by this + License give permission to use their names for publicity for or to + assert or imply endorsement of any Modified Version. + + 5. COMBINING DOCUMENTS + + You may combine the Document with other documents released under + this License, under the terms defined in section 4 above for + modified versions, provided that you include in the combination + all of the Invariant Sections of all of the original documents, + unmodified, and list them all as Invariant Sections of your + combined work in its license notice. + + The combined work need only contain one copy of this License, and + multiple identical Invariant Sections may be replaced with a single + copy. If there are multiple Invariant Sections with the same name + but different contents, make the title of each such section unique + by adding at the end of it, in parentheses, the name of the + original author or publisher of that section if known, or else a + unique number. Make the same adjustment to the section titles in + the list of Invariant Sections in the license notice of the + combined work. + + In the combination, you must combine any sections entitled + "History" in the various original documents, forming one section + entitled "History"; likewise combine any sections entitled + "Acknowledgements", and any sections entitled "Dedications." You + must delete all sections entitled "Endorsements." + + 6. COLLECTIONS OF DOCUMENTS + + You may make a collection consisting of the Document and other + documents released under this License, and replace the individual + copies of this License in the various documents with a single copy + that is included in the collection, provided that you follow the + rules of this License for verbatim copying of each of the + documents in all other respects. + + You may extract a single document from such a collection, and + distribute it individually under this License, provided you insert + a copy of this License into the extracted document, and follow + this License in all other respects regarding verbatim copying of + that document. + + 7. AGGREGATION WITH INDEPENDENT WORKS + + A compilation of the Document or its derivatives with other + separate and independent documents or works, in or on a volume of + a storage or distribution medium, does not as a whole count as a + Modified Version of the Document, provided no compilation + copyright is claimed for the compilation. Such a compilation is + called an "aggregate", and this License does not apply to the + other self-contained works thus compiled with the Document, on + account of their being thus compiled, if they are not themselves + derivative works of the Document. + + If the Cover Text requirement of section 3 is applicable to these + copies of the Document, then if the Document is less than one + quarter of the entire aggregate, the Document's Cover Texts may be + placed on covers that surround only the Document within the + aggregate. Otherwise they must appear on covers around the whole + aggregate. + + 8. TRANSLATION + + Translation is considered a kind of modification, so you may + distribute translations of the Document under the terms of section + 4. Replacing Invariant Sections with translations requires special + permission from their copyright holders, but you may include + translations of some or all Invariant Sections in addition to the + original versions of these Invariant Sections. You may include a + translation of this License provided that you also include the + original English version of this License. In case of a + disagreement between the translation and the original English + version of this License, the original English version will prevail. + + 9. TERMINATION + + You may not copy, modify, sublicense, or distribute the Document + except as expressly provided for under this License. Any other + attempt to copy, modify, sublicense or distribute the Document is + void, and will automatically terminate your rights under this + License. However, parties who have received copies, or rights, + from you under this License will not have their licenses + terminated so long as such parties remain in full compliance. + + 10. FUTURE REVISIONS OF THIS LICENSE + + The Free Software Foundation may publish new, revised versions of + the GNU Free Documentation License from time to time. Such new + versions will be similar in spirit to the present version, but may + differ in detail to address new problems or concerns. See + http://www.gnu.org/copyleft/. + + Each version of the License is given a distinguishing version + number. If the Document specifies that a particular numbered + version of this License "or any later version" applies to it, you + have the option of following the terms and conditions either of + that specified version or of any later version that has been + published (not as a draft) by the Free Software Foundation. If + the Document does not specify a version number of this License, + you may choose any version ever published (not as a draft) by the + Free Software Foundation. + + +ADDENDUM: How to use this License for your documents +==================================================== + +To use this License in a document you have written, include a copy of +the License in the document and put the following copyright and license +notices just after the title page: + + Copyright (C) YEAR YOUR NAME. + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, Version 1.1 + or any later version published by the Free Software Foundation; + with the Invariant Sections being LIST THEIR TITLES, with the + Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST. + A copy of the license is included in the section entitled "GNU + Free Documentation License." + + If you have no Invariant Sections, write "with no Invariant Sections" +instead of saying which ones are invariant. If you have no Front-Cover +Texts, write "no Front-Cover Texts" instead of "Front-Cover Texts being +LIST"; likewise for Back-Cover Texts. + + If your document contains nontrivial examples of program code, we +recommend releasing these examples in parallel under your choice of +free software license, such as the GNU General Public License, to +permit their use in free software. --- binutils-h8300-hms-2.16.1.orig/debian/control +++ binutils-h8300-hms-2.16.1/debian/control @@ -0,0 +1,18 @@ +Source: binutils-h8300-hms +Section: devel +Priority: standard +Maintainer: Michael Tautschnig +Standards-Version: 3.7.2.0 +Build-Depends: dpkg-dev (>= 1.13.9), autoconf (>= 2.13), bison, flex, gettext, texinfo, binutils (>= 2.9.5.0.12), gcc (>= 2.95.2-1), dejagnu (>= 1.4.2-1.1), expect-tcl8.3 (>= 5.32.2-1), dpatch, file, debhelper (>= 4.0.0), autotools-dev + +Package: binutils-h8300-hms +Architecture: any +Depends: binutils, ${shlibs:Depends} +Suggests: binutils-doc (= ${Source-Version}) +Priority: extra +Description: The GNU binary utilities, for h8300-hitachi-coff target + This package provides GNU assembler, linker and binary utilities + for h8300-hitachi-coff target, for use in a cross-compilation environment. + . + You don't need this package unless you plan to cross-compile programs + for h8300-hitachi-coff. --- binutils-h8300-hms-2.16.1.orig/debian/README.Debian +++ binutils-h8300-hms-2.16.1/debian/README.Debian @@ -0,0 +1,26 @@ +Kernel link failure info +------------------------ + +You may experience problems linking older (and some newer) kernels +with this version of binutils. This is not because of a bug in the +linker, but rather a bug in the kernel source. This is being worked +out and fixed by the upstream kernel group in newer kernels, but not +all of the problems may have been fixed at this time. Older kernel +versions will almost always exhibit the problem, however, and no +attempts are being made to fix those that we know of. + +There are a few work-arounds, but the most reliable is to edit the +linker script for your architecture (e.g. arch/i386/vmlinux.lds) and +remove the '*(.text.exit)' entry from the 'DISCARD' line. It will +bloat the kernel somewhat, but it should link properly. + +The ld -oformat option has been replaced +---------------------------------------- + +The ld command-line option '-oformat' has been completely replaced by +'--oformat' in newer binutils. This may cause problems when linking +older kernel versions on i386 which still use the '-oformat' syntax in +arch/boot/Makefile. + +If you encounter problems, edit arch/boot/Makefile in your kernel +source and change '-oformat' to '--oformat'. --- binutils-h8300-hms-2.16.1.orig/debian/overrides.lintian +++ binutils-h8300-hms-2.16.1/debian/overrides.lintian @@ -0,0 +1,46 @@ +# Directory usr/h8300-hitachi-coff is considered as non standard by lintian, however it +# is a standard dir for cross-compilers +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/bin/ar +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/bin/as +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/bin/ld +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/bin/nm +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/bin/objdump +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/bin/ranlib +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/bin/strip +binutils-h8300-hms: non-standard-dir-in-usr usr/h8300-hitachi-coff/ +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300sn.x +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300sxn.xbn +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300h.xn +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300.xu +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300sx.xr +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300.xn +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300sn.xbn +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300.xr +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300.xbn +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300sxn.xu +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300s.x +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300s.xr +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300hn.xbn +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300sn.xr +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300h.xu +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300hn.xr +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300s.xn +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300s.xbn +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300h.xr +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300sxn.x +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300sx.xbn +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300h.xbn +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300sx.xu +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300sxn.xr +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300sn.xn +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300sn.xu +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300hn.xn +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300s.xu +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300sxn.xn +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300.x +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300h.x +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300hn.x +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300sx.xn +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300sx.x +binutils-h8300-hms: file-in-unusual-dir usr/h8300-hitachi-coff/lib/ldscripts/h8300hn.xu + --- binutils-h8300-hms-2.16.1.orig/debian/rules +++ binutils-h8300-hms-2.16.1/debian/rules @@ -0,0 +1,132 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +################################################################################ + +include /usr/share/dpatch/dpatch.make + +################################################################################ + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) + +TARGET = h8300-hitachi-coff + +# TODO package name should be changed in the future +p_cross = binutils-h8300-hms + +configure: configure-stamp +configure-stamp: patch-stamp + dh_testdir + + ln -sf /usr/share/misc/config.sub . + ln -sf /usr/share/misc/config.guess . + mkdir builddir-$(TARGET) + cd builddir-$(TARGET) && \ + env CC="$(CC)" ../configure --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --build=$(DEB_BUILD_GNU_TYPE) \ + --host=$(DEB_HOST_GNU_TYPE) \ + --target=$(TARGET) + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + cd builddir-$(TARGET) && $(MAKE) + touch build-stamp + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/$(p_cross) + cd builddir-$(TARGET) && \ + $(MAKE) install prefix=$(CURDIR)/debian/$(p_cross)/usr \ + mandir=$(CURDIR)/debian/$(p_cross)/usr/share/man \ + infodir=$(CURDIR)/debian/$(p_cross)/usr/share/info + + for i in $(CURDIR)/debian/$(p_cross)/usr/bin/$(TARGET)-* ; do \ + ln -s `basename $$i` $(CURDIR)/debian/$(p_cross)/usr/bin/h8300-hms-`echo $$i | sed 's/.*$(TARGET)-//'` ; \ + ln -s `basename $$i`.1 $(CURDIR)/debian/$(p_cross)/usr/share/man/man1/h8300-hms-`echo $$i | sed 's/.*$(TARGET)-//'`.1 ; \ + done + + # Files also in main binutils pkg + rm -rf $(CURDIR)/debian/$(p_cross)/usr/include + rm -rf $(CURDIR)/debian/$(p_cross)/usr/lib + rm -rf $(CURDIR)/debian/$(p_cross)/usr/share/info + rm -rf $(CURDIR)/debian/$(p_cross)/usr/share/locale + + # install documentation + install -p -o root -g root -m 644 binutils/NEWS \ + $(CURDIR)/debian/$(p_cross)/usr/share/doc/$(p_cross)/NEWS + install -p -o root -g root -m 644 binutils/MAINTAINERS \ + $(CURDIR)/debian/$(p_cross)/usr/share/doc/$(p_cross)/MAINTAINERS + for pkg in bfd gas gprof ld; do \ + for f in ChangeLog NEWS README PORTING MAINTAINERS TODO ; do \ + [ -f $$pkg/$$f ] || continue ; \ + install -p -o root -g root -m 644 $$pkg/$$f \ + $(CURDIR)/debian/$(p_cross)/usr/share/doc/$(p_cross)/$$pkg/$$f ; \ + done ; \ + done + + # Override files + install -p -o root -g root -m 644 $(CURDIR)/debian/overrides.lintian \ + $(CURDIR)/debian/$(p_cross)/usr/share/lintian/overrides/$(p_cross) + install -p -o root -g root -m 644 $(CURDIR)/debian/overrides.linda \ + $(CURDIR)/debian/$(p_cross)/usr/share/linda/overrides/$(p_cross) + +clean: unpatch + dh_testdir + dh_testroot + rm -rf builddir-$(TARGET) + rm -rf debian/patched + rm -f build-stamp configure-stamp + + dh_clean + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs +# dh_installexamples +# dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron + dh_installman +# dh_installinfo + dh_installchangelogs binutils/ChangeLog + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- binutils-h8300-hms-2.16.1.orig/debian/NEWS +++ binutils-h8300-hms-2.16.1/debian/NEWS @@ -0,0 +1,8 @@ +binutils-h8300-hms (2.16.1-1) unstable; urgency=medium + + The target this package is build for is now h8300-hitachi-coff, thus the + binaries are now named h8300-hitachi-coff-*. For convenience, symlinks are + provided. + + -- Michael Tautschnig Mon, 30 Oct 2006 00:11:42 +0100 + --- binutils-h8300-hms-2.16.1.orig/debian/changelog +++ binutils-h8300-hms-2.16.1/debian/changelog @@ -0,0 +1,75 @@ +binutils-h8300-hms (2.16.1-1) unstable; urgency=medium + + * New maintainer (closes: #387772) + * Complete rebuild based on version 2.16.1 of binutils + * The debian/ directory is based on the version 2.17 of the binutils Debian + binutils package and binutils-m68hc1x-2.15+3.1. Thanks! + * Use symbolic links instead of hardlinks from /usr/h8300-hitachi-coff/bin + to /usr/bin + * ln -s to /usr/share/misc/config.{sub,guess} and build-depend on + autotools-dev + * added override as this is cross-compiler package and thus + /usr/h8300-hitachi-coff/ is acceptable + + -- Michael Tautschnig Mon, 30 Oct 2006 00:11:42 +0100 + +binutils-h8300-hms (2.9.5.0.37.ds-1) unstable; urgency=low + + * QA upload orphaning the package (see #387772). + * Repack source to have an .orig.tar.gz. + * Bump Standards-Version and debhelper level. + + -- Christoph Berg Wed, 25 Oct 2006 11:52:27 +0200 + +binutils-h8300-hms (2.9.5.0.37.5.2) unstable; urgency=low + + * NMU. + * Update config.{sub,guess} from autotools-dev at build time (closes: + bug#251648). + * Fixed the host argument given to configure (closes: bug#324553). + + -- Aurelien Jarno Mon, 12 Sep 2005 21:34:05 +0200 + +binutils-h8300-hms (2.9.5.0.37.5.1) unstable; urgency=low + + * NMU (RC bug more than 6 months old). + * debian/control: + + Set policy to 3.5.10. + + Changed flex build dependency to flex-old (Closes: #166897). + + Short description is no longer a full sentence. + + -- Sam Hocevar (Debian packages) Thu, 5 Jun 2003 13:25:24 +0200 + +binutils-h8300-hms (2.9.5.0.37.5) unstable; urgency=low + + * Update to latest policy version + + -- Stephen M Moraco Mon, 7 Oct 2002 20:55:44 -0600 + +binutils-h8300-hms (2.9.5.0.37.4) unstable; urgency=low + + * Add bison/flex to build depends (Closes: Bug#102282) + + -- Stephen M Moraco Mon, 25 Jun 2001 21:02:30 -0600 + +binutils-h8300-hms (2.9.5.0.37.3) unstable; urgency=low + + * Fix build-depends (Closes: Bug#101423) + * Fix lintian warn: removed use of dh_testversion + + -- Stephen M Moraco Sat, 23 Jun 2001 16:36:07 -0600 + +binutils-h8300-hms (2.9.5.0.37.2) unstable; urgency=low + + * Repair package numbering, normal debian package + * Move to extra from optional + * Remove suggest of task (we are not doing task pkg) + + -- Stephen M Moraco Sat, 27 Jan 2001 21:05:04 -0700 + +binutils-h8300-hms (2.9.5.0.37.1) unstable; urgency=low + + * Initial Release; feedback appreciated. + + -- Stephen M Moraco Fri, 22 Dec 2000 21:04:31 -0700 + --- binutils-h8300-hms-2.16.1.orig/debian/patches/00list +++ binutils-h8300-hms-2.16.1/debian/patches/00list @@ -0,0 +1,9 @@ +000_print_debian_version +001_ld_makefile_patch +002_gprof_profile_arcs +003_gprof_see_also_monitor +006_better_file_error +012_check_ldrunpath_length +121_i386_x86_64_biarch +127_x86_64_i386_biarch +128_ln_s_makefiles.dpatch --- binutils-h8300-hms-2.16.1.orig/debian/patches/001_ld_makefile_patch.dpatch +++ binutils-h8300-hms-2.16.1/debian/patches/001_ld_makefile_patch.dpatch @@ -0,0 +1,52 @@ +#!/bin/sh -e +## 001_ld_makefile_patch.dpatch +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Description: correct where ld scripts are installed +## DP: Author: Chris Chimelis +## DP: Upstream status: N/A +## DP: Date: ?? + +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch}" + +case "$1" in + -patch) patch $patch_opts -p1 < $0;; + -unpatch) patch $patch_opts -p1 -R < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +@DPATCH@ +diff -urNad --exclude=CVS --exclude=.svn ./ld/Makefile.am /tmp/dpep-work.eKU2vW/binutils-2.16.1cvs20050902/ld/Makefile.am +--- ./ld/Makefile.am 2005-08-31 03:27:36.000000000 +0000 ++++ /tmp/dpep-work.eKU2vW/binutils-2.16.1cvs20050902/ld/Makefile.am 2005-09-02 21:42:18.000000000 +0000 +@@ -20,7 +20,7 @@ + # We put the scripts in the directory $(scriptdir)/ldscripts. + # We can't put the scripts in $(datadir) because the SEARCH_DIR + # directives need to be different for native and cross linkers. +-scriptdir = $(tooldir)/lib ++scriptdir = $(libdir) + + EMUL = @EMUL@ + EMULATION_OFILES = @EMULATION_OFILES@ +diff -urNad --exclude=CVS --exclude=.svn ./ld/Makefile.in /tmp/dpep-work.eKU2vW/binutils-2.16.1cvs20050902/ld/Makefile.in +--- ./ld/Makefile.in 2005-08-31 03:27:36.000000000 +0000 ++++ /tmp/dpep-work.eKU2vW/binutils-2.16.1cvs20050902/ld/Makefile.in 2005-09-02 21:43:37.259127535 +0000 +@@ -139,7 +139,7 @@ + # We put the scripts in the directory $(scriptdir)/ldscripts. + # We can't put the scripts in $(datadir) because the SEARCH_DIR + # directives need to be different for native and cross linkers. +-scriptdir = $(tooldir)/lib ++scriptdir = $(libdir) + + EMUL = @EMUL@ + EMULATION_OFILES = @EMULATION_OFILES@ --- binutils-h8300-hms-2.16.1.orig/debian/patches/121_i386_x86_64_biarch.dpatch +++ binutils-h8300-hms-2.16.1/debian/patches/121_i386_x86_64_biarch.dpatch @@ -0,0 +1,39 @@ +#!/bin/sh -e +## 121_i386_x86_64_biarch.dpatch +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Description: Identify this version of binutils as being from Debian. +## DP: Author: Jeff Bailey +## DP: Upstream status: N/A +## DP: Date: ?? + +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch}" + +case "$1" in + -patch) patch $patch_opts -p1 < $0;; + -unpatch) patch $patch_opts -p1 -R < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +@DPATCH@ +--- binutils/ld/emulparams/elf_x86_64.sh 2005-08-06 01:21:24.709639856 +0000 ++++ binutils/ld/emulparams/elf_x86_64.sh 2005-08-06 01:22:30.127694800 +0000 +@@ -24,7 +24,7 @@ + # Linux modify the default library search path to first include + # a 64-bit specific directory. + case "$target" in +- x86_64*-linux*) ++ x86_64*-linux* | i[3-7]86*-linux*) + case "$EMULATION_NAME" in + *64*) LIBPATH_SUFFIX=64 ;; + esac --- binutils-h8300-hms-2.16.1.orig/debian/patches/128_ln_s_makefiles.dpatch +++ binutils-h8300-hms-2.16.1/debian/patches/128_ln_s_makefiles.dpatch @@ -0,0 +1,100 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 128_ln_s_makefiles.dpatch +## +## DP: Description: Use $(LN_S) instead of hardcoded ln for linking +## DP: between /usr/bin and /usr/h8300-hitachi-coff/bin +## DP: Author: Michael Tautschnig +## DP: Upstream status: N/A + +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch}" + +case "$1" in + -patch) patch $patch_opts -p1 < $0;; + -unpatch) patch $patch_opts -p1 -R < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +@DPATCH@ + +diff -urN binutils-h8300-hms-2.16.1/binutils/Makefile.am binutils-h8300-hms-2.16.1.patched/binutils/Makefile.am +--- binutils-h8300-hms-2.16.1/binutils/Makefile.am 2005-02-22 13:57:26.000000000 +0100 ++++ binutils-h8300-hms-2.16.1.patched/binutils/Makefile.am 2006-10-30 01:01:24.000000000 +0100 +@@ -352,7 +352,7 @@ + k=`echo $$j | sed '$(transform)'`; \ + if [ "$(bindir)/$$k" != "$(tooldir)/bin/$$j" ]; then \ + rm -f $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \ +- ln $(DESTDIR)$(bindir)/$$k$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \ ++ $(LN_S) $(DESTDIR)$(bindir)/$$k$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \ + || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \ + fi; \ + else true; \ +diff -urN binutils-h8300-hms-2.16.1/binutils/Makefile.in binutils-h8300-hms-2.16.1.patched/binutils/Makefile.in +--- binutils-h8300-hms-2.16.1/binutils/Makefile.in 2005-02-22 13:57:27.000000000 +0100 ++++ binutils-h8300-hms-2.16.1.patched/binutils/Makefile.in 2006-10-30 01:01:35.000000000 +0100 +@@ -1091,7 +1091,7 @@ + k=`echo $$j | sed '$(transform)'`; \ + if [ "$(bindir)/$$k" != "$(tooldir)/bin/$$j" ]; then \ + rm -f $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \ +- ln $(DESTDIR)$(bindir)/$$k$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \ ++ $(LN_S) $(DESTDIR)$(bindir)/$$k$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \ + || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \ + fi; \ + else true; \ +diff -urN binutils-h8300-hms-2.16.1/gas/Makefile.am binutils-h8300-hms-2.16.1.patched/gas/Makefile.am +--- binutils-h8300-hms-2.16.1/gas/Makefile.am 2005-03-22 16:31:44.000000000 +0100 ++++ binutils-h8300-hms-2.16.1.patched/gas/Makefile.am 2006-10-30 01:00:59.000000000 +0100 +@@ -711,7 +711,7 @@ + n=`echo as | sed '$(transform)'`; \ + if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/as$(EXEEXT)" ]; then \ + rm -f $(DESTDIR)$(tooldir)/bin/as$(EXEEXT); \ +- ln $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(tooldir)/bin/as$(EXEEXT) >/dev/null 2>/dev/null \ ++ $(LN_S) $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(tooldir)/bin/as$(EXEEXT) >/dev/null 2>/dev/null \ + || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) as-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/as$(EXEEXT); \ + else \ + true ; \ +diff -urN binutils-h8300-hms-2.16.1/gas/Makefile.in binutils-h8300-hms-2.16.1.patched/gas/Makefile.in +--- binutils-h8300-hms-2.16.1/gas/Makefile.in 2005-04-29 15:57:16.000000000 +0200 ++++ binutils-h8300-hms-2.16.1.patched/gas/Makefile.in 2006-10-30 01:01:11.000000000 +0100 +@@ -3115,7 +3115,7 @@ + n=`echo as | sed '$(transform)'`; \ + if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/as$(EXEEXT)" ]; then \ + rm -f $(DESTDIR)$(tooldir)/bin/as$(EXEEXT); \ +- ln $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(tooldir)/bin/as$(EXEEXT) >/dev/null 2>/dev/null \ ++ $(LN_S) $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(tooldir)/bin/as$(EXEEXT) >/dev/null 2>/dev/null \ + || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) as-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/as$(EXEEXT); \ + else \ + true ; \ +diff -urN binutils-h8300-hms-2.16.1/ld/Makefile.am binutils-h8300-hms-2.16.1.patched/ld/Makefile.am +--- binutils-h8300-hms-2.16.1/ld/Makefile.am 2005-01-20 20:37:49.000000000 +0100 ++++ binutils-h8300-hms-2.16.1.patched/ld/Makefile.am 2006-10-30 00:59:43.000000000 +0100 +@@ -1671,7 +1671,7 @@ + n=`echo ld | sed '$(transform)'`; \ + if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/ld$(EXEEXT)" ]; then \ + rm -f $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \ +- ln $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \ ++ $(LN_S) $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \ + || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \ + fi + +diff -urN binutils-h8300-hms-2.16.1/ld/Makefile.in binutils-h8300-hms-2.16.1.patched/ld/Makefile.in +--- binutils-h8300-hms-2.16.1/ld/Makefile.in 2005-01-23 06:36:37.000000000 +0100 ++++ binutils-h8300-hms-2.16.1.patched/ld/Makefile.in 2006-10-30 01:00:17.000000000 +0100 +@@ -2388,7 +2388,7 @@ + n=`echo ld | sed '$(transform)'`; \ + if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/ld$(EXEEXT)" ]; then \ + rm -f $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \ +- ln $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \ ++ $(LN_S) $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \ + || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \ + fi + --- binutils-h8300-hms-2.16.1.orig/debian/patches/012_check_ldrunpath_length.dpatch +++ binutils-h8300-hms-2.16.1/debian/patches/012_check_ldrunpath_length.dpatch @@ -0,0 +1,47 @@ +#!/bin/sh -e +## 012_check_ldrunpath_length.dpatch by Chris Chimelis +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Only generate an RPATH entry if LD_RUN_PATH is not empty, for +## DP: cases where -rpath isn't specified. (#151024) + +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch}" + +case "$1" in + -patch) patch $patch_opts -p1 < $0;; + -unpatch) patch $patch_opts -p1 -R < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +@DPATCH@ +diff -urNad binutils-2.16/ld/emultempl/elf32.em /tmp/dpep.u3SQkH/binutils-2.16/ld/emultempl/elf32.em +--- binutils-2.16/ld/emultempl/elf32.em 2005-04-13 19:59:07.000000000 +0200 ++++ /tmp/dpep.u3SQkH/binutils-2.16/ld/emultempl/elf32.em 2005-05-06 19:18:08.236669718 +0200 +@@ -885,6 +885,8 @@ + && command_line.rpath == NULL) + { + lib_path = (const char *) getenv ("LD_RUN_PATH"); ++ if ((lib_path) && (strlen (lib_path) == 0)) ++ lib_path = NULL; + if (gld${EMULATION_NAME}_search_needed (lib_path, &n, + force)) + break; +@@ -1059,6 +1061,8 @@ + rpath = command_line.rpath; + if (rpath == NULL) + rpath = (const char *) getenv ("LD_RUN_PATH"); ++ if ((rpath) && (strlen (rpath) == 0)) ++ rpath = NULL; + if (! (bfd_elf_size_dynamic_sections + (output_bfd, command_line.soname, rpath, + command_line.filter_shlib, --- binutils-h8300-hms-2.16.1.orig/debian/patches/006_better_file_error.dpatch +++ binutils-h8300-hms-2.16.1/debian/patches/006_better_file_error.dpatch @@ -0,0 +1,43 @@ +#!/bin/sh -e +## 006_better_file_error.dpatch by David Kimdon +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Specify which filename is causing an error if the filename is a +## DP: directory. (#45832) + +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch}" + +case "$1" in + -patch) patch $patch_opts -p1 < $0;; + -unpatch) patch $patch_opts -p1 -R < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +@DPATCH@ +diff -urNad /home/james/debian/packages/binutils/binutils-2.14.90.0.6/bfd/opncls.c binutils-2.14.90.0.6/bfd/opncls.c +--- /home/james/debian/packages/binutils/binutils-2.14.90.0.6/bfd/opncls.c 2003-07-23 16:08:09.000000000 +0100 ++++ binutils-2.14.90.0.6/bfd/opncls.c 2003-09-10 22:35:00.000000000 +0100 +@@ -150,6 +150,13 @@ + { + bfd *nbfd; + const bfd_target *target_vec; ++ struct stat s; ++ ++ if (stat (filename, &s) == 0) ++ if (S_ISDIR(s.st_mode)) { ++ bfd_set_error (bfd_error_file_not_recognized); ++ return NULL; ++ } + + nbfd = _bfd_new_bfd (); + if (nbfd == NULL) --- binutils-h8300-hms-2.16.1.orig/debian/patches/002_gprof_profile_arcs.dpatch +++ binutils-h8300-hms-2.16.1/debian/patches/002_gprof_profile_arcs.dpatch @@ -0,0 +1,51 @@ +#!/bin/sh -e +## 003_gmon_manpage_fix.dpatch by Chris Chimelis +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Add more documentation about profiling and -fprofile-arcs. + +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch}" + +case "$1" in + -patch) patch $patch_opts -p1 < $0;; + -unpatch) patch $patch_opts -p1 -R < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +@DPATCH@ +diff -urNad binutils-2.16/gprof/gprof.texi /tmp/dpep.NHuhql/binutils-2.16/gprof/gprof.texi +--- binutils-2.16/gprof/gprof.texi 2005-03-03 13:05:12.000000000 +0100 ++++ /tmp/dpep.NHuhql/binutils-2.16/gprof/gprof.texi 2005-05-06 19:14:10.038173569 +0200 +@@ -138,6 +138,10 @@ + If more than one profile file is specified, the @code{gprof} + output shows the sum of the profile information in the given profile files. + ++If you use gcc 2.95.x or 3.0 to compile your binaries, you may need ++to add the @samp{-fprofile-arcs} to the compile command line in order ++for the call graphs to be properly stored in gmon.out. ++ + @code{Gprof} calculates the amount of time spent in each routine. + Next, these times are propagated along the edges of the call graph. + Cycles are discovered, and calls into a cycle are made to share the time +@@ -268,6 +272,11 @@ + options. The same option, @samp{-pg}, alters either compilation or linking + to do what is necessary for profiling. Here are examples: + ++If you use gcc 2.95.x or 3.0.x, you may need to add the ++@samp{-fprofile-arcs} option to the compile line along with @samp{-pg} ++in order to allow the call-graphs to be properly included in the gmon.out ++file. ++ + @example + cc -g -c myprog.c utils.c -pg + cc -o myprog myprog.o utils.o -pg --- binutils-h8300-hms-2.16.1.orig/debian/patches/003_gprof_see_also_monitor.dpatch +++ binutils-h8300-hms-2.16.1/debian/patches/003_gprof_see_also_monitor.dpatch @@ -0,0 +1,37 @@ +#!/bin/sh -e +## 014_gprof_manpage_fix.dpatch by Chris Chimelis +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Don't mention monitor(3) which doesn't exist in Debian. (#160654) + +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch}" + +case "$1" in + -patch) patch $patch_opts -p1 < $0;; + -unpatch) patch $patch_opts -p1 -R < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +@DPATCH@ +diff -urNad /home/james/debian/packages/binutils/binutils-2.14.90.0.6/gprof/gprof.texi binutils-2.14.90.0.6/gprof/gprof.texi +--- /home/james/debian/packages/binutils/binutils-2.14.90.0.6/gprof/gprof.texi 2002-08-02 01:49:32.000000000 +0100 ++++ binutils-2.14.90.0.6/gprof/gprof.texi 2003-09-10 22:42:37.000000000 +0100 +@@ -181,7 +181,7 @@ + @c man end + + @c man begin SEEALSO +-monitor(3), profil(2), cc(1), prof(1), and the Info entry for @file{gprof}. ++profil(2), cc(1), prof(1), and the Info entry for @file{gprof}. + + ``An Execution Profiler for Modular Programs'', + by S. Graham, P. Kessler, M. McKusick; --- binutils-h8300-hms-2.16.1.orig/debian/patches/000_print_debian_version.dpatch +++ binutils-h8300-hms-2.16.1/debian/patches/000_print_debian_version.dpatch @@ -0,0 +1,66 @@ +#!/bin/sh -e +## 000_print_debian_version.dpatch +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Description: Identify this version of binutils as being from Debian. +## DP: Author: Chris Chimelis +## DP: Upstream status: N/A +## DP: Date: ?? + +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch}" + +case "$1" in + -patch) patch $patch_opts -p1 < $0;; + -unpatch) patch $patch_opts -p1 -R < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +@DPATCH@ +diff -urNad binutils-2.16/bfd/Makefile.am /tmp/dpep.59jFIB/binutils-2.16/bfd/Makefile.am +--- binutils-2.16/bfd/Makefile.am 2005-05-06 20:09:53.040727567 +0200 ++++ /tmp/dpep.59jFIB/binutils-2.16/bfd/Makefile.am 2005-05-06 20:11:05.611847182 +0200 +@@ -882,12 +882,12 @@ + bfdver.h: $(srcdir)/version.h $(srcdir)/Makefile.in + @echo "creating $@" + @bfd_version=`echo "$(VERSION)" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\ +- bfd_version_string="\"$(VERSION)\"" ;\ ++ bfd_version_string="\"$(VERSION) Debian GNU/Linux\"" ;\ + if test "x$(RELEASE)" = x ; then \ + bfd_version_date=`sed -n -e 's/.*DATE //p' < $(srcdir)/version.h` ;\ +- bfd_version_string="\"$(VERSION) $${bfd_version_date}\"" ;\ ++ bfd_version_string="\"$(VERSION) $${bfd_version_date} Debian GNU/Linux\"" ;\ + fi ;\ +- sed -e "s/@bfd_version@/$$bfd_version/" -e "s/@bfd_version_string@/$$bfd_version_string/" < $(srcdir)/version.h > $@ ++ sed -e "s,@bfd_version@,$$bfd_version," -e "s,@bfd_version_string@,$$bfd_version_string," < $(srcdir)/version.h > $@ + + # What appears below is generated by a hacked mkdep using gcc -MM. + +diff -urNad binutils-2.16/bfd/Makefile.in /tmp/dpep.59jFIB/binutils-2.16/bfd/Makefile.in +--- binutils-2.16/bfd/Makefile.in 2005-05-06 20:09:53.041727266 +0200 ++++ /tmp/dpep.59jFIB/binutils-2.16/bfd/Makefile.in 2005-05-06 20:11:23.311510791 +0200 +@@ -1450,12 +1450,12 @@ + bfdver.h: $(srcdir)/version.h $(srcdir)/Makefile.in + @echo "creating $@" + @bfd_version=`echo "$(VERSION)" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\ +- bfd_version_string="\"$(VERSION)\"" ;\ ++ bfd_version_string="\"$(VERSION) Debian GNU/Linux\"" ;\ + if test "x$(RELEASE)" = x ; then \ + bfd_version_date=`sed -n -e 's/.*DATE //p' < $(srcdir)/version.h` ;\ +- bfd_version_string="\"$(VERSION) $${bfd_version_date}\"" ;\ ++ bfd_version_string="\"$(VERSION) $${bfd_version_date} Debian GNU/Linux\"" ;\ + fi ;\ +- sed -e "s/@bfd_version@/$$bfd_version/" -e "s/@bfd_version_string@/$$bfd_version_string/" < $(srcdir)/version.h > $@ ++ sed -e "s,@bfd_version@,$$bfd_version," -e "s,@bfd_version_string@,$$bfd_version_string," < $(srcdir)/version.h > $@ + + # What appears below is generated by a hacked mkdep using gcc -MM. + --- binutils-h8300-hms-2.16.1.orig/debian/patches/127_x86_64_i386_biarch.dpatch +++ binutils-h8300-hms-2.16.1/debian/patches/127_x86_64_i386_biarch.dpatch @@ -0,0 +1,42 @@ +#!/bin/sh -e +## 127_x86_64_i386_biarch.dpatch +## +## DP: Description: Add (/usr)/lib32 to the search paths on x86_64. +## DP: Author: Aurelien Jarno +## DP: Upstream status: Debian specific + +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch}" + +case "$1" in + -patch) patch $patch_opts -p1 < $0;; + -unpatch) patch $patch_opts -p1 -R < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +@DPATCH@ +--- binutils/ld/emulparams/elf_i386.sh ++++ binutils/ld/emulparams/elf_i386.sh +@@ -12,3 +12,13 @@ + GENERATE_PIE_SCRIPT=yes + NO_SMALL_DATA=yes + SEPARATE_GOTPLT=12 ++ ++# Linux modify the default library search path to first include ++# a 32-bit specific directory. ++case "$target" in ++ x86_64*-linux* | i[3-7]86*-linux*) ++ case "$EMULATION_NAME" in ++ *i386*) LIBPATH_SUFFIX=32 ;; ++ esac ++ ;; ++esac --- binutils-h8300-hms-2.16.1.orig/debian/compat +++ binutils-h8300-hms-2.16.1/debian/compat @@ -0,0 +1 @@ +4