On Thu, Apr 28, 2011 at 04:13:26PM -0500, George McCollister wrote:
> Use opkg-utils instead of ipkg-utils when using opkg as the package
> managment system.
> 
> svn trunk of opkg-utils is here:
> http://svn.openmoko.org/trunk/src/host/opkg-utils
> 
> As of April 26, 2011 last change was:
> r4747 2008-11-02 21:59:59
> 
> I've hosted a tar.gz of r4747 at this URL:
> http://www.novatech-llc.com/files/opkg-utils-r4747.tar.gz
> 
> Signed-off-by: George McCollister <[email protected]>
> ---
>  ...tils-use-env-python-instead-of-fixed-path.patch |   71 
> ++++++++++++++++++++
>  patches/opkg-utils-r4747/series                    |    1 +
>  rules/host-opkg-utils.in                           |    7 ++
>  rules/host-opkg-utils.make                         |   34 +++++++++
>  4 files changed, 113 insertions(+), 0 deletions(-)
>  create mode 100644 
> patches/opkg-utils-r4747/0001-opkg-utils-use-env-python-instead-of-fixed-path.patch
>  create mode 100644 patches/opkg-utils-r4747/series
>  create mode 100644 rules/host-opkg-utils.in
>  create mode 100644 rules/host-opkg-utils.make
> 
> diff --git 
> a/patches/opkg-utils-r4747/0001-opkg-utils-use-env-python-instead-of-fixed-path.patch
>  
> b/patches/opkg-utils-r4747/0001-opkg-utils-use-env-python-instead-of-fixed-path.patch
> new file mode 100644
> index 0000000..a953caa
> --- /dev/null
> +++ 
> b/patches/opkg-utils-r4747/0001-opkg-utils-use-env-python-instead-of-fixed-path.patch
> @@ -0,0 +1,71 @@
> +From 782ec7ded1514ce444d3a307f22472454171ed31 Mon Sep 17 00:00:00 2001
> +From: unknown author <[email protected]>
> +Date: Mon, 25 Apr 2011 09:17:05 -0500
> +Subject: [PATCH] opkg-utils: use env python instead of fixed path
> +
> +I moved this patch over from ipkg-utils. I believe this is needed so we
> +use the copy of python built and installed by HOST_PYTHON instead of the
> +copy provided by the disto.
> +
> +Signed-off-by: George McCollister <[email protected]>
> +---
> + opkg-list-fields  |    2 +-
> + opkg-make-index   |    2 +-
> + opkg-show-deps    |    2 +-
> + opkg-unbuild      |    2 +-
> + opkg-update-index |    2 +-
> + 5 files changed, 5 insertions(+), 5 deletions(-)
> +
> +diff --git a/opkg-list-fields b/opkg-list-fields
> +index d263b90..da78d53 100755
> +--- a/opkg-list-fields
> ++++ b/opkg-list-fields
> +@@ -1,4 +1,4 @@
> +-#!/usr/bin/python
> ++#!/usr/bin/env python
> + 
> + import sys, opkg
> + 
> +diff --git a/opkg-make-index b/opkg-make-index
> +index ae829e6..6ebba5f 100755
> +--- a/opkg-make-index
> ++++ b/opkg-make-index
> +@@ -1,4 +1,4 @@
> +-#!/usr/bin/python
> ++#!/usr/bin/env python
> + 
> + import sys, os, posixpath
> + from glob import glob
> +diff --git a/opkg-show-deps b/opkg-show-deps
> +index a6681f4..9de1aac 100755
> +--- a/opkg-show-deps
> ++++ b/opkg-show-deps
> +@@ -1,4 +1,4 @@
> +-#!/usr/bin/python
> ++#!/usr/bin/env python
> + 
> + import sys, os, posixpath
> + from glob import glob
> +diff --git a/opkg-unbuild b/opkg-unbuild
> +index eff604b..b5c5227 100755
> +--- a/opkg-unbuild
> ++++ b/opkg-unbuild
> +@@ -1,4 +1,4 @@
> +-#!/usr/bin/python
> ++#!/usr/bin/env python
> + 
> + import sys, os, re
> + 
> +diff --git a/opkg-update-index b/opkg-update-index
> +index 807f8f4..3864fa5 100755
> +--- a/opkg-update-index
> ++++ b/opkg-update-index
> +@@ -1,4 +1,4 @@
> +-#!/usr/bin/env python2.1
> ++#!/usr/bin/env python
> + 
> + import sys, os
> + from glob import glob
> +-- 
> +1.7.1
> +
> diff --git a/patches/opkg-utils-r4747/series b/patches/opkg-utils-r4747/series
> new file mode 100644
> index 0000000..2ec6b23
> --- /dev/null
> +++ b/patches/opkg-utils-r4747/series
> @@ -0,0 +1 @@
> +0001-opkg-utils-use-env-python-instead-of-fixed-path.patch
> diff --git a/rules/host-opkg-utils.in b/rules/host-opkg-utils.in
> new file mode 100644
> index 0000000..5f1b143
> --- /dev/null
> +++ b/rules/host-opkg-utils.in
> @@ -0,0 +1,7 @@
> +## SECTION=hosttools_noprompt
> +
> +config HOST_OPKG_UTILS
> +     tristate

default ALLYES

Michael

> +     help
> +       opkg-utils let you build packages in the opkg format.
> +
> diff --git a/rules/host-opkg-utils.make b/rules/host-opkg-utils.make
> new file mode 100644
> index 0000000..6e45e68
> --- /dev/null
> +++ b/rules/host-opkg-utils.make
> @@ -0,0 +1,34 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2011 by George McCollister <[email protected]>
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +HOST_PACKAGES-$(PTXCONF_HOST_OPKG_UTILS) += host-opkg-utils
> +
> +#
> +# Paths and names
> +#
> +HOST_OPKG_UTILS_VERSION      := r4747
> +HOST_OPKG_UTILS              := opkg-utils-$(HOST_OPKG_UTILS_VERSION)
> +HOST_OPKG_UTILS_SUFFIX       := tar.gz
> +HOST_OPKG_UTILS_URL  := 
> http://www.novatech-llc.com/files/$(HOST_OPKG_UTILS).$(HOST_OPKG_UTILS_SUFFIX)
> +HOST_OPKG_UTILS_SOURCE       := 
> $(SRCDIR)/$(HOST_OPKG_UTILS).$(HOST_OPKG_UTILS_SUFFIX)
> +HOST_OPKG_UTILS_DIR  := $(HOST_BUILDDIR)/$(HOST_OPKG_UTILS)
> +
> +# 
> ----------------------------------------------------------------------------
> +# Prepare
> +# 
> ----------------------------------------------------------------------------
> +
> +HOST_OPKG_UTILS_CONF_TOOL    := NO
> +HOST_OPKG_UTILS_MAKE_OPT     := PREFIX= $(HOST_ENV_CC)
> +HOST_OPKG_UTILS_INSTALL_OPT  := $(HOST_OPKG_UTILS_MAKE_OPT) install
> +
> +# vim: syntax=make
> -- 
> 1.7.1
> 
> 
> -- 
> ptxdist mailing list
> [email protected]
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
[email protected]

Reply via email to