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

« back to all changes in this revision

Viewing changes to .svn/pristine/ae/ae05189470a0ae5b98c0a764bafa423896ca6c73.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
 
5
endif
 
6
 
 
7
p_gdc           = gdc$(pkg_ver)
 
8
p_libphobos     = libphobos$(pkg_ver)-dev
 
9
 
 
10
d_gdc           = debian/$(p_gdc)
 
11
d_libphobos     = debian/$(p_libphobos)
 
12
 
 
13
gdc_include_dir := $(PF)/include/d
 
14
 
 
15
dirs_gdc = \
 
16
        $(PF)/bin \
 
17
        $(PF)/share/man/man1 \
 
18
        $(gdc_include_dir)/$(BASE_VERSION) \
 
19
        $(gcc_lexec_dir)
 
20
 
 
21
files_gdc = \
 
22
        $(PF)/bin/$(cmd_prefix)gdc$(pkg_ver) \
 
23
        $(gcc_lexec_dir)/cc1d
 
24
ifneq ($(GFDL_INVARIANT_FREE),yes-now-pure-gfdl)
 
25
    files_gdc += \
 
26
        $(PF)/share/man/man1/$(cmd_prefix)gdc$(pkg_ver).1
 
27
endif
 
28
 
 
29
 
 
30
dirs_libphobos = \
 
31
        $(PF)/lib \
 
32
        $(gdc_include_dir)/$(BASE_VERSION) \
 
33
        $(gcc_lib_dir)
 
34
 
 
35
files_libphobos = \
 
36
        $(PF)/$(libdir)/libgphobos2.a \
 
37
        $(gdc_include_dir)/$(BASE_VERSION)
 
38
 
 
39
links_gdc = \
 
40
        /$(gdc_include_dir)/$(BASE_VERSION) \
 
41
                /$(gdc_include_dir)/$(GCC_VERSION) \
 
42
        /$(docdir)/$(p_gcc)/README.Bugs \
 
43
                /$(docdir)/$(p_gdc)/README.Bugs
 
44
 
 
45
 
 
46
$(binary_stamp)-gdc: $(install_stamp)
 
47
        dh_testdir
 
48
        dh_testroot
 
49
        mv $(install_stamp) $(install_stamp)-tmp
 
50
 
 
51
        rm -rf $(d_gdc)
 
52
        dh_installdirs -p$(p_gdc) $(dirs_gdc)
 
53
 
 
54
        dh_installdocs -p$(p_gdc) src/gcc/d/README
 
55
        dh_installchangelogs -p$(p_gdc) src/gcc/d/ChangeLog
 
56
 
 
57
        DH_COMPAT=2 dh_movefiles -p$(p_gdc) -X/zlib/ $(files_gdc)
 
58
 
 
59
ifneq ($(DEB_CROSS),yes)
 
60
        ln -sf gdc$(pkg_ver) \
 
61
            $(d_gdc)/$(PF)/bin/$(DEB_TARGET_GNU_TYPE)-gdc$(pkg_ver)
 
62
        ln -sf gdc$(pkg_ver) \
 
63
            $(d_gdc)/$(PF)/bin/$(TARGET_ALIAS)-gdc$(pkg_ver)
 
64
  ifneq ($(GFDL_INVARIANT_FREE),yes)
 
65
        ln -sf gdc$(pkg_ver).1 \
 
66
            $(d_gdc)/$(PF)/share/man/man1/$(DEB_TARGET_GNU_TYPE)-gdc$(pkg_ver).1
 
67
        ln -sf gdc$(pkg_ver).1 \
 
68
            $(d_gdc)/$(PF)/share/man/man1/$(TARGET_ALIAS)-gdc$(pkg_ver).1
 
69
  endif
 
70
endif
 
71
 
 
72
        # Always needed by gdc.
 
73
        cp $(srcdir)/libphobos/libdruntime/object.di \
 
74
            $(d_gdc)/$(gdc_include_dir)/$(BASE_VERSION)/
 
75
 
 
76
        dh_link -p$(p_gdc) $(links_gdc)
 
77
 
 
78
        dh_strip -p$(p_gdc)
 
79
        dh_compress -p$(p_gdc)
 
80
        dh_fixperms -p$(p_gdc)
 
81
        dh_shlibdeps -p$(p_gdc)
 
82
        dh_gencontrol -p$(p_gdc) --  -v$(DEB_GDC_VERSION) $(common_substvars)
 
83
        dh_installdeb -p$(p_gdc)
 
84
        dh_md5sums -p$(p_gdc)
 
85
        dh_builddeb -p$(p_gdc)
 
86
 
 
87
        find $(d_gdc) -type d -empty -delete
 
88
 
 
89
        trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp)
 
90
 
 
91
$(binary_stamp)-libphobos: $(install_stamp)
 
92
        dh_testdir
 
93
        dh_testroot
 
94
        mv $(install_stamp) $(install_stamp)-tmp
 
95
 
 
96
        rm -rf $(d_libphobos)
 
97
        dh_installdirs -p$(p_libphobos) $(dirs_libphobos)
 
98
 
 
99
        DH_COMPAT=2 dh_movefiles -p$(p_libphobos) $(files_libphobos)
 
100
 
 
101
        # better to have it there, avoid conflicts
 
102
        mv $(d_libphobos)/$(PF)/$(libdir)/libgphobos2.a \
 
103
            $(d_libphobos)/$(gcc_lib_dir)
 
104
 
 
105
        # included in gdc package
 
106
        rm -f $(d_libphobos)/$(gdc_include_dir)/$(BASE_VERSION)/object.di
 
107
 
 
108
        # no need to have it twice
 
109
        dh_link -p$(p_libphobos) \
 
110
            /$(PF)/share/doc/$(p_gdc) /$(PF)/share/doc/$(p_libphobos)
 
111
 
 
112
        dh_strip -p$(p_libphobos)
 
113
        dh_compress -p$(p_libphobos)
 
114
        dh_fixperms -p$(p_libphobos)
 
115
        dh_shlibdeps -p$(p_libphobos)
 
116
        dh_gencontrol -p$(p_libphobos) --  -v$(DEB_GDC_VERSION) $(common_substvars)
 
117
        dh_installdeb -p$(p_libphobos)
 
118
        dh_md5sums -p$(p_libphobos)
 
119
        dh_builddeb -p$(p_libphobos)
 
120
 
 
121
        find $(d_libphobos) -type d -empty -delete
 
122
 
 
123
        trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp)
 
124