All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] bitbake.conf: include bin dirs from BBPATH in PATH
@ 2011-01-18 15:18 Chris Larson
  2011-01-18 15:18 ` [PATCH 2/4] Move stage-manager-* into bin/ rather than a recipe Chris Larson
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Chris Larson @ 2011-01-18 15:18 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Chris Larson

From: Chris Larson <chris_larson@mentor.com>

Signed-off-by: Chris Larson <chris_larson@mentor.com>
---
 bin/{ => darwin}/cp                    |    0
 bin/{ => darwin}/sed                   |    0
 conf/bitbake.conf                      |    5 +++--
 conf/build/Power Macintosh-darwin.conf |    2 +-
 conf/build/i386-darwin.conf            |    2 +-
 5 files changed, 5 insertions(+), 4 deletions(-)
 rename bin/{ => darwin}/cp (100%)
 rename bin/{ => darwin}/sed (100%)

diff --git a/bin/cp b/bin/darwin/cp
similarity index 100%
rename from bin/cp
rename to bin/darwin/cp
diff --git a/bin/sed b/bin/darwin/sed
similarity index 100%
rename from bin/sed
rename to bin/darwin/sed
diff --git a/conf/bitbake.conf b/conf/bitbake.conf
index f1dc0ff..d03d7e3 100644
--- a/conf/bitbake.conf
+++ b/conf/bitbake.conf
@@ -421,8 +421,9 @@ EXTRA_IMAGEDEPENDS = ""
 
 LIBTOOL_HAS_SYSROOT ?= "no"
 
-PATH_prepend = "${STAGING_BINDIR_CROSS}:${STAGING_DIR_NATIVE}${sbindir_native}:${STAGING_BINDIR_NATIVE}:${STAGING_DIR_NATIVE}${base_sbindir_native}:${STAGING_DIR_NATIVE}/${base_bindir_native}:"
-export PATH
+BBPATH_BIN = "${@':'.join('%s/bin' % path for path in '${BBPATH}'.split(':'))}"
+PATH =. "${BBPATH_BIN}:${STAGING_BINDIR_CROSS}:${STAGING_DIR_NATIVE}${sbindir_native}:${STAGING_BINDIR_NATIVE}:${STAGING_DIR_NATIVE}${base_sbindir_native}:${STAGING_DIR_NATIVE}/${base_bindir_native}:"
+PATH[export] = "1"
 
 ##################################################################
 # Build utility info.
diff --git a/conf/build/Power Macintosh-darwin.conf b/conf/build/Power Macintosh-darwin.conf
index effddbf..b42051b 100644
--- a/conf/build/Power Macintosh-darwin.conf	
+++ b/conf/build/Power Macintosh-darwin.conf	
@@ -1,4 +1,4 @@
-PATH =. "${@bb.which('${BBPATH}', 'bin')}:"
+PATH =. "${@bb.which('${BBPATH}', 'bin')}/darwin:"
 BUILD_ARCH = "powerpc"
 
 require conf/build/darwin/utilities.inc
diff --git a/conf/build/i386-darwin.conf b/conf/build/i386-darwin.conf
index c9e81b9..bdcb075 100644
--- a/conf/build/i386-darwin.conf
+++ b/conf/build/i386-darwin.conf
@@ -1,4 +1,4 @@
-PATH =. "${@bb.which('${BBPATH}', 'bin')}:"
+PATH =. "${@bb.which('${BBPATH}', 'bin')}/darwin:"
 BUILD_CC_ARCH += "-m32"
 
 require conf/build/darwin/utilities.inc
-- 
1.7.2.3




^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH 2/4] Move stage-manager-* into bin/ rather than a recipe
  2011-01-18 15:18 [PATCH 1/4] bitbake.conf: include bin dirs from BBPATH in PATH Chris Larson
@ 2011-01-18 15:18 ` Chris Larson
  2011-01-18 20:35   ` Khem Raj
  2011-01-26 19:31   ` Eric Bénard
  2011-01-18 15:18 ` [PATCH 3/4] Add install wrapper rather than coreutils-native Chris Larson
                   ` (3 subsequent siblings)
  4 siblings, 2 replies; 14+ messages in thread
From: Chris Larson @ 2011-01-18 15:18 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Chris Larson

From: Chris Larson <chris_larson@mentor.com>

Signed-off-by: Chris Larson <chris_larson@mentor.com>
---
 {recipes/stage-manager/files => bin}/stage-manager |    3 --
 .../stage-manager/files => bin}/stage-manager-ipkg |   26 ++++++++++----------
 .../files => bin}/stage-manager-ipkg-build         |    6 ++--
 classes/base.bbclass                               |    5 +--
 classes/packaged-staging.bbclass                   |    5 ----
 recipes/stage-manager/stagemanager-native_0.0.1.bb |   26 --------------------
 6 files changed, 18 insertions(+), 53 deletions(-)
 rename {recipes/stage-manager/files => bin}/stage-manager (99%)
 rename {recipes/stage-manager/files => bin}/stage-manager-ipkg (98%)
 rename {recipes/stage-manager/files => bin}/stage-manager-ipkg-build (99%)
 delete mode 100644 recipes/stage-manager/stagemanager-native_0.0.1.bb

diff --git a/recipes/stage-manager/files/stage-manager b/bin/stage-manager
similarity index 99%
rename from recipes/stage-manager/files/stage-manager
rename to bin/stage-manager
index 0c01a18..5b47791 100755
--- a/recipes/stage-manager/files/stage-manager
+++ b/bin/stage-manager
@@ -151,6 +151,3 @@ if __name__ == "__main__":
     if found_difference:
         sys.exit(5)
     sys.exit(0)
-
-
-
diff --git a/recipes/stage-manager/files/stage-manager-ipkg b/bin/stage-manager-ipkg
similarity index 98%
rename from recipes/stage-manager/files/stage-manager-ipkg
rename to bin/stage-manager-ipkg
index 105ea54..456bc78 100755
--- a/recipes/stage-manager/files/stage-manager-ipkg
+++ b/bin/stage-manager-ipkg
@@ -131,15 +131,15 @@ Valid destinations are directories or one of the dest names from $IPKG_CONF:" >&
 	IPKG_HTTP_PROXY=`ipkg_option http_proxy`
 	IPKG_FTP_PROXY=`ipkg_option ftp_proxy`
 	IPKG_NO_PROXY=`ipkg_option no_proxy`
-	if [ -n "$IPKG_HTTP_PROXY" ]; then 
+	if [ -n "$IPKG_HTTP_PROXY" ]; then
 		export http_proxy="$IPKG_HTTP_PROXY"
 	fi
 
-	if [ -n "$IPKG_FTP_PROXY" ]; then 
+	if [ -n "$IPKG_FTP_PROXY" ]; then
 		export ftp_proxy="$IPKG_FTP_PROXY"
 	fi
 
-	if [ -n "$IPKG_NO_PROXY" ]; then 
+	if [ -n "$IPKG_NO_PROXY" ]; then
 		export no_proxy="$IPKG_NO_PROXY"
 	fi
 
@@ -175,7 +175,7 @@ Options:
 				configuration file, (but can also be a directory
 				name in a pinch).
         -o <offline_root>       Use <offline_root> as the root for offline installation.
-        -offline <offline_root> 				
+        -offline <offline_root>
 
 Force Options (use when ipkg is too smart for its own good):
 	-force-depends          Make dependency checks warnings instead of errors
