summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm/rpm/rpm-no-perl-urpm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/rpm/rpm/rpm-no-perl-urpm.patch')
-rw-r--r--meta/recipes-devtools/rpm/rpm/rpm-no-perl-urpm.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rpm/rpm/rpm-no-perl-urpm.patch b/meta/recipes-devtools/rpm/rpm/rpm-no-perl-urpm.patch
new file mode 100644
index 0000000000..90fee35dce
--- /dev/null
+++ b/meta/recipes-devtools/rpm/rpm/rpm-no-perl-urpm.patch
@@ -0,0 +1,43 @@
1Disable perl-URPM support
2
3This causes a configure failure when perl-URPM is not used.
4
5| configure.ac:1159: required file `perl-URPM/Makefile.PL.in' not found
6| configure.ac:1159: required file `perl-URPM/Makefile.in' not found
7
8Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
9
10--- rpm-5.4.8/configure.ac.orig 2012-04-24 09:10:01.856749153 -0500
11+++ rpm-5.4.8/configure.ac 2012-04-24 09:10:35.198731504 -0500
12@@ -1149,30 +1149,10 @@
13 AC_SUBST(WITH_PERL_SUBPACKAGE)
14 AC_SUBST(WITH_PERL_LIBS)
15
16-dnl # optional Perl-URPM language bindings
17+dnl # disable Perl-URPM language bindings
18 WITH_PERL_URPM_SUBDIR=""
19 WITH_PERL_URPM_SUBPACKAGE=0
20 WITH_PERL_URPM_LIBS=""
21-if test ".$WITH_PTHREADS" = .yes; then
22- WITH_PERL_URPM_LIBS="$LIBS"
23-fi
24-AC_ARG_WITH(perl-urpm, AS_HELP_STRING([--with-perl-urpm], [build with Perl URPM language bindings]), [
25- if test ".$withval" != .no; then
26- PERL_URPM_INSTALLDIRS=""
27- if test "$withval" == "vendor"; then
28- PERL_URPM_INSTALLDIRS="'INSTALLDIRS' => 'vendor',"
29- fi
30- if test "$withval" == "site"; then
31- PERL_URPM_INSTALLDIRS="'INSTALLDIRS' => 'site',"
32- fi
33- AC_DEFINE_UNQUOTED([PERL_URPM_INSTALLDIRS], [$PERL_URPM_INSTALLDIRS], [Perl install directory (vendor/site)])
34- AC_SUBST(PERL_URPM_INSTALLDIRS)
35- WITH_PERL_URPM_SUBDIR=perl-URPM
36- WITH_PERL_URPM_SUBPACKAGE=1
37- AC_CONFIG_FILES([perl-URPM/Makefile.PL])
38- AC_CONFIG_FILES([perl-URPM/Makefile])
39- fi
40-])
41 AC_SUBST(WITH_PERL_URPM_SUBDIR)
42 AC_SUBST(WITH_PERL_URPM_SUBPACKAGE)
43 AC_SUBST(WITH_PERL_URPM_LIBS)