quilt: update to quilt 0.46. Fixes 1960.
authorRolf Leggewie <oe-devel@rolf.leggewie.biz>
Mon, 14 Jan 2008 23:14:10 +0000 (23:14 +0000)
committerRolf Leggewie <oe-devel@rolf.leggewie.biz>
Mon, 14 Jan 2008 23:14:10 +0000 (23:14 +0000)
* rstreamline bb
* move version 0.39 to packages/obsolete

20 files changed:
packages/obsolete/quilt/.mtn2git_empty [moved from packages/quilt/quilt-0.39/.mtn2git_empty with 100% similarity]
packages/obsolete/quilt/quilt-0.39/.mtn2git_empty [new file with mode: 0644]
packages/obsolete/quilt/quilt-0.39/non-gnu.patch [moved from packages/quilt/quilt-0.39/non-gnu.patch with 100% similarity]
packages/obsolete/quilt/quilt-0.39/nostrip.patch [moved from packages/quilt/quilt-0.39/nostrip.patch with 100% similarity]
packages/obsolete/quilt/quilt-native_0.39.bb [moved from packages/quilt/quilt-native_0.39.bb with 100% similarity]
packages/obsolete/quilt/quilt_0.39.bb [moved from packages/quilt/quilt_0.39.bb with 100% similarity]
packages/obsolete/quilt/quilt_0.39.inc [moved from packages/quilt/quilt_0.39.inc with 100% similarity]
packages/quilt/files/non-gnu.patch [moved from packages/quilt/quilt-0.45/non-gnu.patch with 100% similarity]
packages/quilt/quilt-0.45/install.patch [moved from packages/quilt/files/install.patch with 100% similarity]
packages/quilt/quilt-0.46/.mtn2git_empty [new file with mode: 0644]
packages/quilt/quilt-0.46/aclocal.patch [new file with mode: 0644]
packages/quilt/quilt-0.46/install.patch [new file with mode: 0644]
packages/quilt/quilt-native.inc
packages/quilt/quilt-native_0.45.bb
packages/quilt/quilt-native_0.46.bb [new file with mode: 0644]
packages/quilt/quilt-package.inc
packages/quilt/quilt.inc
packages/quilt/quilt_0.45.bb
packages/quilt/quilt_0.45.inc [deleted file]
packages/quilt/quilt_0.46.bb [new file with mode: 0644]