@@ -221,7 +221,7 @@ ipkg_download() {
 	local proxyuser=""
 	local proxypassword=""
 	local proxyoption=""
-		
+
 	if [ -n "$IPKG_PROXY_USERNAME" ]; then
 		proxyuser="--proxy-user=\"$IPKG_PROXY_USERNAME\""
 		proxypassword="--proxy-passwd=\"$IPKG_PROXY_PASSWORD\""
@@ -276,7 +276,7 @@ ipkg_update() {
 
 ipkg_list() {
 	for src in `ipkg_src_names`; do
-		if ipkg_require_list $src; then 
+		if ipkg_require_list $src; then
 # black magic...
 sed -ne "
 /^Package:/{
@@ -342,7 +342,7 @@ ipkg_info() {
 			case $# in
 			0)
 				cat $IPKG_LISTS_DIR/$src
-				;;	
+				;;
 			1)
 				ipkg_extract_paragraph $1 < $IPKG_LISTS_DIR/$src
 				;;
@@ -545,7 +545,7 @@ ipkg_safe_pkg_name() {
 }
 
 ipkg_set_depends() {
-	local pkg=$1; shift 
+	local pkg=$1; shift
 	local new_deps="$*"
 	pkg=`ipkg_safe_pkg_name $pkg`
 	## setvar ${pkg}_depends "$new_deps"
@@ -672,7 +672,7 @@ Status: install ok not-installed" | ipkg_status_update_sd $sd $pkg
 				new_pkgs="$new_pkgs $pkg"
 				### echo "Dependences not satisfied for $pkg: $remaining_deps"
 				if [ $curcheck -ne `echo  $pkgs|wc -w` ]; then
-			        	continue
+					continue
 				fi
 			fi
 
@@ -886,7 +886,7 @@ diff -u $dest/$conffile $IPKG_TMP/$pkg/data/$conffile"
 	fi
 
 	local owd=`pwd`
-	(cd $IPKG_TMP/$pkg/data/; tar cf - . | (cd $owd; cd $dest; tar xf -))		
+	(cd $IPKG_TMP/$pkg/data/; tar cf - . | (cd $owd; cd $dest; tar xf -))
 	rm -rf $IPKG_TMP/$pkg/data
 	rmdir $IPKG_TMP/$pkg
 	rm -f $IPKG_TMP/data.tar.gz $IPKG_TMP/data.tar
@@ -924,7 +924,7 @@ ipkg_install() {
 	while [ $# -gt 0 ]; do
 		local pkg="$1"
 		shift
-	
+
 		case "$pkg" in
 		http://* | ftp://*)
 			local tmp_pkg_file="$IPKG_TMP/"`ipkg_file_part $pkg`
@@ -1013,7 +1013,7 @@ ipkg_upgrade_pkg() {
 				return 0
 			fi
 
-			if [ "$avail_ver" = "$inst_ver" ]; then 
+			if [ "$avail_ver" = "$inst_ver" ]; then
 				echo "Package $pkg ($inst_ver) installed in $dest_name is up to date"
 			elif ipkg-compare-versions $avail_ver '>>' $inst_ver; then
 				echo "Upgrading $pkg ($dest_name) from $inst_ver to $avail_ver"
@@ -1037,7 +1037,7 @@ ipkg_upgrade() {
 	else
 		pkgs="$*"
 	fi
-	
+
 	for pkg in $pkgs; do
 		ipkg_upgrade_pkg $pkg
 	done
diff --git a/recipes/stage-manager/files/stage-manager-ipkg-build b/bin/stage-manager-ipkg-build
similarity index 99%
rename from recipes/stage-manager/files/stage-manager-ipkg-build
rename to bin/stage-manager-ipkg-build
index 77367ac..1a5e2597 100755
--- a/recipes/stage-manager/files/stage-manager-ipkg-build
+++ b/bin/stage-manager-ipkg-build
@@ -68,7 +68,7 @@ You probably want to chown these to a system user: " >&2
 		ls -ld $large_uid_files
 		echo >&2
 	fi
-	    
+
 
 	if [ ! -f "$CONTROL/control" ]; then
 		echo "*** Error: Control file $pkg_dir/$CONTROL/control not found." >&2
@@ -109,7 +109,7 @@ You probably want to chown these to a system user: " >&2
 	source=`required_field Source`
 	[ "$?" -ne 0 ] && PKG_ERROR=1
 	if [ -z "$source" ]; then
-	    echo "The Source field contain the URL's or filenames of the source code and any patches" 
+	    echo "The Source field contain the URL's or filenames of the source code and any patches"
 	    echo "used to build this package.  Either gnu-style tarballs or Debian source packages "
 	    echo "are acceptable.  Relative filenames may be used if they are distributed in the same"
 	    echo "directory as the .ipk file."
@@ -196,7 +196,7 @@ case $# in
 	;;
 *)
 	echo $usage >&2
-	exit 1 
+	exit 1
 	;;
 esac
 
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 308498f..6fa292e 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -61,8 +61,7 @@ def base_deps(d):
 	# that case though.
 	#
 	deps = "coreutils-native"
-	if bb.data.getVar('PN', d, True) in ("shasum-native", "stagemanager-native",
-	                                     "coreutils-native"):
+	if bb.data.getVar('PN', d, True) in ("shasum-native", "coreutils-native"):
 		deps = ""
 
 	# INHIBIT_DEFAULT_DEPS doesn't apply to the patch command.  Whether or  not
@@ -76,7 +75,7 @@ def base_deps(d):
 				bb.data.getVar('PN', d, True) not in \
 				("linux-libc-headers-native", "quilt-native",
 				 "unifdef-native", "shasum-native",
-				 "stagemanager-native", "coreutils-native"):
+				 "coreutils-native"):
 			deps += " linux-libc-headers-native"
 	return deps
 
diff --git a/classes/packaged-staging.bbclass b/classes/packaged-staging.bbclass
index e968e4d..19d84bd 100644
--- a/classes/packaged-staging.bbclass
+++ b/classes/packaged-staging.bbclass
@@ -23,7 +23,6 @@ PSTAGE_SCAN_CMD ?= "find ${PSTAGE_TMPDIR_STAGE} \( -name "*.la" -o -name "*-conf
 
 PSTAGE_NATIVEDEPENDS = "\
     shasum-native \
-    stagemanager-native \
     "
 
 BB_STAMP_WHITELIST = "${PSTAGE_NATIVEDEPENDS}"
@@ -75,10 +74,6 @@ python __anonymous() {
     # Add task dependencies if we're active, otherwise mark packaged staging
     # as inactive.
     if pstage_allowed:
-        deps = bb.data.getVarFlag('do_setscene', 'depends', d) or ""
-        deps += " stagemanager-native:do_populate_sysroot"
-        bb.data.setVarFlag('do_setscene', 'depends', deps, d)
-
         policy = bb.data.getVar("BB_STAMP_POLICY", d, True)
         if policy == "whitelist" or policy == "full":
            deps = bb.data.getVarFlag('do_setscene', 'recrdeptask', d) or ""
diff --git a/recipes/stage-manager/stagemanager-native_0.0.1.bb b/recipes/stage-manager/stagemanager-native_0.0.1.bb
deleted file mode 100644
index 9577749..0000000
--- a/recipes/stage-manager/stagemanager-native_0.0.1.bb
+++ /dev/null
@@ -1,26 +0,0 @@
-DESCRIPTION = "Helper script for packaged-staging.bbclass"
-PR = "r15"
-
-SRC_URI = "file://stage-manager \
-           file://stage-manager-ipkg \
-           file://stage-manager-ipkg-build "
-LICENSE = "GPLv2"
-
-PACKAGE_ARCH = "all"
-
-inherit native
-
-DEPENDS = " "
-PACKAGE_DEPENDS = " "
-PATCHDEPENDENCY = ""
-INHIBIT_DEFAULT_DEPS = "1"
-
-PSTAGING_DISABLED = "1"
-
-NATIVE_INSTALL_WORKS = "1"
-do_install() {
-	install -d ${STAGING_BINDIR}
-	install -m 0755 ${WORKDIR}/stage-manager ${STAGING_BINDIR}
-	install -m 0755 ${WORKDIR}/stage-manager-ipkg ${STAGING_BINDIR}
-	install -m 0755 ${WORKDIR}/stage-manager-ipkg-build ${STAGING_BINDIR}
-}
-- 
1.7.2.3




^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH 3/4] Add install wrapper rather than coreutils-native
  2011-01-18 15:18 [PATCH 1/4] bitbake.conf: include bin dirs from BBPATH in PATH Chris Larson
  2011-01-18 15:18 ` [PATCH 2/4] Move stage-manager-* into bin/ rather than a recipe Chris Larson
@ 2011-01-18 15:18 ` Chris Larson
  2011-01-18 20:36   ` Khem Raj
  2011-01-26 19:31   ` Eric Bénard
  2011-01-18 15:18 ` [PATCH 4/4] bin/install: implement -D internally Chris Larson
                   ` (2 subsequent siblings)
  4 siblings, 2 replies; 14+ messages in thread
From: Chris Larson @ 2011-01-18 15:18 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Chris Larson

From: Chris Larson <chris_larson@mentor.com>

Signed-off-by: Chris Larson <chris_larson@mentor.com>
---
 bin/darwin/cp              |    2 +-
 bin/darwin/sed             |    2 +-
 bin/install                |   28 ++++++++++++++++++++++++++++
 classes/base.bbclass       |   28 +++++++++-------------------
 classes/gpe.bbclass        |    2 +-
 classes/gpephone.bbclass   |    2 +-
 recipes/twin/twin_0.4.6.bb |    1 -
 7 files changed, 41 insertions(+), 24 deletions(-)
 create mode 100755 bin/install

diff --git a/bin/darwin/cp b/bin/darwin/cp
index 0a523b7..a753557 100755
--- a/bin/darwin/cp
+++ b/bin/darwin/cp
@@ -7,7 +7,7 @@
 # - Otherwise, we stick to what SuSv3 defines
 
 
-source $(dirname $0)/wrapper.sh
+source $(dirname $0)/../wrapper.sh
 
 saved=""
 while getopts fpaRHLP opt; do
diff --git a/bin/darwin/sed b/bin/darwin/sed
index 2200bd1..5c830e4 100755
--- a/bin/darwin/sed
+++ b/bin/darwin/sed
@@ -21,7 +21,7 @@
 # to reimplement -i internally in this script on some platforms.
 
 
-source $(dirname $0)/wrapper.sh
+source $(dirname $0)/../wrapper.sh
 
 case `uname -s` in
     Darwin)
diff --git a/bin/install b/bin/install
new file mode 100755
index 0000000..4ad8172
--- /dev/null
+++ b/bin/install
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+source $(dirname $0)/wrapper.sh
+
+saved=""
+while getopts dbCcMpSsvB:f:g:m:o: opt; do
+    case "$opt" in
+        s)
+            # Ignore strip argument
+            ;;
+        B|f|g|m|o)
+            save "-$opt"
+            save "$OPTARG"
+            ;;
+        \?)
+            exit 1
+            ;;
+        *)
+            save "-$opt"
+            ;;
+    esac
+done
+shift $(($OPTIND - 1))
+for arg; do
+    save "$arg"
+done
+
+exec_real
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 6fa292e..8804ec0 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -55,33 +55,23 @@ oe_runmake() {
 }
 
 def base_deps(d):
-	#
-	# Ideally this will check a flag so we will operate properly in
-	# the case where host == build == target, for now we don't work in
-	# that case though.
-	#
-	deps = "coreutils-native"
-	if bb.data.getVar('PN', d, True) in ("shasum-native", "coreutils-native"):
-		deps = ""
-
 	# INHIBIT_DEFAULT_DEPS doesn't apply to the patch command.  Whether or  not
 	# we need that built is the responsibility of the patch function / class, not
 	# the application.
 	if not bb.data.getVar('INHIBIT_DEFAULT_DEPS', d):
 		if (bb.data.getVar('HOST_SYS', d, 1) !=
-	     	    bb.data.getVar('BUILD_SYS', d, 1)):
-			deps += " virtual/${TARGET_PREFIX}gcc virtual/libc "
+		    bb.data.getVar('BUILD_SYS', d, 1)):
+			return "virtual/${TARGET_PREFIX}gcc virtual/libc"
 		elif bb.data.inherits_class('native', d) and \
 				bb.data.getVar('PN', d, True) not in \
 				("linux-libc-headers-native", "quilt-native",
-				 "unifdef-native", "shasum-native",
-				 "coreutils-native"):
-			deps += " linux-libc-headers-native"
-	return deps
+				 "unifdef-native", "shasum-native"):
+			return "linux-libc-headers-native"
+	return ""
 
-DEPENDS_prepend="${@base_deps(d)} "
-DEPENDS_virtclass-native_prepend="${@base_deps(d)} "
-DEPENDS_virtclass-nativesdk_prepend="${@base_deps(d)} "
+DEPENDS_prepend = "${@base_deps(d)} "
+DEPENDS_virtclass-native_prepend = "${@base_deps(d)} "
+DEPENDS_virtclass-nativesdk_prepend = "${@base_deps(d)} "
 
 
 SCENEFUNCS += "base_scenefunction"
