~ubuntu-branches/debian/sid/gcc-4.8/sid

« back to all changes in this revision

Viewing changes to .svn/pristine/e3/e38ec52e45e7479f017ff98323f5e8148700d3b1.svn-base

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-12-19 19:48:34 UTC
  • Revision ID: package-import@ubuntu.com-20141219194834-4dz1q7rrn5pad823
Tags: 4.8.4-1
* GCC 4.8.4 release.
  - Fix PR target/61407 (darwin), PR middle-end/58624 (ice),
    PR sanitizer/64265 (wrong code).
* Require recent binutils to pass go test failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
arch_binaries := $(arch_binaries) gdc
 
2
 
 
3
ifeq ($(with_libphobos),yes)
 
4
  arch_binaries += libphobos-dev
 
5
endif
 
6
 
 
7
p_gdc           = gdc$(pkg_ver)$(cross_bin_arch)
 
8
p_libphobos     = libphobos$(pkg_ver)-dev
 
9
 
 
10
d_gdc           = debian/$(p_gdc)
 
11
d_libphobos     = debian/$(p_libphobos)
 
12
 
 
13
ifeq ($(DEB_CROSS),yes)
 
14
  gdc_include_dir := $(gcc_lib_dir)/include/d
 
15
else
 
16
  gdc_include_dir := $(PF)/include/d/$(BASE_VERSION)
 
17
endif
 
18
 
 
19
dirs_gdc = \
 
20
        $(PF)/bin \
 
21
        $(PF)/share/man/man1 \
 
22
        $(gcc_lexec_dir)
 
23
ifneq ($(DEB_CROSS),yes)
 
24
  dirs_gdc += \
 
25
        $(gdc_include_dir)/$(BASE_VERSION)
 
26
endif
 
27
 
 
28
files_gdc = \
 
29
        $(PF)/bin/$(cmd_prefix)gdc$(pkg_ver) \
 
30
        $(gcc_lexec_dir)/cc1d
 
31
ifneq ($(GFDL_INVARIANT_FREE),yes-now-pure-gfdl)
 
32
    files_gdc += \
 
33
        $(PF)/share/man/man1/$(cmd_prefix)gdc$(pkg_ver).1
 
34
endif
 
35
 
 
36
 
 
37
dirs_libphobos = \
 
38
        $(PF)/lib \
 
39
        $(gdc_include_dir) \
 
40
        $(gcc_lib_dir)
 
41
 
 
42
files_libphobos = \
 
43
        $(usr_lib$(2))/libgphobos2.a \
 
44
        $(gdc_include_dir)
 
45
 
 
46
 
 
47
$(binary_stamp)-gdc: $(install_stamp)
 
48
        dh_testdir
 
49
        dh_testroot
 
50
        mv $(install_stamp) $(install_stamp)-tmp
 
51
 
 
52
        rm -rf $(d_gdc)
 
53
        dh_installdirs -p$(p_gdc) $(dirs_gdc)
 
54
 
 
55
        dh_installdocs -p$(p_gdc) src/gcc/d/README
 
56
        dh_installchangelogs -p$(p_gdc) src/gcc/d/ChangeLog
 
57
 
 
58
        DH_COMPAT=2 dh_movefiles -p$(p_gdc) -X/zlib/ $(files_gdc)
 
59
 
 
60
ifneq ($(DEB_CROSS),yes)
 
61
        ln -sf gdc$(pkg_ver) \
 
62
            $(d_gdc)/$(PF)/bin/$(DEB_TARGET_GNU_TYPE)-gdc$(pkg_ver)
 
63
        ln -sf gdc$(pkg_ver) \
 
64
            $(d_gdc)/$(PF)/bin/$(TARGET_ALIAS)-gdc$(pkg_ver)
 
65
  ifneq ($(GFDL_INVARIANT_FREE),yes-now-pure-gfdl)
 
66
        ln -sf gdc$(pkg_ver).1 \
 
67
            $(d_gdc)/$(PF)/share/man/man1/$(DEB_TARGET_GNU_TYPE)-gdc$(pkg_ver).1
 
68
        ln -sf gdc$(pkg_ver).1 \
 
69
            $(d_gdc)/$(PF)/share/man/man1/$(TARGET_ALIAS)-gdc$(pkg_ver).1
 
70
  endif
 
71
endif
 
72
 
 
73
# FIXME: object.di needs to go into a libgdc-dev Multi-Arch: same package
 
74
        # Always needed by gdc.
 
75
        mkdir -p $(d_gdc)/$(gdc_include_dir)
 
76
        cp $(srcdir)/libphobos/libdruntime/object.di \
 