diff --git a/packages/obsolete/quilt/quilt-0.39/.mtn2git_empty b/packages/obsolete/quilt/quilt-0.39/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/quilt/quilt-0.46/.mtn2git_empty b/packages/quilt/quilt-0.46/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/quilt/quilt-0.46/aclocal.patch b/packages/quilt/quilt-0.46/aclocal.patch
new file mode 100644 (file)
index 0000000..1245f74
--- /dev/null
@@ -0,0 +1,126 @@
+Add the aclocal.m4 as acinclude.m4
+
+Index: quilt-0.46/acinclude.m4
+===================================================================
+--- /dev/null
++++ quilt-0.46/acinclude.m4
+@@ -0,0 +1,119 @@
++dnl Allow configure to specify a specific binary
++dnl 1: Environment variable
++dnl 2: binary name
++dnl 3: optional list of alternative binary names
++dnl 4: optional list of additional search directories
++AC_DEFUN([QUILT_COMPAT_PROG_PATH],[
++  m4_define([internal_$2_cmd],[esyscmd(ls compat/$2.in 2>/dev/null)])
++
++  AC_ARG_WITH($2, AC_HELP_STRING(
++    [--with-$2], [name of the $2 executable to use]
++                 m4_if(internal_$2_cmd,[],[],[ (use --without-$2
++                          to use an internal mechanism)])),
++  [
++    if test x"$withval" = xnone; then
++      AC_MSG_ERROR([Invalid configure argument.  use --without-$2])
++    fi
++    if test x"$withval" != xno; then
++      AC_MSG_CHECKING(for $2)
++      $1="$withval"
++      if test -e "$$1"; then
++      if test ! -f "$$1" -a ! -h "$$1" || test ! -x "$$1"; then
++        AC_MSG_ERROR([$$1 is not an executable file])
++      fi
++      fi
++      AC_MSG_RESULT([$$1])
++      if test ! -e "$$1"; then
++        AC_MSG_WARN([$$1 does not exist])
++      fi
++      COMPAT_SYMLINKS="$COMPAT_SYMLINKS $2"
++    fi
++  ],[
++    m4_if([$3],[],[
++      AC_PATH_PROG($1,$2,,$PATH:$4)
++    ],[
++      AC_PATH_PROGS($1,$3,,$PATH:$4)
++      if test -n "$$1" -a "`expr "$$1" : '.*/\([[^/]]*\)$'`" != "$2"; then
++      COMPAT_SYMLINKS="$COMPAT_SYMLINKS $2"
++      fi
++    ])
++    m4_if([$4],[],[],[
++      if test -n "$$1"; then
++      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++        for dir in "$4"; do
++          if test "`dirname $$1`" = "$dir"; then
++            COMPAT_SYMLINKS="$COMPAT_SYMLINKS $2"
++          break
++        fi
++        done
++      IFS="$as_save_IFS"
++      fi
++    ])
++  ])
++  if test -z "$$1"; then
++    m4_if(internal_$2_cmd,[],[
++      AC_MSG_ERROR([Please specify the location of $2 with the option '--with-$2'])
++    ],[
++      AC_MSG_WARN([Using internal $2 mechanism.  Use option '--with-$2' to override])
++      COMPAT_PROGRAMS="$COMPAT_PROGRAMS $2"
++      $1=$2
++      INTERNAL_$1=1
++    ])
++  fi
++  AC_SUBST($1)
++])
++
++dnl Allow configure to specify a specific binary
++dnl This variant is for optional binaries.
++dnl 1: Environment variable
++dnl 2: binary name
++dnl 3: optional list of alternative binary names
++dnl 4: optional list of additional search directories
++AC_DEFUN([QUILT_COMPAT_PROG_PATH_OPT],[
++  AC_ARG_WITH($2, AC_HELP_STRING(
++    [--with-$2], [name of the $2 executable to use]),
++  [
++    if test x"$withval" != xno; then
++      AC_MSG_CHECKING(for $2)
++      $1="$withval"
++      if test -e "$$1"; then
++      if test ! -f "$$1" -a ! -h "$$1" || test ! -x "$$1"; then
++        AC_MSG_ERROR([$$1 is not an executable file])
++      fi
++      fi
++      AC_MSG_RESULT([$$1])
++      if test ! -e "$$1"; then
++        AC_MSG_WARN([$$1 does not exist])
++      fi
++      COMPAT_SYMLINKS="$COMPAT_SYMLINKS $2"
++    fi
++  ],[
++    m4_if([$3],[],[
++      AC_PATH_PROG($1,$2,,$PATH:$4)
++    ],[
++      AC_PATH_PROGS($1,$3,,$PATH:$4)
++      if test -n "$$1" -a "`expr "$$1" : '.*/\([[^/]]*\)$'`" != "$2"; then
++      COMPAT_SYMLINKS="$COMPAT_SYMLINKS $2"
++      fi
++    ])
++    m4_if([$4],[],[],[
++      if test -n "$$1"; then
++      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++        for dir in "$4"; do
++          if test "`dirname $$1`" = "$dir"; then
++            COMPAT_SYMLINKS="$COMPAT_SYMLINKS $2"
++          break
++        fi
++        done
++      IFS="$as_save_IFS"
++      fi
++    ])
++    if test -z "$$1"; then
++      AC_MSG_WARN([$2 not found, some optional functionalities will be missing])
++    fi
++  ])
++  if test -z "$$1"; then
++    $1=$2
++  fi
++  AC_SUBST($1)
++])
diff --git a/packages/quilt/quilt-0.46/install.patch b/packages/quilt/quilt-0.46/install.patch
new file mode 100644 (file)
index 0000000..3c9030d
--- /dev/null
@@ -0,0 +1,13 @@
+Index: quilt-0.46/Makefile.in
+===================================================================
+--- quilt-0.46.orig/Makefile.in
++++ quilt-0.46/Makefile.in
+@@ -12,7 +12,7 @@ datadir :=   @datadir@
+ docdir :=     @docdir@
+ mandir :=     @mandir@
+ localedir :=  $(datadir)/locale
+-etcdir :=     $(subst /usr/etc,/etc,$(prefix)/etc)
++etcdir :=     @sysconfdir@
+ INSTALL :=    @INSTALL@
+ POD2MAN :=    @POD2MAN@
index 5861b22..f815969 100644 (file)
@@ -1,4 +1,4 @@
-require quilt_${PV}.inc
+require quilt.inc
 
 SRC_URI_append_build-darwin = "?   file://non-gnu.patch;patch=1 "
 RDEPENDS_${PN} = "diffstat-native patch-native bzip2-native util-linux-native"