@@ -89,7 +79,7 @@ SCENEFUNCS += "base_scenefunction"
 python base_scenefunction () {
 	stamp = bb.data.getVar('STAMP', d, 1) + ".needclean"
 	if os.path.exists(stamp):
-	        bb.build.exec_func("do_clean", d)
+		bb.build.exec_func("do_clean", d)
 }
 
 python base_do_setscene () {
diff --git a/classes/gpe.bbclass b/classes/gpe.bbclass
index a9ddec3..7e042ee 100644
--- a/classes/gpe.bbclass
+++ b/classes/gpe.bbclass
@@ -1,4 +1,4 @@
-DEPENDS_prepend = "coreutils-native virtual/libintl intltool-native "
+DEPENDS_prepend = "virtual/libintl intltool-native "
 GPE_TARBALL_SUFFIX ?= "gz"
 SRC_URI = "${GPE_MIRROR}/${PN}-${PV}.tar.${GPE_TARBALL_SUFFIX}"
 FILES_${PN} += "${datadir}/gpe ${datadir}/application-registry"
diff --git a/classes/gpephone.bbclass b/classes/gpephone.bbclass
index 57867b5..dffbaa9 100644
--- a/classes/gpephone.bbclass
+++ b/classes/gpephone.bbclass
@@ -1,4 +1,4 @@
-DEPENDS_prepend = "coreutils-native virtual/libintl intltool-native "
+DEPENDS_prepend = "virtual/libintl intltool-native "
 GPE_TARBALL_SUFFIX ?= "gz"
 SRC_URI = "${GPEPHONE_MIRROR}/${PN}-${PV}/${PN}-${PV}.tar.${GPE_TARBALL_SUFFIX}"
 FILES_${PN} += "${datadir}/gpe ${datadir}/application-registry"
diff --git a/recipes/twin/twin_0.4.6.bb b/recipes/twin/twin_0.4.6.bb
index c6c3fbd..3ea36f8 100644
--- a/recipes/twin/twin_0.4.6.bb
+++ b/recipes/twin/twin_0.4.6.bb
@@ -1,7 +1,6 @@
 DESCRIPTION = "Twin is a text-mode windowing environment: it draws and manages text windows on a text-mode display, like X11 does for graphical windows. It has a built-in window manager and terminal emulator, and can be used as server for remote clients in the same style as X11. It can display on Linux console, on X11 and inside itself."
 SECTION = "console/utils"
 
-DEPENDS = "coreutils-native"
 LICENSE = "GPL LGPL"
 SRC_URI = "http://linuz.sns.it/~max/twin/twin-0.4.6.tar.gz \
 	   file://cross_compile.patch"
-- 
1.7.2.3




^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH 4/4] bin/install: implement -D internally
  2011-01-18 15:18 [PATCH 1/4] bitbake.conf: include bin dirs from BBPATH in PATH Chris Larson
  2011-01-18 15:18 ` [PATCH 2/4] Move stage-manager-* into bin/ rather than a recipe Chris Larson
  2011-01-18 15:18 ` [PATCH 3/4] Add install wrapper rather than coreutils-native Chris Larson
@ 2011-01-18 15:18 ` Chris Larson
  2011-01-18 16:55   ` Tom Rini
                     ` (3 more replies)
  2011-01-18 20:35 ` [PATCH 1/4] bitbake.conf: include bin dirs from BBPATH in PATH Khem Raj
  2011-01-26 19:31 ` Eric Bénard
  4 siblings, 4 replies; 14+ messages in thread
From: Chris Larson @ 2011-01-18 15:18 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Chris Larson

From: Chris Larson <chris_larson@mentor.com>

Signed-off-by: Chris Larson <chris_larson@mentor.com>
---
 bin/install |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/bin/install b/bin/install
index 4ad8172..1c938755 100755
--- a/bin/install
+++ b/bin/install
@@ -1,9 +1,13 @@
 #!/bin/sh
+#
+# Portability notes:
+# - We allow what SuSv3 defines
+# - We implement -D internally
 
 source $(dirname $0)/wrapper.sh
 
 saved=""
-while getopts dbCcMpSsvB:f:g:m:o: opt; do
+while getopts dbCcMpSsvB:f:g:m:o:D opt; do
     case "$opt" in
         s)
             # Ignore strip argument
@@ -12,6 +16,9 @@ while getopts dbCcMpSsvB:f:g:m:o: opt; do
             save "-$opt"
             save "$OPTARG"
             ;;
+        D)
+            createleading="1"
+            ;;
         \?)
             exit 1
             ;;
@@ -25,4 +32,8 @@ for arg; do
     save "$arg"
 done
 
+if [ $# == 2 -a -n "$createleading" ]; then
+    install -d $(dirname $2)
+fi
+
 exec_real
-- 
1.7.2.3




^ permalink raw reply related	[flat|nested] 14+ messages in thread

* Re: [PATCH 4/4] bin/install: implement -D internally
  2011-01-18 15:18 ` [PATCH 4/4] bin/install: implement -D internally Chris Larson
@ 2011-01-18 16:55   ` Tom Rini
  2011-01-18 20:37   ` Khem Raj
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 14+ messages in thread
From: Tom Rini @ 2011-01-18 16:55 UTC (permalink / raw)
  To: openembedded-devel

On 01/18/2011 08:18 AM, Chris Larson wrote:
> From: Chris Larson<chris_larson@mentor.com>
>
> Signed-off-by: Chris Larson<chris_larson@mentor.com>

Fold this into #3?

> ---
>   bin/install |   13 ++++++++++++-
>   1 files changed, 12 insertions(+), 1 deletions(-)
>
> diff --git a/bin/install b/bin/install
> index 4ad8172..1c938755 100755
> --- a/bin/install
> +++ b/bin/install
> @@ -1,9 +1,13 @@
>   #!/bin/sh
> +#
> +# Portability notes:
> +# - We allow what SuSv3 defines
> +# - We implement -D internally
>
>   source $(dirname $0)/wrapper.sh
>
>   saved=""
> -while getopts dbCcMpSsvB:f:g:m:o: opt; do
> +while getopts dbCcMpSsvB:f:g:m:o:D opt; do
>       case "$opt" in
>           s)
>               # Ignore strip argument
> @@ -12,6 +16,9 @@ while getopts dbCcMpSsvB:f:g:m:o: opt; do
>               save "-$opt"
>               save "$OPTARG"
>               ;;
> +        D)
> +            createleading="1"
> +            ;;
>           \?)
>               exit 1
>               ;;
> @@ -25,4 +32,8 @@ for arg; do
>       save "$arg"
>   done
>
> +if [ $# == 2 -a -n "$createleading" ]; then
> +    install -d $(dirname $2)
> +fi
> +
>   exec_real


-- 
Tom Rini
Mentor Graphics Corporation



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 1/4] bitbake.conf: include bin dirs from BBPATH in PATH
  2011-01-18 15:18 [PATCH 1/4] bitbake.conf: include bin dirs from BBPATH in PATH Chris Larson
                   ` (2 preceding siblings ...)
  2011-01-18 15:18 ` [PATCH 4/4] bin/install: implement -D internally Chris Larson
@ 2011-01-18 20:35 ` Khem Raj
  2011-01-26 19:31 ` Eric Bénard
  4 siblings, 0 replies; 14+ messages in thread
From: Khem Raj @ 2011-01-18 20:35 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Chris Larson

On Tue, Jan 18, 2011 at 7:18 AM, Chris Larson <kergoth@gmail.com> wrote:
> From: Chris Larson <chris_larson@mentor.com>
>
> Signed-off-by: Chris Larson <chris_larson@mentor.com>

Acked-by: Khem Raj <raj.khem@gmail.com>