77
            $(d_gdc)/$(gdc_include_dir)/.
 
78
ifneq ($(DEB_CROSS),yes)
 
79
        dh_link -p$(p_gdc) \
 
80
                /$(gdc_include_dir) \
 
81
                /$(dir $(gdc_include_dir))/$(GCC_VERSION)
 
82
endif
 
83
 
 
84
        dh_link -p$(p_gdc) \
 
85
                /$(docdir)/$(p_gcc)/README.Bugs \
 
86
                /$(docdir)/$(p_gdc)/README.Bugs
 
87
 
 
88
        dh_strip -p$(p_gdc)
 
89
        dh_compress -p$(p_gdc)
 
90
        dh_fixperms -p$(p_gdc)
 
91
        dh_shlibdeps -p$(p_gdc)
 
92
        dh_gencontrol -p$(p_gdc) --  -v$(DEB_GDC_VERSION) $(common_substvars)
 
93
        dh_installdeb -p$(p_gdc)
 
94
        dh_md5sums -p$(p_gdc)
 
95
        dh_builddeb -p$(p_gdc)
 
96
 
 
97
        find $(d_gdc) -type d -empty -delete
 
98
 
 
99
        trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp)
 
100
 
 
101
$(binary_stamp)-libphobos: $(install_stamp)
 
102
        dh_testdir
 
103
        dh_testroot
 
104
        mv $(install_stamp) $(install_stamp)-tmp
 
105
 
 
106
        rm -rf $(d_libphobos)
 
107
        dh_installdirs -p$(p_libphobos) $(dirs_libphobos)
 
108
 
 
109
        DH_COMPAT=2 dh_movefiles -p$(p_libphobos) $(files_libphobos)
 
110
 
 
111
        # included in gdc package
 
112
        rm -f $(d_libphobos)/$(gdc_include_dir)/object.di
 
113
 
 
114
ifeq ($(with_separate_gdc),yes)
 
115
        debian/dh_doclink -p$(p_libphobos) $(p_gdc)
 
116
else
 
117
        debian/dh_doclink -p$(p_libphobos) $(p_base)
 
118
endif
 
119
 
 
120
        dh_strip -p$(p_libphobos)
 
121
        dh_compress -p$(p_libphobos)
 
122
        dh_fixperms -p$(p_libphobos)
 
123
        dh_shlibdeps -p$(p_libphobos)
 
124
        dh_gencontrol -p$(p_libphobos) --  -v$(DEB_GDC_VERSION) $(common_substvars)
 
125
        dh_installdeb -p$(p_libphobos)
 
126
        dh_md5sums -p$(p_libphobos)
 
127
        dh_builddeb -p$(p_libphobos)
 
128
 
 
129
        find $(d_libphobos) -type d -empty -delete
 
130
 
 
131
        trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp)
 
132
 
 
133
define __do_libphobos_dev
 
134
        dh_testdir
 
135
        dh_testroot
 
136
        mv $(install_stamp) $(install_stamp)-tmp
 
137
 
 
138
        rm -rf $(d_l)
 
139
        dh_installdirs -p$(p_l) \
 
140
                $(gcc_lib_dir$(2))
 
141
        DH_COMPAT=2 dh_movefiles -p$(p_l) \
 
142
                $(files_libphobos)
 
143
 
 
144
        : # included in gdc package
 
145
        rm -f $(d_l)/$(gdc_include_dir)/object.di
 
146
 
 
147
        debian/dh_doclink -p$(p_l) \
 
148
                $(if $(filter yes,$(with_separate_gdc)),$(p_gdc),$(p_base))
 
149
 
 
150
        dh_compress -p$(p_l)
 
151
        dh_fixperms -p$(p_l)
 
152
        $(cross_gencontrol) dh_gencontrol -p$(p_l) \
 
153
                -- -v$(DEB_VERSION) $(common_substvars)
 
154
        $(call cross_mangle_control,$(p_l))
 
155
        dh_installdeb -p$(p_l)
 
156
        dh_md5sums -p$(p_l)
 
157
        dh_builddeb -p$(p_l)
 
158
 
 
159
        trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp)
 
160
endef
 
161
 
 
162
# don't put this as a comment within define/endef
 
163
#       $(call install_gcc_lib,libphobos,$(PHOBOS_SONAME),$(2),$(p_l))
 
164
 
 
165
do_libphobos_dev = $(call __do_libphobos_dev,lib$(1)phobos-$(BASE_VERSION)-dev,$(1))
 
166
 
 
167
$(binary_stamp)-libphobos-dev: $(install_stamp)
 
168
        $(call do_libphobos_dev,)