diff --git a/packages/quilt/quilt-native_0.46.bb b/packages/quilt/quilt-native_0.46.bb
new file mode 100644 (file)
index 0000000..302df25
--- /dev/null
@@ -0,0 +1 @@
+require quilt-native.inc
index bcdbcf0..900884b 100644 (file)
@@ -1,10 +1,21 @@
+require quilt.inc 
+
+RDEPENDS_${PN} += "patch diffstat bzip2 util-linux"
+
+SRC_URI += "file://aclocal.patch;patch=1"
+
+inherit autotools gettext
+
+do_install () {
+       oe_runmake 'BUILD_ROOT=${D}' install
+
+       # Remove the compat symlinks
+       rm -rf "${D}"/usr/share/quilt/compat
+}
+
 PACKAGES += "guards guards-doc"
 FILES_${PN} = "${sysconfdir} ${datadir}/quilt \
               ${bindir}/quilt ${libdir}/quilt"
 FILES_guards = "${bindir}/guards"
 FILES_${PN}-doc = "${mandir}/man1/quilt.1 ${docdir}/${P}"
 FILES_guards-doc = "${mandir}/man1/guards.1"
-
-do_install () {
-       oe_runmake 'BUILD_ROOT=${D}' install
-}
index ee90455..33bc0f6 100644 (file)
@@ -2,8 +2,9 @@ DESCRIPTION = "Tool to work with series of patches."
 HOMEPAGE = "http://savannah.nongnu.org/projects/quilt/"
 SECTION = "devel"
 LICENSE = "GPL"
-PR = "r1"
+PR = "r2"
 
-SRC_URI = "http://download.savannah.gnu.org/releases/quilt/quilt-${PV}.tar.gz "
+SRC_URI = "http://download.savannah.gnu.org/releases/quilt/quilt-${PV}.tar.gz \
+           file://install.patch;patch=1"
 
 S = "${WORKDIR}/quilt-${PV}"
index d809c83..de38f64 100644 (file)
@@ -1,9 +1 @@
-RDEPENDS_${PN} += "patch diffstat bzip2 util-linux"
-
-require quilt_${PV}.inc
-
-SRC_URI += "file://aclocal.patch;patch=1"
-
-inherit autotools gettext
-
 require quilt-package.inc
diff --git a/packages/quilt/quilt_0.45.inc b/packages/quilt/quilt_0.45.inc
deleted file mode 100644 (file)
index bf6267b..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-require quilt.inc
-
-SRC_URI += "file://install.patch;patch=1"
diff --git a/packages/quilt/quilt_0.46.bb b/packages/quilt/quilt_0.46.bb
new file mode 100644 (file)
index 0000000..de38f64
--- /dev/null
@@ -0,0 +1 @@
+require quilt-package.inc