> ---
>  bin/{ => darwin}/cp                    |    0
>  bin/{ => darwin}/sed                   |    0
>  conf/bitbake.conf                      |    5 +++--
>  conf/build/Power Macintosh-darwin.conf |    2 +-
>  conf/build/i386-darwin.conf            |    2 +-
>  5 files changed, 5 insertions(+), 4 deletions(-)
>  rename bin/{ => darwin}/cp (100%)
>  rename bin/{ => darwin}/sed (100%)
>
> diff --git a/bin/cp b/bin/darwin/cp
> similarity index 100%
> rename from bin/cp
> rename to bin/darwin/cp
> diff --git a/bin/sed b/bin/darwin/sed
> similarity index 100%
> rename from bin/sed
> rename to bin/darwin/sed
> diff --git a/conf/bitbake.conf b/conf/bitbake.conf
> index f1dc0ff..d03d7e3 100644
> --- a/conf/bitbake.conf
> +++ b/conf/bitbake.conf
> @@ -421,8 +421,9 @@ EXTRA_IMAGEDEPENDS = ""
>
>  LIBTOOL_HAS_SYSROOT ?= "no"
>
> -PATH_prepend = "${STAGING_BINDIR_CROSS}:${STAGING_DIR_NATIVE}${sbindir_native}:${STAGING_BINDIR_NATIVE}:${STAGING_DIR_NATIVE}${base_sbindir_native}:${STAGING_DIR_NATIVE}/${base_bindir_native}:"
> -export PATH
> +BBPATH_BIN = "${@':'.join('%s/bin' % path for path in '${BBPATH}'.split(':'))}"
> +PATH =. "${BBPATH_BIN}:${STAGING_BINDIR_CROSS}:${STAGING_DIR_NATIVE}${sbindir_native}:${STAGING_BINDIR_NATIVE}:${STAGING_DIR_NATIVE}${base_sbindir_native}:${STAGING_DIR_NATIVE}/${base_bindir_native}:"
> +PATH[export] = "1"
>
>  ##################################################################
>  # Build utility info.
> diff --git a/conf/build/Power Macintosh-darwin.conf b/conf/build/Power Macintosh-darwin.conf
> index effddbf..b42051b 100644
> --- a/conf/build/Power Macintosh-darwin.conf
> +++ b/conf/build/Power Macintosh-darwin.conf
> @@ -1,4 +1,4 @@
> -PATH =. "${@bb.which('${BBPATH}', 'bin')}:"
> +PATH =. "${@bb.which('${BBPATH}', 'bin')}/darwin:"
>  BUILD_ARCH = "powerpc"
>
>  require conf/build/darwin/utilities.inc
> diff --git a/conf/build/i386-darwin.conf b/conf/build/i386-darwin.conf
> index c9e81b9..bdcb075 100644
> --- a/conf/build/i386-darwin.conf
> +++ b/conf/build/i386-darwin.conf
> @@ -1,4 +1,4 @@
> -PATH =. "${@bb.which('${BBPATH}', 'bin')}:"
> +PATH =. "${@bb.which('${BBPATH}', 'bin')}/darwin:"
>  BUILD_CC_ARCH += "-m32"
>
>  require conf/build/darwin/utilities.inc
> --
> 1.7.2.3
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 2/4] Move stage-manager-* into bin/ rather than a recipe
  2011-01-18 15:18 ` [PATCH 2/4] Move stage-manager-* into bin/ rather than a recipe Chris Larson
@ 2011-01-18 20:35   ` Khem Raj
  2011-01-26 19:31   ` Eric Bénard
  1 sibling, 0 replies; 14+ messages in thread
From: Khem Raj @ 2011-01-18 20:35 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Chris Larson

On Tue, Jan 18, 2011 at 7:18 AM, Chris Larson <kergoth@gmail.com> wrote:
> From: Chris Larson <chris_larson@mentor.com>
>
> Signed-off-by: Chris Larson <chris_larson@mentor.com>


Acked-by: Khem Raj <raj.khem@gmail.com>

> ---
>  {recipes/stage-manager/files => bin}/stage-manager |    3 --
>  .../stage-manager/files => bin}/stage-manager-ipkg |   26 ++++++++++----------
>  .../files => bin}/stage-manager-ipkg-build         |    6 ++--
>  classes/base.bbclass                               |    5 +--
>  classes/packaged-staging.bbclass                   |    5 ----
>  recipes/stage-manager/stagemanager-native_0.0.1.bb |   26 --------------------
>  6 files changed, 18 insertions(+), 53 deletions(-)
>  rename {recipes/stage-manager/files => bin}/stage-manager (99%)
>  rename {recipes/stage-manager/files => bin}/stage-manager-ipkg (98%)
>  rename {recipes/stage-manager/files => bin}/stage-manager-ipkg-build (99%)
>  delete mode 100644 recipes/stage-manager/stagemanager-native_0.0.1.bb
>
> diff --git a/recipes/stage-manager/files/stage-manager b/bin/stage-manager
> similarity index 99%
> rename from recipes/stage-manager/files/stage-manager
> rename to bin/stage-manager
> index 0c01a18..5b47791 100755
> --- a/recipes/stage-manager/files/stage-manager
> +++ b/bin/stage-manager
> @@ -151,6 +151,3 @@ if __name__ == "__main__":
>     if found_difference:
>         sys.exit(5)
>     sys.exit(0)
> -
> -
> -
> diff --git a/recipes/stage-manager/files/stage-manager-ipkg b/bin/stage-manager-ipkg
> similarity index 98%
> rename from recipes/stage-manager/files/stage-manager-ipkg
> rename to bin/stage-manager-ipkg
> index 105ea54..456bc78 100755
> --- a/recipes/stage-manager/files/stage-manager-ipkg
> +++ b/bin/stage-manager-ipkg
> @@ -131,15 +131,15 @@ Valid destinations are directories or one of the dest names from $IPKG_CONF:" >&
>        IPKG_HTTP_PROXY=`ipkg_option http_proxy`
>        IPKG_FTP_PROXY=`ipkg_option ftp_proxy`
>        IPKG_NO_PROXY=`ipkg_option no_proxy`
> -       if [ -n "$IPKG_HTTP_PROXY" ]; then
> +       if [ -n "$IPKG_HTTP_PROXY" ]; then
>                export http_proxy="$IPKG_HTTP_PROXY"
>        fi
>
> -       if [ -n "$IPKG_FTP_PROXY" ]; then
> +       if [ -n "$IPKG_FTP_PROXY" ]; then
>                export ftp_proxy="$IPKG_FTP_PROXY"
>        fi
>
> -       if [ -n "$IPKG_NO_PROXY" ]; then
> +       if [ -n "$IPKG_NO_PROXY" ]; then
>                export no_proxy="$IPKG_NO_PROXY"
>        fi
>
> @@ -175,7 +175,7 @@ Options:
>                                configuration file, (but can also be a directory
>                                name in a pinch).
>         -o <offline_root>       Use <offline_root> as the root for offline installation.
> -        -offline <offline_root>
> +        -offline <offline_root>
>
>  Force Options (use when ipkg is too smart for its own good):
>        -force-depends          Make dependency checks warnings instead of errors
> @@ -221,7 +221,7 @@ ipkg_download() {
>        local proxyuser=""
>        local proxypassword=""
>        local proxyoption=""
> -
> +
>        if [ -n "$IPKG_PROXY_USERNAME" ]; then
>                proxyuser="--proxy-user=\"$IPKG_PROXY_USERNAME\""
>                proxypassword="--proxy-passwd=\"$IPKG_PROXY_PASSWORD\""
> @@ -276,7 +276,7 @@ ipkg_update() {
>
>  ipkg_list() {
>        for src in `ipkg_src_names`; do
> -               if ipkg_require_list $src; then
> +               if ipkg_require_list $src; then
>  # black magic...
>  sed -ne "
>  /^Package:/{
> @@ -342,7 +342,7 @@ ipkg_info() {
>                        case $# in
>                        0)
>                                cat $IPKG_LISTS_DIR/$src
> -                               ;;
> +                               ;;
>                        1)
>                                ipkg_extract_paragraph $1 < $IPKG_LISTS_DIR/$src
>                                ;;
> @@ -545,7 +545,7 @@ ipkg_safe_pkg_name() {
>  }
>
>  ipkg_set_depends() {
> -       local pkg=$1; shift
> +       local pkg=$1; shift
>        local new_deps="$*"
>        pkg=`ipkg_safe_pkg_name $pkg`
>        ## setvar ${pkg}_depends "$new_deps"
> @@ -672,7 +672,7 @@ Status: install ok not-installed" | ipkg_status_update_sd $sd $pkg
>                                new_pkgs="$new_pkgs $pkg"
>                                ### echo "Dependences not satisfied for $pkg: $remaining_deps"
>                                if [ $curcheck -ne `echo  $pkgs|wc -w` ]; then
> -                                       continue
> +                                       continue
>                                fi
>                        fi
>
> @@ -886,7 +886,7 @@ diff -u $dest/$conffile $IPKG_TMP/$pkg/data/$conffile"
>        fi
>
>        local owd=`pwd`
> -       (cd $IPKG_TMP/$pkg/data/; tar cf - . | (cd $owd; cd $dest; tar xf -))
> +       (cd $IPKG_TMP/$pkg/data/; tar cf - . | (cd $owd; cd $dest; tar xf -))
>        rm -rf $IPKG_TMP/$pkg/data
>        rmdir $IPKG_TMP/$pkg
>        rm -f $IPKG_TMP/data.tar.gz $IPKG_TMP/data.tar
> @@ -924,7 +924,7 @@ ipkg_install() {
>        while [ $# -gt 0 ]; do
>                local pkg="$1"
>                shift
> -
> +
>                case "$pkg" in
>                http://* | ftp://*)
>                        local tmp_pkg_file="$IPKG_TMP/"`ipkg_file_part $pkg`
> @@ -1013,7 +1013,7 @@ ipkg_upgrade_pkg() {
>                                return 0
>                        fi
>
> -                       if [ "$avail_ver" = "$inst_ver" ]; then
> +                       if [ "$avail_ver" = "$inst_ver" ]; then
>                                echo "Package $pkg ($inst_ver) installed in $dest_name is up to date"
>                        elif ipkg-compare-versions $avail_ver '>>' $inst_ver; then
>                                echo "Upgrading $pkg ($dest_name) from $inst_ver to $avail_ver"
> @@ -1037,7 +1037,7 @@ ipkg_upgrade() {
>        else
>                pkgs="$*"
>        fi
> -
> +
>        for pkg in $pkgs; do
>                ipkg_upgrade_pkg $pkg
>        done
> diff --git a/recipes/stage-manager/files/stage-manager-ipkg-build b/bin/stage-manager-ipkg-build
> similarity index 99%
> rename from recipes/stage-manager/files/stage-manager-ipkg-build
> rename to bin/stage-manager-ipkg-build
> index 77367ac..1a5e2597 100755
> --- a/recipes/stage-manager/files/stage-manager-ipkg-build
> +++ b/bin/stage-manager-ipkg-build
> @@ -68,7 +68,7 @@ You probably want to chown these to a system user: " >&2
>                ls -ld $large_uid_files
>                echo >&2
>        fi
> -
> +
>
>        if [ ! -f "$CONTROL/control" ]; then
>                echo "*** Error: Control file $pkg_dir/$CONTROL/control not found." >&2
> @@ -109,7 +109,7 @@ You probably want to chown these to a system user: " >&2
>        source=`required_field Source`
>        [ "$?" -ne 0 ] && PKG_ERROR=1
>        if [ -z "$source" ]; then
> -           echo "The Source field contain the URL's or filenames of the source code and any patches"
> +           echo "The Source field contain the URL's or filenames of the source code and any patches"
>            echo "used to build this package.  Either gnu-style tarballs or Debian source packages "
>            echo "are acceptable.  Relative filenames may be used if they are distributed in the same"
>            echo "directory as the .ipk file."
> @@ -196,7 +196,7 @@ case $# in
>        ;;
>  *)
>        echo $usage >&2
> -       exit 1
> +       exit 1
>        ;;
>  esac
>
> diff --git a/classes/base.bbclass b/classes/base.bbclass
> index 308498f..6fa292e 100644
> --- a/classes/base.bbclass
> +++ b/classes/base.bbclass
> @@ -61,8 +61,7 @@ def base_deps(d):
>        # that case though.
>        #
>        deps = "coreutils-native"
> -       if bb.data.getVar('PN', d, True) in ("shasum-native", "stagemanager-native",
> -                                            "coreutils-native"):
> +       if bb.data.getVar('PN', d, True) in ("shasum-native", "coreutils-native"):
>                deps = ""
>
>        # INHIBIT_DEFAULT_DEPS doesn't apply to the patch command.  Whether or  not
> @@ -76,7 +75,7 @@ def base_deps(d):
>                                bb.data.getVar('PN', d, True) not in \
>                                ("linux-libc-headers-native", "quilt-native",
>                                 "unifdef-native", "shasum-native",
> -                                "stagemanager-native", "coreutils-native"):
> +                                "coreutils-native"):
>                        deps += " linux-libc-headers-native"
>        return deps
>
> diff --git a/classes/packaged-staging.bbclass b/classes/packaged-staging.bbclass
> index e968e4d..19d84bd 100644
> --- a/classes/packaged-staging.bbclass
> +++ b/classes/packaged-staging.bbclass
> @@ -23,7 +23,6 @@ PSTAGE_SCAN_CMD ?= "find ${PSTAGE_TMPDIR_STAGE} \( -name "*.la" -o -name "*-conf
>
>  PSTAGE_NATIVEDEPENDS = "\
>     shasum-native \
> -    stagemanager-native \
>     "
>
>  BB_STAMP_WHITELIST = "${PSTAGE_NATIVEDEPENDS}"
> @@ -75,10 +74,6 @@ python __anonymous() {
>     # Add task dependencies if we're active, otherwise mark packaged staging
>     # as inactive.
>     if pstage_allowed:
> -        deps = bb.data.getVarFlag('do_setscene', 'depends', d) or ""
> -        deps += " stagemanager-native:do_populate_sysroot"
> -        bb.data.setVarFlag('do_setscene', 'depends', deps, d)
> -
>         policy = bb.data.getVar("BB_STAMP_POLICY", d, True)
>         if policy == "whitelist" or policy == "full":
>            deps = bb.data.getVarFlag('do_setscene', 'recrdeptask', d) or ""
> diff --git a/recipes/stage-manager/stagemanager-native_0.0.1.bb b/recipes/stage-manager/stagemanager-native_0.0.1.bb
> deleted file mode 100644
> index 9577749..0000000
> --- a/recipes/stage-manager/stagemanager-native_0.0.1.bb
> +++ /dev/null
> @@ -1,26 +0,0 @@
> -DESCRIPTION = "Helper script for packaged-staging.bbclass"
> -PR = "r15"
> -
> -SRC_URI = "file://stage-manager \
> -           file://stage-manager-ipkg \
> -           file://stage-manager-ipkg-build "
> -LICENSE = "GPLv2"
> -
> -PACKAGE_ARCH = "all"
> -
> -inherit native
> -
> -DEPENDS = " "
> -PACKAGE_DEPENDS = " "
> -PATCHDEPENDENCY = ""
> -INHIBIT_DEFAULT_DEPS = "1"
> -
> -PSTAGING_DISABLED = "1"
> -
> -NATIVE_INSTALL_WORKS = "1"
> -do_install() {
> -       install -d ${STAGING_BINDIR}
> -       install -m 0755 ${WORKDIR}/stage-manager ${STAGING_BINDIR}
> -       install -m 0755 ${WORKDIR}/stage-manager-ipkg ${STAGING_BINDIR}
> -       install -m 0755 ${WORKDIR}/stage-manager-ipkg-build ${STAGING_BINDIR}
> -}
> --
> 1.7.2.3
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 3/4] Add install wrapper rather than coreutils-native
  2011-01-18 15:18 ` [PATCH 3/4] Add install wrapper rather than coreutils-native Chris Larson
