Your message dated Fri, 6 Apr 2007 09:17:17 +0200
with message-id <[EMAIL PROTECTED]>
and subject line binutils - please provide binutils-source package
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: binutils
Version: 2.16.1cvs20050902-1
Severity: wishlist

Please provide binutils-source package which contains the current
binutils source to build for example cross assembler from them.

Bastian

-- 
You can't evaluate a man by logic alone.
                -- McCoy, "I, Mudd", stardate 4513.3
diff -urN binutils-2.16.1cvs20050902.orig/debian/changelog 
binutils-2.16.1cvs20050902/debian/changelog
--- binutils-2.16.1cvs20050902.orig/debian/changelog    2005-10-14 
11:09:25.000000000 +0000
+++ binutils-2.16.1cvs20050902/debian/changelog 2005-09-27 19:53:20.000000000 
+0000
@@ -1,3 +1,9 @@
+binutils (2.16.1cvs20050902-1.0source.1) LOCAL; urgency=low
+
+  * Add binutils-source package.
+
+ -- Bastian Blank <[EMAIL PROTECTED]>  Tue, 27 Sep 2005 19:53:19 +0000
+
 binutils (2.16.1cvs20050902-1) unstable; urgency=low
 
   * New upstream CVS snapshot.
diff -urN binutils-2.16.1cvs20050902.orig/debian/control 
binutils-2.16.1cvs20050902/debian/control
--- binutils-2.16.1cvs20050902.orig/debian/control      2005-10-14 
11:09:25.000000000 +0000
+++ binutils-2.16.1cvs20050902/debian/control   2005-09-27 18:27:55.000000000 
+0000
@@ -66,3 +66,11 @@
  This package consists of the documentation for the GNU assembler,
  linker and binary utilities.
 
+Package: binutils-source
+Section: devel
+Architecture: all
+Priority: optional
+Description: Source for the GNU assembler, linker and binary utilities
+ This package contains the source for the GNU assembler, linker and binary
+ utilities.
+
diff -urN binutils-2.16.1cvs20050902.orig/debian/rules 
binutils-2.16.1cvs20050902/debian/rules
--- binutils-2.16.1cvs20050902.orig/debian/rules        2005-10-14 
11:09:25.000000000 +0000
+++ binutils-2.16.1cvs20050902/debian/rules     2005-09-30 19:11:17.000000000 
+0000
@@ -20,6 +20,7 @@
 p_mul = $(p_bin)-multiarch
 p_doc = $(p_bin)-doc
 p_hppa64 = $(p_bin)-hppa64
+p_source = $(p_bin)-source
 
 pwd   := $(shell pwd)
 d     = debian/tmp
@@ -28,6 +29,7 @@
 d_mul = debian/$(p_mul)
 d_doc = debian/$(p_doc)
 d_hppa64 = debian/$(p_hppa64)
+d_source = debian/$(p_source)
 
 install_dir    = install -d -m 755
 install_file   = install -m 644
@@ -49,6 +51,10 @@
 HPPA64_VERSION= $(VERSION)-hppa64
 HPPA64_ARGS   = MAKEOVERRIDES="VERSION=$(HPPA64_VERSION)"
 
+SOURCE_RELEASE := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
+SOURCE_VERSION := $(shell echo $(SOURCE_RELEASE) | sed -e 's,-[^-]*$$,,')
+SOURCE_NAME = binutils-$(SOURCE_VERSION)
+
 ########################################
 
 CONFARGS = --enable-shared --prefix=/usr --build=$(DEB_BUILD_GNU_TYPE) \
@@ -87,10 +93,10 @@
 
 clean: unpatch
        $(checkdir)
-       -rm -fr builddir-multi builddir-single builddir-hppa64
+       -rm -fr builddir-multi builddir-single builddir-hppa64 builddir-source
        -find . -name \*.gmo -o -name \*~ -o -name \*.info | xargs rm -f
        -rm -f $(pwd)/test-summary
-       -rm -fr $(d_bin) $(d_dev) $(d_mul) $(d_doc) $(d_hppa64)
+       -rm -fr $(d_bin) $(d_dev) $(d_mul) $(d_doc) $(d_hppa64) $(d_source)
        -rm -rf debian/patched debian/tmp debian/files debian/substvars
 
 
################################################################################
@@ -173,7 +179,23 @@
                CFLAGS="$(CFLAGS)" $(HPPA64_ARGS)
        touch build-hppa64-stamp
 
-build_stamps = build-single-stamp build-multi-stamp
+################################################################################
+
+##################
+# source targets #
+##################
+
+SOURCE_FILES := $(filter-out debian, $(wildcard *))
+SOURCE_FILES := $(filter-out builddir%, $(SOURCE_FILES))
+SOURCE_FILES := $(filter-out %-stamp, $(SOURCE_FILES))
+
+build-source-stamp:
+       $(checkdir)
+       mkdir -p builddir-source/$(SOURCE_NAME)
+       cp -al $(SOURCE_FILES) builddir-source/$(SOURCE_NAME)
+       touch $@
+
+build_stamps = build-single-stamp build-multi-stamp build-source-stamp
 ifeq ($(DEB_HOST_ARCH),hppa)
        build_stamps += build-hppa64-stamp
 endif
@@ -329,10 +351,21 @@
        gzip -9 $(d_doc)/usr/share/info/*
 
        dpkg-gencontrol -isp -P$(d_doc) -p$(p_doc)
-       chown -R root:root $(d_doc)
-       chmod -R go=rX  $(d_doc)
+
+       $(install_dir) $(d_source)/DEBIAN
+       $(install_dir) $(d_source)/usr/src
+       $(install_dir) $(d_source)/usr/share/doc/$(p_source)/
+       $(install_file) debian/changelog 
$(d_source)/usr/share/doc/$(p_source)/changelog.Debian
+       $(install_file) debian/copyright $(d_source)/usr/share/doc/$(p_source)/
+       cd builddir-source; tar -cjf 
../$(d_source)/usr/src/$(SOURCE_NAME).tar.bz2 $(SOURCE_NAME)
+
+       dpkg-gencontrol -isp -P$(d_source) -p$(p_source)
+
+       chown -R root:root $(d_doc) $(d_source)
+       chmod -R go=rX  $(d_doc) $(d_source)
        [ -x /usr/bin/pkgstriptranslations ] && /usr/bin/pkgstriptranslations 
|| true
        dpkg --build $(d_doc) ..
+       dpkg --build $(d_source) ..
 
 
################################################################################
 

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Version: 2.17.20070210cvs-1

binutils-source built.

--- End Message ---

Reply via email to