~jbicha/ubuntu/oneiric/gjs/1.29.18

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Micah Gersten
  • Date: 2010-08-12 00:22:06 UTC
  • mfrom: (1.3.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100812002206-zc5bfuqte3of6j2t
Tags: 0.7.1-1ubuntu1
* Merge from debian unstable. (LP: #616598)  Remaining changes:
  + debian/control: 
    - Add Ubuntu VCS info
    - Drop libmozjs Build-Depends; Ubuntu does not have this library.
    - Drop chrpath Build-Depends; we need to keep the RPATH because libmozjs
      is not a system library in Ubuntu.
    - Add xulrunner{,-dev}:Depends to binary packages
    - Bump xulrunner-dev build depends to 1.9.2
    - Build-depend on unversioned automake
  + debian/rules:
    - Generate strict dependencies on xulrunner.
    - Apply patch to fix libtool's handling of --as-needed
    - Add -Wl,--as-needed to LDFLAGS
  + debian/libgjs0a.lintian-overrides:
    - Override the entire rpath tag, not just for the specific libraries.
      The full lintian warning will change with each xulrunner version.
  + debian/ltmain-add-as-needed.patch
    - Fix libtool's ordering of --as-needed argument.
  + add debian/patches/01_disable_memcheck.patch
    - Don't make leaks fatal, see b.g.o #616193
  + add debian/patches/02_gobject_introspection.patch:
    - Use gobject-introspection 0.9
* Add debian/patches/03_libmozjs_private.patch (originally in 0.5-1ubuntu1)
  - Move @JS_PACKAGE@ libmozjs to Requires.private to prevent applications
    unnecessarily linking with libmozjs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
include /usr/share/quilt/quilt.make
4
 
 
5
3
%:
6
4
        dh  $@
7
5
 
8
6
# Hack to make it possible to run autoreconf without making the diff
9
7
# big, and without requiring a patch that needs to be updated for
10
8
# every release
11
 
override_dh_auto_configure: patch
 
9
override_dh_auto_configure:
12
10
        mkdir _build
13
11
        cp -a * _build || true
14
12
        cd _build && autoreconf -fi
21
19
override_dh_auto_install:
22
20
        dh_auto_install --sourcedirectory=_build
23
21
 
24
 
override_dh_clean: real_clean unpatch
 
22
override_dh_makeshlibs:
 
23
        dh_makeshlibs -plibgjs0a -V 'libgjs0a (>= 0.7.1)'
25
24
 
26
 
real_clean:
 
25
override_dh_clean:
27
26
        rm -rf _build
28
27
        dh_clean
29
28
 
30
29
override_dh_auto_test:
31
30
        # Our gir-repository packages don't build Everything.typelib, so the
32
31
        # Everything tests will fail.  Just remove them.
33
 
        rm _build/test/js/testEverythingBasic.js
34
 
        rm _build/test/js/testEverythingEncapsulated.js
35
 
#       dh_auto_test --sourcedirectory=_build
 
32
        -rm _build/test/js/testEverythingBasic.js
 
33
        -rm _build/test/js/testEverythingEncapsulated.js
36
34
 
 
35
        # Temporarily disable running new tests that are failing. Some
 
36
        # tests apparently depend on test API only available in later,
 
37
        # incompatible versions of gobject-introspection.
 
38
        -rm _build/test/js/testByteArray.js
 
39
        -rm _build/test/js/testGI.js
 
40
        -rm _build/test/js/testGIMarshalling.js
37
41
 
38
42
# This should be folded into dh_xulrunner
39
43
XULRUNNER_PACKAGE=xulrunner-1.9.2
45
49
override_dh_shlibdeps:
46
50
        dh_shlibdeps
47
51
        @echo Generating xulrunner dependencies
48
 
        for SUBSTVARS in debian/libgjs0.substvars debian/libgjs-dev.substvars ; do \
 
52
        for SUBSTVARS in debian/libgjs0a.substvars debian/libgjs-dev.substvars ; do \
49
53
                echo "xulrunner:Depends=$(XULRUNNER_PACKAGE) (>= $(MOZ_JS_VER)), $(XULRUNNER_PACKAGE) (< $(NEXT_MOZ_JS_VER)~)" >> $$SUBSTVARS ; \
50
54
                echo "xulrunner-dev:Depends=xulrunner-dev (>= $(MOZ_JS_VER)), xulrunner-dev (<< $(NEXT_MOZ_JS_VER)~)" >> $$SUBSTVARS ; \
51
55
        done