@ 2011-01-18 20:36   ` Khem Raj
  2011-01-26 19:31   ` Eric Bénard
  1 sibling, 0 replies; 14+ messages in thread
From: Khem Raj @ 2011-01-18 20:36 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Chris Larson

On Tue, Jan 18, 2011 at 7:18 AM, Chris Larson <kergoth@gmail.com> wrote:
> From: Chris Larson <chris_larson@mentor.com>
>
> Signed-off-by: Chris Larson <chris_larson@mentor.com>


Acked-by: Khem Raj <raj.khem@gmail.com>
> ---
>  bin/darwin/cp              |    2 +-
>  bin/darwin/sed             |    2 +-
>  bin/install                |   28 ++++++++++++++++++++++++++++
>  classes/base.bbclass       |   28 +++++++++-------------------
>  classes/gpe.bbclass        |    2 +-
>  classes/gpephone.bbclass   |    2 +-
>  recipes/twin/twin_0.4.6.bb |    1 -
>  7 files changed, 41 insertions(+), 24 deletions(-)
>  create mode 100755 bin/install
>
> diff --git a/bin/darwin/cp b/bin/darwin/cp
> index 0a523b7..a753557 100755
> --- a/bin/darwin/cp
> +++ b/bin/darwin/cp
> @@ -7,7 +7,7 @@
>  # - Otherwise, we stick to what SuSv3 defines
>
>
> -source $(dirname $0)/wrapper.sh
> +source $(dirname $0)/../wrapper.sh
>
>  saved=""
>  while getopts fpaRHLP opt; do
> diff --git a/bin/darwin/sed b/bin/darwin/sed
> index 2200bd1..5c830e4 100755
> --- a/bin/darwin/sed
> +++ b/bin/darwin/sed
> @@ -21,7 +21,7 @@
>  # to reimplement -i internally in this script on some platforms.
>
>
> -source $(dirname $0)/wrapper.sh
> +source $(dirname $0)/../wrapper.sh
>
>  case `uname -s` in
>     Darwin)
> diff --git a/bin/install b/bin/install
> new file mode 100755
> index 0000000..4ad8172
> --- /dev/null
> +++ b/bin/install
> @@ -0,0 +1,28 @@
> +#!/bin/sh
> +
> +source $(dirname $0)/wrapper.sh
> +
> +saved=""
> +while getopts dbCcMpSsvB:f:g:m:o: opt; do
> +    case "$opt" in
> +        s)
> +            # Ignore strip argument
> +            ;;
> +        B|f|g|m|o)
> +            save "-$opt"
> +            save "$OPTARG"
> +            ;;
> +        \?)
> +            exit 1
> +            ;;
> +        *)
> +            save "-$opt"
> +            ;;
> +    esac
> +done
> +shift $(($OPTIND - 1))
> +for arg; do
> +    save "$arg"
> +done
> +
> +exec_real
> diff --git a/classes/base.bbclass b/classes/base.bbclass
> index 6fa292e..8804ec0 100644
> --- a/classes/base.bbclass
> +++ b/classes/base.bbclass
> @@ -55,33 +55,23 @@ oe_runmake() {
>  }
>
>  def base_deps(d):
> -       #
> -       # Ideally this will check a flag so we will operate properly in
> -       # the case where host == build == target, for now we don't work in
> -       # that case though.
> -       #
> -       deps = "coreutils-native"
> -       if bb.data.getVar('PN', d, True) in ("shasum-native", "coreutils-native"):
> -               deps = ""
> -
>        # INHIBIT_DEFAULT_DEPS doesn't apply to the patch command.  Whether or  not
>        # we need that built is the responsibility of the patch function / class, not
>        # the application.
>        if not bb.data.getVar('INHIBIT_DEFAULT_DEPS', d):
>                if (bb.data.getVar('HOST_SYS', d, 1) !=
> -                   bb.data.getVar('BUILD_SYS', d, 1)):
> -                       deps += " virtual/${TARGET_PREFIX}gcc virtual/libc "
> +                   bb.data.getVar('BUILD_SYS', d, 1)):
> +                       return "virtual/${TARGET_PREFIX}gcc virtual/libc"
>                elif bb.data.inherits_class('native', d) and \
>                                bb.data.getVar('PN', d, True) not in \
>                                ("linux-libc-headers-native", "quilt-native",
> -                                "unifdef-native", "shasum-native",
> -                                "coreutils-native"):
> -                       deps += " linux-libc-headers-native"
> -       return deps
> +                                "unifdef-native", "shasum-native"):
> +                       return "linux-libc-headers-native"
> +       return ""
>
> -DEPENDS_prepend="${@base_deps(d)} "
> -DEPENDS_virtclass-native_prepend="${@base_deps(d)} "
> -DEPENDS_virtclass-nativesdk_prepend="${@base_deps(d)} "
> +DEPENDS_prepend = "${@base_deps(d)} "
> +DEPENDS_virtclass-native_prepend = "${@base_deps(d)} "
> +DEPENDS_virtclass-nativesdk_prepend = "${@base_deps(d)} "
>
>
>  SCENEFUNCS += "base_scenefunction"
> @@ -89,7 +79,7 @@ SCENEFUNCS += "base_scenefunction"
>  python base_scenefunction () {
>        stamp = bb.data.getVar('STAMP', d, 1) + ".needclean"
>        if os.path.exists(stamp):
> -               bb.build.exec_func("do_clean", d)
> +               bb.build.exec_func("do_clean", d)
>  }
>
>  python base_do_setscene () {
> diff --git a/classes/gpe.bbclass b/classes/gpe.bbclass
> index a9ddec3..7e042ee 100644
> --- a/classes/gpe.bbclass
> +++ b/classes/gpe.bbclass
> @@ -1,4 +1,4 @@
> -DEPENDS_prepend = "coreutils-native virtual/libintl intltool-native "
> +DEPENDS_prepend = "virtual/libintl intltool-native "
>  GPE_TARBALL_SUFFIX ?= "gz"
>  SRC_URI = "${GPE_MIRROR}/${PN}-${PV}.tar.${GPE_TARBALL_SUFFIX}"
>  FILES_${PN} += "${datadir}/gpe ${datadir}/application-registry"
> diff --git a/classes/gpephone.bbclass b/classes/gpephone.bbclass
> index 57867b5..dffbaa9 100644
> --- a/classes/gpephone.bbclass
> +++ b/classes/gpephone.bbclass
> @@ -1,4 +1,4 @@
> -DEPENDS_prepend = "coreutils-native virtual/libintl intltool-native "
> +DEPENDS_prepend = "virtual/libintl intltool-native "
>  GPE_TARBALL_SUFFIX ?= "gz"
>  SRC_URI = "${GPEPHONE_MIRROR}/${PN}-${PV}/${PN}-${PV}.tar.${GPE_TARBALL_SUFFIX}"
>  FILES_${PN} += "${datadir}/gpe ${datadir}/application-registry"
> diff --git a/recipes/twin/twin_0.4.6.bb b/recipes/twin/twin_0.4.6.bb
> index c6c3fbd..3ea36f8 100644
> --- a/recipes/twin/twin_0.4.6.bb
> +++ b/recipes/twin/twin_0.4.6.bb
> @@ -1,7 +1,6 @@
>  DESCRIPTION = "Twin is a text-mode windowing environment: it draws and manages text windows on a text-mode display, like X11 does for graphical windows. It has a built-in window manager and terminal emulator, and can be used as server for remote clients in the same style as X11. It can display on Linux console, on X11 and inside itself."
>  SECTION = "console/utils"
>
> -DEPENDS = "coreutils-native"
>  LICENSE = "GPL LGPL"
>  SRC_URI = "http://linuz.sns.it/~max/twin/twin-0.4.6.tar.gz \
>           file://cross_compile.patch"
> --
> 1.7.2.3
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 4/4] bin/install: implement -D internally
  2011-01-18 15:18 ` [PATCH 4/4] bin/install: implement -D internally Chris Larson
  2011-01-18 16:55   ` Tom Rini
