Gentoo Archives: gentoo-commits

From: "Maxim Koltsov (maksbotan)" <maksbotan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/hivex/files: incorrect_format.patch autoconf_fix-1.3.0.patch
Date: Tue, 06 Sep 2011 17:17:44
Message-Id: 20110906171733.7333520051@flycatcher.gentoo.org
1 maksbotan 11/09/06 17:17:33
2
3 Added: incorrect_format.patch autoconf_fix-1.3.0.patch
4 Log:
5 Add app-misc/hivex, bug #342217
6
7 (Portage version: 2.1.10.12/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 app-misc/hivex/files/incorrect_format.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/hivex/files/incorrect_format.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/hivex/files/incorrect_format.patch?rev=1.1&content-type=text/plain
14
15 Index: incorrect_format.patch
16 ===================================================================
17 From: Richard W.M. Jones <rjones@××××××.com>
18 Date: Mon, 15 Aug 2011 09:52:00 +0000 (+0100)
19 Subject: Fix incorrect printf format specifier in error string.
20 X-Git-Url: http://git.annexia.org/?p=hivex.git;a=commitdiff_plain;h=5a4fd441d23f96ca618e55d4e54471d2e0fa94af
21
22 Fix incorrect printf format specifier in error string.
23 ---
24
25 diff --git a/lib/hivex.c b/lib/hivex.c
26 index dceea73..a3f5171 100644
27 --- a/lib/hivex.c
28 +++ b/lib/hivex.c
29 @@ -621,7 +621,8 @@ timestamp_check (hive_h *h, hive_node_h node, int64_t timestamp)
30 if (timestamp < 0) {
31 if (h->msglvl >= 2)
32 fprintf (stderr, "hivex: timestamp_check: "
33 - "negative time reported at %z: %" PRIi64 "\n", node, timestamp);
34 + "negative time reported at %zu: %" PRIi64 "\n",
35 + node, timestamp);
36 errno = EINVAL;
37 return -1;
38 }
39
40
41
42 1.1 app-misc/hivex/files/autoconf_fix-1.3.0.patch
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/hivex/files/autoconf_fix-1.3.0.patch?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/hivex/files/autoconf_fix-1.3.0.patch?rev=1.1&content-type=text/plain
46
47 Index: autoconf_fix-1.3.0.patch
48 ===================================================================
49 --- configure.ac.orig 2011-08-15 22:29:28.309745342 +0300
50 +++ configure.ac 2011-08-15 22:34:54.324549151 +0300
51 @@ -170,11 +170,18 @@
52 AC_SUBST([LIBXML2_CFLAGS])
53 AC_SUBST([LIBXML2_LIBS])
54
55 +
56 +dnl ////////////////////////////////////////////////////////////////////////////
57 dnl Check for OCaml (optional, for OCaml bindings).
58 +
59 +AC_ARG_ENABLE([ocaml],
60 + AS_HELP_STRING([--with-ocaml],[build Ocaml binding]))
61 +
62 +
63 AC_PROG_OCAML
64 AC_PROG_FINDLIB
65 AM_CONDITIONAL([HAVE_OCAML],
66 - [test "x$OCAMLC" != "xno" && test "x$OCAMLFIND" != "xno"])
67 + [test "x$OCAMLC" != "xno" -a "x$OCAMLFIND" != "xno" -a "x$enable_ocaml" = "xyes"])
68 AM_CONDITIONAL([HAVE_OCAMLOPT],
69 [test "x$OCAMLOPT" != "xno" && test "x$OCAMLFIND" != "xno"])
70
71 @@ -207,6 +214,8 @@
72 rm -f conftest conftest.* conftest_ml.*
73 fi
74
75 +dnl ///////////////////////////////////////////////////////////////////////////////////////
76 +
77 dnl Check for Perl (optional, for Perl bindings).
78 dnl XXX This isn't quite right, we should check for Perl devel library.
79 AC_CHECK_PROG([PERL],[perl],[perl],[no])
80 @@ -214,21 +223,35 @@
81 dnl Check for Perl modules that must be present to compile and
82 dnl test the Perl bindings.
83 missing_perl_modules=no
84 -for pm in Test::More ExtUtils::MakeMaker IO::Stringy; do
85 - AC_MSG_CHECKING([for $pm])
86 - if ! perl -M$pm -e1 >/dev/null 2>&1; then
87 - AC_MSG_RESULT([no])
88 - missing_perl_modules=yes
89 - else
90 - AC_MSG_RESULT([yes])
91 - fi
92 -done
93 -if test "x$missing_perl_modules" = "xyes"; then
94 - AC_MSG_WARN([some Perl modules required to compile or test the Perl bindings are missing])
95 -fi
96 +
97 +AC_ARG_ENABLE([perl],
98 + AS_HELP_STRING([--with-perl],[build Perl binding]))
99 +
100 +
101 +PERL=
102 +AS_IF([test "x$enable_perl" != "xno" ],[
103 + AC_CHECK_PROG([PERL],[perl],[yes],[no])
104 +
105 + for pm in Test::More ExtUtils::MakeMaker IO::Stringy; do
106 + AC_MSG_CHECKING([for $pm])
107 + if ! perl -M$pm -e1 >/dev/null 2>&1; then
108 + AC_MSG_RESULT([no])
109 + missing_perl_modules=yes
110 + else
111 + AC_MSG_RESULT([yes])
112 + fi
113 + done
114 +
115 + AS_IF([test "x$missing_perl_modules" = "xyes"],
116 + [AC_MSG_FAILURE([some Perl modules required to compile or test the Perl bindings are missing])],
117 + )
118 +])
119 +
120
121 AM_CONDITIONAL([HAVE_PERL],
122 - [test "x$PERL" != "xno" && test "x$missing_perl_modules" != "xyes"])
123 + [test "x$PERL" != "xno" -a "x$missing_perl_modules" != "xyes" -a "x$enable_perl" = "xyes"])
124 +
125 +dnl //////////////////////////////////////////////////////////////////////////////////////////////////
126
127 dnl Check for Python (optional, for Python bindings).
128 AC_CHECK_PROG([PYTHON],[python],[python],[no])
129 @@ -266,15 +289,21 @@
130 AC_SUBST(PYTHON_INCLUDEDIR)
131 AC_SUBST(PYTHON_SITE_PACKAGES)
132
133 +AC_ARG_ENABLE([python],
134 + AS_HELP_STRING([--with-python],[build Python binding]))
135 +
136 AM_CONDITIONAL([HAVE_PYTHON],
137 - [test "x$PYTHON_INCLUDEDIR" != "x" && test "x$PYTHON_SITE_PACKAGES" != "x"])
138 + [test "x$PYTHON_INCLUDEDIR" != "x" -a "x$PYTHON_SITE_PACKAGES" != "x" -a "x$enable_python" = "xyes"])
139
140 dnl Check for Ruby and rake (optional, for Ruby bindings).
141 AC_CHECK_LIB([ruby],[ruby_init],[HAVE_LIBRUBY=1],[HAVE_LIBRUBY=0])
142 AC_CHECK_PROG([RAKE],[rake],[rake],[no])
143
144 +AC_ARG_ENABLE([ruby],
145 + AS_HELP_STRING([--with-ruby],[build Ruby binding]))
146 +
147 AM_CONDITIONAL([HAVE_RUBY],
148 - [test "x$RAKE" != "xno" && test -n "$HAVE_LIBRUBY"])
149 + [test "x$RAKE" != "xno" && test -n "$HAVE_LIBRUBY" -a "x$enable_ruby" = "xyes"])
150
151 dnl dnl Check for Java.
152 dnl AC_ARG_WITH(java_home,