~ubuntu-branches/ubuntu/wily/gcc-mingw-w64/wily

« back to all changes in this revision

Viewing changes to debian/g++-mingw-w64-i686.postinst

  • Committer: Package Import Robot
  • Author(s): Stephen Kitt
  • Date: 2014-07-28 01:41:35 UTC
  • Revision ID: package-import@ubuntu.com-20140728014135-wjlei40902ln603w
Tags: 14
* Provide compilers using Windows and POSIX threads. The default setup
  uses Windows threads, thus avoiding the dependency on the pthreads DLL
  (Closes: #748353, #750741).
* Use the default exception-handling (SJLJ on 32-bit Windows, SEH on
  64-bit Windows). (With the above, LP: #1338043.)
* Build a mingw32 transition package (Closes: #756142):
  - C++ code with interface/implementation pragmas links correctly
    (Closes: #179760);
  - libstdc++.la is no longer shipped (Closes: #281030);
  - the libstdc++ DLL is provided (Closes: #317146);
  - _NO_OLD_NAMES doesn't break unistd.h (Closes: #338412);
  - the gccbug manpage is no longer linked to (Closes: #351790);
  - the package description doesn't mention "freedom through
    obsolescence" (Closes: #403720);
  - g77 is provided (Closes: #418167);
  - nothing is installed in /usr/libexec (Closes: #470574);
  - Lintian overrides are correct (Closes: #470873);
  - powf and sinf can be used in the same project (Closes: #484299);
  - there's no "it's"/"its" typo in the Debian-specific files (Closes:
    #498400);
  - the package builds gcc 4.9 (Closes: #514186);
  - a 64-bit compiler is available (Closes: #514187);
  - powf is defined correctly (Closes: #525016);
  - no compilercache symlinks are shipped (Closes: #583262).
* Ship the C++ header files in the default location instead of
  /usr/include/c++/; this avoids having to introduce a new package for
  the target-independent headers.
* Remove obsolete gnat files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# postinst script for g++-mingw-w64-i686
 
3
#
 
4
# see: dh_installdeb(1)
 
5
 
 
6
set -e
 
7
 
 
8
# summary of how this script can be called:
 
9
#        * <postinst> `configure' <most-recently-configured-version>
 
10
#        * <old-postinst> `abort-upgrade' <new version>
 
11
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
 
12
#          <new-version>
 
13
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
 
14
#          <failed-install-package> <version> `removing'
 
15
#          <conflicting-package> <version>
 
16
# for details, see http://www.debian.org/doc/debian-policy/ or
 
17
# the debian-policy package
 
18
#
 
19
 
 
20
case "$1" in
 
21
    configure)
 
22
 
 
23
        update-alternatives --install /usr/bin/i686-w64-mingw32-g++ i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix 30 \
 
24
          --slave /usr/bin/i686-w64-mingw32-c++ i686-w64-mingw32-c++ /usr/bin/i686-w64-mingw32-c++-posix
 
25
        update-alternatives --install /usr/bin/i686-w64-mingw32-g++ i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-win32 60 \
 
26
          --slave /usr/bin/i686-w64-mingw32-c++ i686-w64-mingw32-c++ /usr/bin/i686-w64-mingw32-c++-win32
 
27
 
 
28
    ;;
 
29
 
 
30
    abort-upgrade|abort-remove|abort-deconfigure)
 
31
 
 
32
    ;;
 
33
 
 
34
    *)
 
35
        echo "postinst called with unknown argument \`$1'" >&2
 
36
        exit 1
 
37
    ;;
 
38
esac
 
39
 
 
40
# dh_installdeb will replace this with shell code automatically
 
41
# generated by other debhelper scripts.
 
42
 
 
43
#DEBHELPER#
 
44
 
 
45
exit 0