@ 2011-01-18 20:37   ` Khem Raj
  2011-01-26 19:31   ` Eric Bénard
  2011-01-26 20:26   ` Bernhard Reutner-Fischer
  3 siblings, 0 replies; 14+ messages in thread
From: Khem Raj @ 2011-01-18 20:37 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Chris Larson

On Tue, Jan 18, 2011 at 7:18 AM, Chris Larson <kergoth@gmail.com> wrote:
> From: Chris Larson <chris_larson@mentor.com>
>
> Signed-off-by: Chris Larson <chris_larson@mentor.com>


Acked-by: Khem Raj <raj.khem@gmail.com>
> ---
>  bin/install |   13 ++++++++++++-
>  1 files changed, 12 insertions(+), 1 deletions(-)
>
> diff --git a/bin/install b/bin/install
> index 4ad8172..1c938755 100755
> --- a/bin/install
> +++ b/bin/install
> @@ -1,9 +1,13 @@
>  #!/bin/sh
> +#
> +# Portability notes:
> +# - We allow what SuSv3 defines
> +# - We implement -D internally
>
>  source $(dirname $0)/wrapper.sh
>
>  saved=""
> -while getopts dbCcMpSsvB:f:g:m:o: opt; do
> +while getopts dbCcMpSsvB:f:g:m:o:D opt; do
>     case "$opt" in
>         s)
>             # Ignore strip argument
> @@ -12,6 +16,9 @@ while getopts dbCcMpSsvB:f:g:m:o: opt; do
>             save "-$opt"
>             save "$OPTARG"
>             ;;
> +        D)
> +            createleading="1"
> +            ;;
>         \?)
>             exit 1
>             ;;
> @@ -25,4 +32,8 @@ for arg; do
>     save "$arg"
>  done
>
> +if [ $# == 2 -a -n "$createleading" ]; then
> +    install -d $(dirname $2)
> +fi
> +
>  exec_real
> --
> 1.7.2.3
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 1/4] bitbake.conf: include bin dirs from BBPATH in PATH
  2011-01-18 15:18 [PATCH 1/4] bitbake.conf: include bin dirs from BBPATH in PATH Chris Larson
                   ` (3 preceding siblings ...)
  2011-01-18 20:35 ` [PATCH 1/4] bitbake.conf: include bin dirs from BBPATH in PATH Khem Raj
@ 2011-01-26 19:31 ` Eric Bénard
  4 siblings, 0 replies; 14+ messages in thread
From: Eric Bénard @ 2011-01-26 19:31 UTC (permalink / raw)
  To: openembedded-devel

On 18/01/2011 16:18, Chris Larson wrote:
> From: Chris Larson<chris_larson@mentor.com>
>
> Signed-off-by: Chris Larson<chris_larson@mentor.com>
Acked-by: Eric Bénard <eric@eukrea.com>
> ---
>   bin/{ =>  darwin}/cp                    |    0
>   bin/{ =>  darwin}/sed                   |    0
>   conf/bitbake.conf                      |    5 +++--
>   conf/build/Power Macintosh-darwin.conf |    2 +-
>   conf/build/i386-darwin.conf            |    2 +-
>   5 files changed, 5 insertions(+), 4 deletions(-)
>   rename bin/{ =>  darwin}/cp (100%)
>   rename bin/{ =>  darwin}/sed (100%)
>
> diff --git a/bin/cp b/bin/darwin/cp
> similarity index 100%
> rename from bin/cp
> rename to bin/darwin/cp
> diff --git a/bin/sed b/bin/darwin/sed
> similarity index 100%
> rename from bin/sed
> rename to bin/darwin/sed
> diff --git a/conf/bitbake.conf b/conf/bitbake.conf
> index f1dc0ff..d03d7e3 100644
> --- a/conf/bitbake.conf
> +++ b/conf/bitbake.conf
> @@ -421,8 +421,9 @@ EXTRA_IMAGEDEPENDS = ""
>
>   LIBTOOL_HAS_SYSROOT ?= "no"
>
> -PATH_prepend = "${STAGING_BINDIR_CROSS}:${STAGING_DIR_NATIVE}${sbindir_native}:${STAGING_BINDIR_NATIVE}:${STAGING_DIR_NATIVE}${base_sbindir_native}:${STAGING_DIR_NATIVE}/${base_bindir_native}:"
> -export PATH
> +BBPATH_BIN = "${@':'.join('%s/bin' % path for path in '${BBPATH}'.split(':'))}"
> +PATH =. "${BBPATH_BIN}:${STAGING_BINDIR_CROSS}:${STAGING_DIR_NATIVE}${sbindir_native}:${STAGING_BINDIR_NATIVE}:${STAGING_DIR_NATIVE}${base_sbindir_native}:${STAGING_DIR_NATIVE}/${base_bindir_native}:"
> +PATH[export] = "1"
>
>   ##################################################################
>   # Build utility info.
> diff --git a/conf/build/Power Macintosh-darwin.conf b/conf/build/Power Macintosh-darwin.conf
> index effddbf..b42051b 100644
> --- a/conf/build/Power Macintosh-darwin.conf	
> +++ b/conf/build/Power Macintosh-darwin.conf	
> @@ -1,4 +1,4 @@
> -PATH =. "${@bb.which('${BBPATH}', 'bin')}:"
> +PATH =. "${@bb.which('${BBPATH}', 'bin')}/darwin:"
>   BUILD_ARCH = "powerpc"
>
>   require conf/build/darwin/utilities.inc
> diff --git a/conf/build/i386-darwin.conf b/conf/build/i386-darwin.conf
> index c9e81b9..bdcb075 100644
> --- a/conf/build/i386-darwin.conf
> +++ b/conf/build/i386-darwin.conf
> @@ -1,4 +1,4 @@
> -PATH =. "${@bb.which('${BBPATH}', 'bin')}:"
> +PATH =. "${@bb.which('${BBPATH}', 'bin')}/darwin:"
>   BUILD_CC_ARCH += "-m32"
>
>   require conf/build/darwin/utilities.inc




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 2/4] Move stage-manager-* into bin/ rather than a recipe
  2011-01-18 15:18 ` [PATCH 2/4] Move stage-manager-* into bin/ rather than a recipe Chris Larson
  2011-01-18 20:35   ` Khem Raj
