~ubuntu-branches/ubuntu/lucid/jhbuild/lucid

« back to all changes in this revision

Viewing changes to patches/nspr.config_64bits.patch

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort, Loic Minier, Emilio Pozuelo Monfort
  • Date: 2009-11-09 20:28:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20091109202848-m9ec7dmzptqtchtj
Tags: 2.28.0-1
[ Loic Minier ]
* Cleanups.
* Ship scripts.
* Don't set GNOME_MODULE as it equals the name of the source package.

[ Emilio Pozuelo Monfort ]
* New upstream release. Closes: #524504.
  - Use 'git rev-parse' rather than 'git-rev-parse'. Closes: #544642.
* Ship install-check. Closes: #441008.
* Uploaders list regenerated. Closes: #523542, #554071.
* debian/control.in,
  debian/rules:
  - Stop shipping a copy of subprocess.py. Require python >= 2.4.
  - Switch to python-support.
* debian/control.in:
  - Bump Standards-Version to 3.8.3, no changes needed.
  - Build depend on intltool >= 0.35.0.
  - Build depend on pkg-config, gnome-doc-utils and rarian-compat to build
    the documentation.
  - Make jhbuild arch any since install-check is a binary. Depend on
    ${shlibs:Depends}.
  - Recommend, and not suggest, git-core. Also recommend mercurial.
* debian/watch:
  - Added.
* debian/patches/01_import_from_pkgdatadir.patch:
  - Added, import jhbuild from pkgdatadir if everything else fails.
    This way we can ship the jhbuild private modules in /usr/sharejhbuild.
* debian/jhbuild.docs:
  - Removed, the necessary docs are now installed by the upstream Makefile.
* debian/rules:
  - Include autotools.mk and gnome.mk.
  - Remove all the manual build process, autotools.mk does everything now.
  - Install the jhbuild modules in /usr/share/jhbuild.
* debian/install:
  - Install the modulesets and patches from here since the upstream build
    system doesn't install them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 30_config_64bits.dpatch by  <glandium@debian.org>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: Add autodetection for 64 bits hosts. bz#375281.
 
6
 
 
7
@DPATCH@
 
8
 
 
9
--- nspr/mozilla/nsprpub/configure.in
 
10
+++ nspr/mozilla/nsprpub/configure.in
 
11
@@ -57,7 +57,7 @@
 
12
 USE_USER_PTHREADS=
 
13
 USE_NSPR_THREADS=
 
14
 USE_N32=
 
15
-USE_64=
 
16
+USE_64=maybe
 
17
 USE_CPLUS=
 
18
 USE_IPV6=
 
19
 USE_MDUPDATE=
 
20
@@ -222,11 +222,26 @@
 
21
     fi ])
 
22
 
 
23
 AC_ARG_ENABLE(64bit,
 
24
-    [  --enable-64bit          Enable 64-bit support (on certain platforms)],
 
25
-    [ if test "$enableval" = "yes"; then
 
26
-           USE_64=1
 
27
+    [  --disable-64bit         Disable 64-bit support (on 64-bit platforms)],
 
28
+    [ if test "$enableval" = "no"; then
 
29
+           USE_64=
 
30
+      else
 
31
+           USE_64=1
 
32
       fi ])
 
33
 
 
34
+if test "${USE_64}"; then
 
35
+    AC_MSG_CHECKING(for 64-bit OS)
 
36
+    AC_TRY_COMPILE([],[int assert[(sizeof(long) == 8) ? 1: -1]],
 
37
+        result="yes", result="no")
 
38
+    AC_MSG_RESULT("$result")
 
39
+    if test "$result" = "no" && test "$USE_64" = 1; then
 
40
+        AC_MSG_ERROR([Can't --enable-64bit on non 64-bit platforms])
 
41
+    fi
 
42
+    if test "$result" = "yes"; then
 
43
+        USE_64=1
 
44
+    fi
 
45
+fi
 
46
+
 
47
 AC_ARG_ENABLE(mdupdate,
 
48
     [  --enable-mdupdate       Enable use of certain compilers' mdupdate feature],
 
49
     [ if test "$enableval" = "yes"; then