~ubuntu-branches/ubuntu/oneiric/debhelper/oneiric-updates

« back to all changes in this revision

Viewing changes to Debian/Debhelper/Dh_Lib.pm

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-03-14 20:20:18 UTC
  • Revision ID: james.westby@ubuntu.com-20110314202018-e3k73rkx6s7eldh7
Tags: 8.1.2ubuntu2
* multiarch support.  FFe LP: #733501.
* merge changes from upstream git:
  - Started work on Debhelper v9. It is still experimental, and more
    changes may be added to that mode.
  - Support multiarch in v9. Thanks, Steve Langasek. Closes: #617761
  - dh_auto_configure: Support multiarch in v9 by passing multiarch
    directories to --libdir and --libexecdir.
  - dh_makeshlibs: Detect packages using multiarch directories and
    make ${misc:Pre-Depends} expand to multiarch-support.
  - Depend on dpkg-dev (>= 1.16.0) for multiarch support. Note to
    backporters: If you remove that dependency, debhelper will fall back
    to not doing multiarch stuff in v9 mode, which is probably what you
    want.
* Add Daniel Silverstone's patch to give us env variable expansions in
  .install/.link files, needed in order to let us use DEB_HOST_MULTIARCH
  without cumbersome .in files everywhere.  Closes: #614731.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
            &is_make_jobserver_unavailable &clean_jobserver_makeflags
21
21
            &cross_command);
22
22
 
23
 
my $max_compat=8;
 
23
my $max_compat=9;
24
24
 
25
25
sub init {
26
26
        my %params=@_;
617
617
                        next if /^#/ || /^$/;
618
618
                }
619
619
                my @line;
 
620
                # Only expand ${...} environment vars in v9
 
621
                if (! compat(8)) {
 
622
                        s#\$\{([^\}]+)\}#$ENV{$1}#g;
 
623
                }
620
624
                # Only do glob expansion in v3 mode.
621
625
                #
622
626
                # The tricky bit is that the glob expansion is done