@ 2011-01-26 19:31   ` Eric Bénard
  1 sibling, 0 replies; 14+ messages in thread
From: Eric Bénard @ 2011-01-26 19:31 UTC (permalink / raw)
  To: openembedded-devel

On 18/01/2011 16:18, Chris Larson wrote:
> From: Chris Larson<chris_larson@mentor.com>
>
> Signed-off-by: Chris Larson<chris_larson@mentor.com>
Acked-by: Eric Bénard <eric@eukrea.com>
> ---
>   {recipes/stage-manager/files =>  bin}/stage-manager |    3 --
>   .../stage-manager/files =>  bin}/stage-manager-ipkg |   26 ++++++++++----------
>   .../files =>  bin}/stage-manager-ipkg-build         |    6 ++--
>   classes/base.bbclass                               |    5 +--
>   classes/packaged-staging.bbclass                   |    5 ----
>   recipes/stage-manager/stagemanager-native_0.0.1.bb |   26 --------------------
>   6 files changed, 18 insertions(+), 53 deletions(-)
>   rename {recipes/stage-manager/files =>  bin}/stage-manager (99%)
>   rename {recipes/stage-manager/files =>  bin}/stage-manager-ipkg (98%)
>   rename {recipes/stage-manager/files =>  bin}/stage-manager-ipkg-build (99%)
>   delete mode 100644 recipes/stage-manager/stagemanager-native_0.0.1.bb
>
> diff --git a/recipes/stage-manager/files/stage-manager b/bin/stage-manager
> similarity index 99%
> rename from recipes/stage-manager/files/stage-manager
> rename to bin/stage-manager
> index 0c01a18..5b47791 100755
> --- a/recipes/stage-manager/files/stage-manager
> +++ b/bin/stage-manager
> @@ -151,6 +151,3 @@ if __name__ == "__main__":
>       if found_difference:
>           sys.exit(5)
>       sys.exit(0)
> -
> -
> -
> diff --git a/recipes/stage-manager/files/stage-manager-ipkg b/bin/stage-manager-ipkg
> similarity index 98%
> rename from recipes/stage-manager/files/stage-manager-ipkg
> rename to bin/stage-manager-ipkg
> index 105ea54..456bc78 100755
> --- a/recipes/stage-manager/files/stage-manager-ipkg
> +++ b/bin/stage-manager-ipkg
> @@ -131,15 +131,15 @@ Valid destinations are directories or one of the dest names from $IPKG_CONF:">&
>   	IPKG_HTTP_PROXY=`ipkg_option http_proxy`
>   	IPKG_FTP_PROXY=`ipkg_option ftp_proxy`
>   	IPKG_NO_PROXY=`ipkg_option no_proxy`
> -	if [ -n "$IPKG_HTTP_PROXY" ]; then
> +	if [ -n "$IPKG_HTTP_PROXY" ]; then
>   		export http_proxy="$IPKG_HTTP_PROXY"
>   	fi
>
> -	if [ -n "$IPKG_FTP_PROXY" ]; then
> +	if [ -n "$IPKG_FTP_PROXY" ]; then
>   		export ftp_proxy="$IPKG_FTP_PROXY"
>   	fi
>
> -	if [ -n "$IPKG_NO_PROXY" ]; then
> +	if [ -n "$IPKG_NO_PROXY" ]; then
>   		export no_proxy="$IPKG_NO_PROXY"
>   	fi
>
> @@ -175,7 +175,7 @@ Options:
>   				configuration file, (but can also be a directory
>   				name in a pinch).
>           -o<offline_root>        Use<offline_root>  as the root for offline installation.
> -        -offline<offline_root>  				
> +        -offline<offline_root>
>
>   Force Options (use when ipkg is too smart for its own good):
>   	-force-depends          Make dependency checks warnings instead of errors
> @@ -221,7 +221,7 @@ ipkg_download() {
>   	local proxyuser=""
>   	local proxypassword=""
>   	local proxyoption=""
> -		
> +
>   	if [ -n "$IPKG_PROXY_USERNAME" ]; then
>   		proxyuser="--proxy-user=\"$IPKG_PROXY_USERNAME\""
>   		proxypassword="--proxy-passwd=\"$IPKG_PROXY_PASSWORD\""
> @@ -276,7 +276,7 @@ ipkg_update() {
>
>   ipkg_list() {
>   	for src in `ipkg_src_names`; do
> -		if ipkg_require_list $src; then
> +		if ipkg_require_list $src; then
>   # black magic...
>   sed -ne "
>   /^Package:/{
> @@ -342,7 +342,7 @@ ipkg_info() {
>   			case $# in
>   			0)
>   				cat $IPKG_LISTS_DIR/$src
> -				;;	
> +				;;
>   			1)
>   				ipkg_extract_paragraph $1<  $IPKG_LISTS_DIR/$src
>   				;;
> @@ -545,7 +545,7 @@ ipkg_safe_pkg_name() {
>   }
>
>   ipkg_set_depends() {
> -	local pkg=$1; shift
> +	local pkg=$1; shift
>   	local new_deps="$*"
>   	pkg=`ipkg_safe_pkg_name $pkg`
>   	## setvar ${pkg}_depends "$new_deps"
> @@ -672,7 +672,7 @@ Status: install ok not-installed" | ipkg_status_update_sd $sd $pkg
>   				new_pkgs="$new_pkgs $pkg"
>   				### echo "Dependences not satisfied for $pkg: $remaining_deps"
>   				if [ $curcheck -ne `echo  $pkgs|wc -w` ]; then
> -			        	continue
> +					continue
>   				fi
>   			fi
>
> @@ -886,7 +886,7 @@ diff -u $dest/$conffile $IPKG_TMP/$pkg/data/$conffile"
>   	fi
>
>   	local owd=`pwd`
> -	(cd $IPKG_TMP/$pkg/data/; tar cf - . | (cd $owd; cd $dest; tar xf -))		
> +	(cd $IPKG_TMP/$pkg/data/; tar cf - . | (cd $owd; cd $dest; tar xf -))
>   	rm -rf $IPKG_TMP/$pkg/data
>   	rmdir $IPKG_TMP/$pkg
>   	rm -f $IPKG_TMP/data.tar.gz $IPKG_TMP/data.tar
> @@ -924,7 +924,7 @@ ipkg_install() {
>   	while [ $# -gt 0 ]; do
>   		local pkg="$1"
>   		shift
> -	
> +
>   		case "$pkg" in
>   		http://* | ftp://*)
>   			local tmp_pkg_file="$IPKG_TMP/"`ipkg_file_part $pkg`
> @@ -1013,7 +1013,7 @@ ipkg_upgrade_pkg() {
>   				return 0
>   			fi
>
> -			if [ "$avail_ver" = "$inst_ver" ]; then
> +			if [ "$avail_ver" = "$inst_ver" ]; then
>   				echo "Package $pkg ($inst_ver) installed in $dest_name is up to date"
>   			elif ipkg-compare-versions $avail_ver '>>' $inst_ver; then
>   				echo "Upgrading $pkg ($dest_name) from $inst_ver to $avail_ver"
> @@ -1037,7 +1037,7 @@ ipkg_upgrade() {
>   	else
>   		pkgs="$*"
>   	fi
> -	
> +
>   	for pkg in $pkgs; do
>   		ipkg_upgrade_pkg $pkg
>   	done
> diff --git a/recipes/stage-manager/files/stage-manager-ipkg-build b/bin/stage-manager-ipkg-build
> similarity index 99%
> rename from recipes/stage-manager/files/stage-manager-ipkg-build
> rename to bin/stage-manager-ipkg-build
> index 77367ac..1a5e2597 100755
> --- a/recipes/stage-manager/files/stage-manager-ipkg-build
> +++ b/bin/stage-manager-ipkg-build
> @@ -68,7 +68,7 @@ You probably want to chown these to a system user: ">&2
>   		ls -ld $large_uid_files
>   		echo>&2
>   	fi
> -	
> +
>
>   	if [ ! -f "$CONTROL/control" ]; then
>   		echo "*** Error: Control file $pkg_dir/$CONTROL/control not found.">&2
> @@ -109,7 +109,7 @@ You probably want to chown these to a system user: ">&2
>   	source=`required_field Source`
>   	[ "$?" -ne 0 ]&&  PKG_ERROR=1
>   	if [ -z "$source" ]; then
> -	    echo "The Source field contain the URL's or filenames of the source code and any patches"
> +	    echo "The Source field contain the URL's or filenames of the source code and any patches"
>   	    echo "used to build this package.  Either gnu-style tarballs or Debian source packages "
>   	    echo "are acceptable.  Relative filenames may be used if they are distributed in the same"
>   	    echo "directory as the .ipk file."
> @@ -196,7 +196,7 @@ case $# in
>   	;;
>   *)
>   	echo $usage>&2
> -	exit 1
> +	exit 1
>   	;;
>   esac
>
> diff --git a/classes/base.bbclass b/classes/base.bbclass
> index 308498f..6fa292e 100644
> --- a/classes/base.bbclass
> +++ b/classes/base.bbclass
> @@ -61,8 +61,7 @@ def base_deps(d):
>   	# that case though.
>   	#
>   	deps = "coreutils-native"
> -	if bb.data.getVar('PN', d, True) in ("shasum-native", "stagemanager-native",
> -	                                     "coreutils-native"):
> +	if bb.data.getVar('PN', d, True) in ("shasum-native", "coreutils-native"):
>   		deps = ""
>
>   	# INHIBIT_DEFAULT_DEPS doesn't apply to the patch command.  Whether or  not
> @@ -76,7 +75,7 @@ def base_deps(d):
>   				bb.data.getVar('PN', d, True) not in \
>   				("linux-libc-headers-native", "quilt-native",
>   				 "unifdef-native", "shasum-native",
> -				 "stagemanager-native", "coreutils-native"):
> +				 "coreutils-native"):
>   			deps += " linux-libc-headers-native"
>   	return deps
>
> diff --git a/classes/packaged-staging.bbclass b/classes/packaged-staging.bbclass
> index e968e4d..19d84bd 100644
> --- a/classes/packaged-staging.bbclass
> +++ b/classes/packaged-staging.bbclass
> @@ -23,7 +23,6 @@ PSTAGE_SCAN_CMD ?= "find ${PSTAGE_TMPDIR_STAGE} \( -name "*.la" -o -name "*-conf
>
>   PSTAGE_NATIVEDEPENDS = "\
>       shasum-native \
> -    stagemanager-native \
>       "
>
>   BB_STAMP_WHITELIST = "${PSTAGE_NATIVEDEPENDS}"
> @@ -75,10 +74,6 @@ python __anonymous() {
>       # Add task dependencies if we're active, otherwise mark packaged staging
>       # as inactive.
>       if pstage_allowed:
> -        deps = bb.data.getVarFlag('do_setscene', 'depends', d) or ""
> -        deps += " stagemanager-native:do_populate_sysroot"
> -        bb.data.setVarFlag('do_setscene', 'depends', deps, d)
> -
>           policy = bb.data.getVar("BB_STAMP_POLICY", d, True)
>           if policy == "whitelist" or policy == "full":
>              deps = bb.data.getVarFlag('do_setscene', 'recrdeptask', d) or ""
> diff --git a/recipes/stage-manager/stagemanager-native_0.0.1.bb b/recipes/stage-manager/stagemanager-native_0.0.1.bb
> deleted file mode 100644
> index 9577749..0000000
> --- a/recipes/stage-manager/stagemanager-native_0.0.1.bb
> +++ /dev/null
> @@ -1,26 +0,0 @@
> -DESCRIPTION = "Helper script for packaged-staging.bbclass"
> -PR = "r15"
> -
> -SRC_URI = "file://stage-manager \
> -           file://stage-manager-ipkg \
> -           file://stage-manager-ipkg-build "
> -LICENSE = "GPLv2"
> -
> -PACKAGE_ARCH = "all"
> -
> -inherit native
> -
> -DEPENDS = " "
> -PACKAGE_DEPENDS = " "
> -PATCHDEPENDENCY = ""
> -INHIBIT_DEFAULT_DEPS = "1"
> -
> -PSTAGING_DISABLED = "1"
> -
> -NATIVE_INSTALL_WORKS = "1"
> -do_install() {
> -	install -d ${STAGING_BINDIR}
> -	install -m 0755 ${WORKDIR}/stage-manager ${STAGING_BINDIR}
> -	install -m 0755 ${WORKDIR}/stage-manager-ipkg ${STAGING_BINDIR}
> -	install -m 0755 ${WORKDIR}/stage-manager-ipkg-build ${STAGING_BINDIR}
> -}




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 3/4] Add install wrapper rather than coreutils-native
  2011-01-18 15:18 ` [PATCH 3/4] Add install wrapper rather than coreutils-native Chris Larson
  2011-01-18 20:36   ` Khem Raj
@ 2011-01-26 19:31   ` Eric Bénard
  1 sibling, 0 replies; 14+ messages in thread
From: Eric Bénard @ 2011-01-26 19:31 UTC (permalink / raw)
  To: openembedded-devel

