~ubuntu-branches/ubuntu/vivid/debian-policy/vivid

« back to all changes in this revision

Viewing changes to 0001-All-packages-using-Perl-vendorarch-directory-need-a-.patch

  • Committer: Package Import Robot
  • Author(s): Bill Allombert
  • Date: 2014-11-17 11:55:55 UTC
  • Revision ID: package-import@ubuntu.com-20141117115555-q4yxzawge0oy3o81
Tags: 3.9.6.1
Fix FTBFS with emacs 24.4. Thanks to David Bremner <david@tethera.net>
for the help. Closes: #769219

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
>From 007c07db2c549adef83b0c9019d90746117bd7df Mon Sep 17 00:00:00 2001
2
 
From: Niko Tyni <ntyni@debian.org>
3
 
Date: Fri, 30 May 2014 14:10:22 +0300
4
 
Subject: [PATCH] All packages using Perl vendorarch directory need a perlapi-*
5
 
 dependency
6
 
 
7
 
Having $Config{vendorarch} change between Perl major versions (for
8
 
multiarch or other reasons) implies that packages using it need a strict
9
 
dependency on those versions of perl-base that have a compatible search
10
 
path (@INC).
11
 
 
12
 
The vast majority of these packages are binary ("XS") modules, where we
13
 
already require a dependency on the virtual package perlapi-*, provided
14
 
by perl-base. The name of this virtual package will change when the
15
 
interface between the Perl interpreter and the modules changes.
16
 
 
17
 
If we consider @INC part of that interface, we can use the existing
18
 
mechanism also for the few nonbinary modules using $Config{vendorarch}.
19
 
This is a new requirement that currently affects six packages in
20
 
the archive.
21
 
---
22
 
 perl-policy.sgml | 9 +++++----
23
 
 1 file changed, 5 insertions(+), 4 deletions(-)
24
 
 
25
 
diff --git a/perl-policy.sgml b/perl-policy.sgml
26
 
index c23f7c3..12cd82c 100644
27
 
--- a/perl-policy.sgml
28
 
+++ b/perl-policy.sgml
29
 
@@ -388,14 +388,15 @@ $(MAKE) install DESTDIR=$(CURDIR)/debian/&lt;tmp&gt;
30
 
        </sect1>
31
 
 
32
 
        <sect1 id="binary_modules">
33
 
-         <heading>Binary Modules</heading>
34
 
+         <heading>Binary and Other Architecture Dependent Modules</heading>
35
 
          <p>
36
 
            Binary modules must specify a dependency on either
37
 
            <package>perl</package> or <package>perl-base</package> with
38
 
            a minimum version of the <package>perl</package> package
39
 
-           used to build the module, and must additionally depend on
40
 
-           the expansion of
41
 
-           <package>perlapi-$Config{debian_abi}</package> using
42
 
+           used to build the module. Additionally, all binary modules
43
 
+           (regardless of their installation directory) and any other modules
44
 
+           installed into <tt>$Config{vendorarch}</tt> must depend on the
45
 
+           expansion of <package>perlapi-$Config{debian_abi}</package> using
46
 
            the <tt>Config</tt> module. If <tt>$Config{debian_abi}</tt>
47
 
            is empty or not set, <tt>$Config{version}</tt> must be used.
48
 
          </p>
49
 
2.0.0.rc4
50