On 18/01/2011 16:18, Chris Larson wrote:
> From: Chris Larson<chris_larson@mentor.com>
>
> Signed-off-by: Chris Larson<chris_larson@mentor.com>
Acked-by: Eric Bénard <eric@eukrea.com>
> ---
>   bin/darwin/cp              |    2 +-
>   bin/darwin/sed             |    2 +-
>   bin/install                |   28 ++++++++++++++++++++++++++++
>   classes/base.bbclass       |   28 +++++++++-------------------
>   classes/gpe.bbclass        |    2 +-
>   classes/gpephone.bbclass   |    2 +-
>   recipes/twin/twin_0.4.6.bb |    1 -
>   7 files changed, 41 insertions(+), 24 deletions(-)
>   create mode 100755 bin/install
>
> diff --git a/bin/darwin/cp b/bin/darwin/cp
> index 0a523b7..a753557 100755
> --- a/bin/darwin/cp
> +++ b/bin/darwin/cp
> @@ -7,7 +7,7 @@
>   # - Otherwise, we stick to what SuSv3 defines
>
>
> -source $(dirname $0)/wrapper.sh
> +source $(dirname $0)/../wrapper.sh
>
>   saved=""
>   while getopts fpaRHLP opt; do
> diff --git a/bin/darwin/sed b/bin/darwin/sed
> index 2200bd1..5c830e4 100755
> --- a/bin/darwin/sed
> +++ b/bin/darwin/sed
> @@ -21,7 +21,7 @@
>   # to reimplement -i internally in this script on some platforms.
>
>
> -source $(dirname $0)/wrapper.sh
> +source $(dirname $0)/../wrapper.sh
>
>   case `uname -s` in
>       Darwin)
> diff --git a/bin/install b/bin/install
> new file mode 100755
> index 0000000..4ad8172
> --- /dev/null
> +++ b/bin/install
> @@ -0,0 +1,28 @@
> +#!/bin/sh
> +
> +source $(dirname $0)/wrapper.sh
> +
> +saved=""
> +while getopts dbCcMpSsvB:f:g:m:o: opt; do
> +    case "$opt" in
> +        s)
> +            # Ignore strip argument
> +            ;;
> +        B|f|g|m|o)
> +            save "-$opt"
> +            save "$OPTARG"
> +            ;;
> +        \?)
> +            exit 1
> +            ;;
> +        *)
> +            save "-$opt"
> +            ;;
> +    esac
> +done
> +shift $(($OPTIND - 1))
> +for arg; do
> +    save "$arg"
> +done
> +
> +exec_real
> diff --git a/classes/base.bbclass b/classes/base.bbclass
> index 6fa292e..8804ec0 100644
> --- a/classes/base.bbclass
> +++ b/classes/base.bbclass
> @@ -55,33 +55,23 @@ oe_runmake() {
>   }
>
>   def base_deps(d):
> -	#
> -	# Ideally this will check a flag so we will operate properly in
> -	# the case where host == build == target, for now we don't work in
> -	# that case though.
> -	#
> -	deps = "coreutils-native"
> -	if bb.data.getVar('PN', d, True) in ("shasum-native", "coreutils-native"):
> -		deps = ""
> -
>   	# INHIBIT_DEFAULT_DEPS doesn't apply to the patch command.  Whether or  not
>   	# we need that built is the responsibility of the patch function / class, not
>   	# the application.
>   	if not bb.data.getVar('INHIBIT_DEFAULT_DEPS', d):
>   		if (bb.data.getVar('HOST_SYS', d, 1) !=
> -	     	    bb.data.getVar('BUILD_SYS', d, 1)):
> -			deps += " virtual/${TARGET_PREFIX}gcc virtual/libc "
> +		    bb.data.getVar('BUILD_SYS', d, 1)):
> +			return "virtual/${TARGET_PREFIX}gcc virtual/libc"
>   		elif bb.data.inherits_class('native', d) and \
>   				bb.data.getVar('PN', d, True) not in \
>   				("linux-libc-headers-native", "quilt-native",
> -				 "unifdef-native", "shasum-native",
> -				 "coreutils-native"):
> -			deps += " linux-libc-headers-native"
> -	return deps
> +				 "unifdef-native", "shasum-native"):
> +			return "linux-libc-headers-native"
> +	return ""
>
> -DEPENDS_prepend="${@base_deps(d)} "
> -DEPENDS_virtclass-native_prepend="${@base_deps(d)} "
> -DEPENDS_virtclass-nativesdk_prepend="${@base_deps(d)} "
> +DEPENDS_prepend = "${@base_deps(d)} "
> +DEPENDS_virtclass-native_prepend = "${@base_deps(d)} "
> +DEPENDS_virtclass-nativesdk_prepend = "${@base_deps(d)} "
>
>
>   SCENEFUNCS += "base_scenefunction"
> @@ -89,7 +79,7 @@ SCENEFUNCS += "base_scenefunction"
>   python base_scenefunction () {
>   	stamp = bb.data.getVar('STAMP', d, 1) + ".needclean"
>   	if os.path.exists(stamp):
> -	        bb.build.exec_func("do_clean", d)
> +		bb.build.exec_func("do_clean", d)
>   }
>
>   python base_do_setscene () {
> diff --git a/classes/gpe.bbclass b/classes/gpe.bbclass
> index a9ddec3..7e042ee 100644
> --- a/classes/gpe.bbclass
> +++ b/classes/gpe.bbclass
> @@ -1,4 +1,4 @@
> -DEPENDS_prepend = "coreutils-native virtual/libintl intltool-native "
> +DEPENDS_prepend = "virtual/libintl intltool-native "
>   GPE_TARBALL_SUFFIX ?= "gz"
>   SRC_URI = "${GPE_MIRROR}/${PN}-${PV}.tar.${GPE_TARBALL_SUFFIX}"
>   FILES_${PN} += "${datadir}/gpe ${datadir}/application-registry"
> diff --git a/classes/gpephone.bbclass b/classes/gpephone.bbclass
> index 57867b5..dffbaa9 100644
> --- a/classes/gpephone.bbclass
> +++ b/classes/gpephone.bbclass
> @@ -1,4 +1,4 @@
> -DEPENDS_prepend = "coreutils-native virtual/libintl intltool-native "
> +DEPENDS_prepend = "virtual/libintl intltool-native "
>   GPE_TARBALL_SUFFIX ?= "gz"
>   SRC_URI = "${GPEPHONE_MIRROR}/${PN}-${PV}/${PN}-${PV}.tar.${GPE_TARBALL_SUFFIX}"
>   FILES_${PN} += "${datadir}/gpe ${datadir}/application-registry"
> diff --git a/recipes/twin/twin_0.4.6.bb b/recipes/twin/twin_0.4.6.bb
> index c6c3fbd..3ea36f8 100644
> --- a/recipes/twin/twin_0.4.6.bb
> +++ b/recipes/twin/twin_0.4.6.bb
> @@ -1,7 +1,6 @@
>   DESCRIPTION = "Twin is a text-mode windowing environment: it draws and manages text windows on a text-mode display, like X11 does for graphical windows. It has a built-in window manager and terminal emulator, and can be used as server for remote clients in the same style as X11. It can display on Linux console, on X11 and inside itself."
>   SECTION = "console/utils"
>
> -DEPENDS = "coreutils-native"
>   LICENSE = "GPL LGPL"
>   SRC_URI = "http://linuz.sns.it/~max/twin/twin-0.4.6.tar.gz \
>   	   file://cross_compile.patch"




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 4/4] bin/install: implement -D internally
  2011-01-18 15:18 ` [PATCH 4/4] bin/install: implement -D internally Chris Larson
  2011-01-18 16:55   ` Tom Rini
  2011-01-18 20:37   ` Khem Raj
@ 2011-01-26 19:31   ` Eric Bénard
  2011-01-26 20:26   ` Bernhard Reutner-Fischer
  3 siblings, 0 replies; 14+ messages in thread
From: Eric Bénard @ 2011-01-26 19:31 UTC (permalink / raw)
  To: openembedded-devel

On 18/01/2011 16:18, Chris Larson wrote:
> From: Chris Larson<chris_larson@mentor.com>
>
> Signed-off-by: Chris Larson<chris_larson@mentor.com>
Acked-by: Eric Bénard <eric@eukrea.com>
> ---
>   bin/install |   13 ++++++++++++-
>   1 files changed, 12 insertions(+), 1 deletions(-)
>
> diff --git a/bin/install b/bin/install
> index 4ad8172..1c938755 100755
> --- a/bin/install
> +++ b/bin/install
> @@ -1,9 +1,13 @@
>   #!/bin/sh
> +#
> +# Portability notes:
> +# - We allow what SuSv3 defines
> +# - We implement -D internally
>
>   source $(dirname $0)/wrapper.sh
>
>   saved=""
> -while getopts dbCcMpSsvB:f:g:m:o: opt; do
> +while getopts dbCcMpSsvB:f:g:m:o:D opt; do
>       case "$opt" in
>           s)
>               # Ignore strip argument
> @@ -12,6 +16,9 @@ while getopts dbCcMpSsvB:f:g:m:o: opt; do
>               save "-$opt"
>               save "$OPTARG"
>               ;;
> +        D)
> +            createleading="1"
> +            ;;
>           \?)
>               exit 1
>               ;;
> @@ -25,4 +32,8 @@ for arg; do
>       save "$arg"
>   done
>
> +if [ $# == 2 -a -n "$createleading" ]; then
> +    install -d $(dirname $2)
> +fi
> +
>   exec_real




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 4/4] bin/install: implement -D internally
  2011-01-18 15:18 ` [PATCH 4/4] bin/install: implement -D internally Chris Larson
                     ` (2 preceding siblings ...)
  2011-01-26 19:31   ` Eric Bénard
@ 2011-01-26 20:26   ` Bernhard Reutner-Fischer
  3 siblings, 0 replies; 14+ messages in thread
From: Bernhard Reutner-Fischer @ 2011-01-26 20:26 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Chris Larson

On Tue, Jan 18, 2011 at 08:18:49AM -0700, Chris Larson wrote:
>From: Chris Larson <chris_larson@mentor.com>
>
>Signed-off-by: Chris Larson <chris_larson@mentor.com>
>---
> bin/install |   13 ++++++++++++-
> 1 files changed, 12 insertions(+), 1 deletions(-)
>
>diff --git a/bin/install b/bin/install
>index 4ad8172..1c938755 100755
>--- a/bin/install
>+++ b/bin/install
>@@ -1,9 +1,13 @@
> #!/bin/sh
>+#
>+# Portability notes:
>+# - We allow what SuSv3 defines

erm, SuSv3 is superseded by SUSv4 for quite some time now. And i wasn't
aware that SUS specified install(1) (please show me where, i don't see
it).

Without the comment above:
Acked-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

>+# - We implement -D internally
> 
> source $(dirname $0)/wrapper.sh
> 
> saved=""
>-while getopts dbCcMpSsvB:f:g:m:o: opt; do
>+while getopts dbCcMpSsvB:f:g:m:o:D opt; do
>     case "$opt" in
>         s)
>             # Ignore strip argument
>@@ -12,6 +16,9 @@ while getopts dbCcMpSsvB:f:g:m:o: opt; do
>             save "-$opt"
>             save "$OPTARG"
>             ;;
>+        D)
>+            createleading="1"
>+            ;;
>         \?)
>             exit 1
>             ;;
>@@ -25,4 +32,8 @@ for arg; do
>     save "$arg"
> done
> 
>+if [ $# == 2 -a -n "$createleading" ]; then
>+    install -d $(dirname $2)
>+fi
>+
> exec_real



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2011-01-26 20:44 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-18 15:18 [PATCH 1/4] bitbake.conf: include bin dirs from BBPATH in PATH Chris Larson
2011-01-18 15:18 ` [PATCH 2/4] Move stage-manager-* into bin/ rather than a recipe Chris Larson
2011-01-18 20:35   ` Khem Raj
2011-01-26 19:31   ` Eric Bénard
2011-01-18 15:18 ` [PATCH 3/4] Add install wrapper rather than coreutils-native Chris Larson
2011-01-18 20:36   ` Khem Raj
2011-01-26 19:31   ` Eric Bénard
2011-01-18 15:18 ` [PATCH 4/4] bin/install: implement -D internally Chris Larson
2011-01-18 16:55   ` Tom Rini
2011-01-18 20:37   ` Khem Raj
2011-01-26 19:31   ` Eric Bénard
2011-01-26 20:26   ` Bernhard Reutner-Fischer
2011-01-18 20:35 ` [PATCH 1/4] bitbake.conf: include bin dirs from BBPATH in PATH Khem Raj
2011-01-26 19:31 ` Eric Bénard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.