Skip to contentSkip to conversation

package_ipk: There is no longer any need to force owners/groups to root

PATCH In review Richard Purdie 2 participants 2 messages Nov 1, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package_ipk: There is no longer any need to force owners/groups to root

Since the packaging process is run under pseudo, the default user is now root so there is no longer any need to hardcode this. Also take this opportunity to move the variable to package_ipk.bbclass since this is the only user of it.

---

meta/classes/package_ipk.bbclass +3 -0
index c0893a6..c97e36e 100644
@@ -7,6 +7,9 @@ IPKGCONF_SDK =  "${WORKDIR}/opkg-sdk.conf"
 
 PKGWRITEDIRIPK = "${WORKDIR}/deploy-ipks"
 
+# Program to be used to build opkg packages
+OPKGBUILDCMD ??= "opkg-build"
+
 python package_ipk_fn () {
 	bb.data.setVar('PKGFN', bb.data.getVar('PKG',d), d)
 }
meta/conf/bitbake.conf +0 -4
index e2c1b6f..0d05805 100644
@@ -623,10 +623,6 @@ MKTEMPCMD = "mktemp -q ${TMPBASE}"
 
 export PATCH_GET="0"
 
-# Program to be used to build opkg packages
-
-OPKGBUILDCMD = "opkg-build -o 0 -g 0"
-
 ##################################################################
 # Not sure about the rest of this yet.
 ##################################################################
Acked-by on v1 1/1
#1 lore raw

Op 1 nov. 2011, om 15:25 heeft Richard Purdie het volgende geschreven:

Quoted 6 lines

Since the packaging process is run under pseudo, the default user is now root so there is no longer any need to hardcode this. Also take this opportunity to move the variable to package_ipk.bbclass since this is the only user of it.

Quoted 37 lines

---

meta/classes/package_ipk.bbclass +0 -0
index c0893a6..c97e36e 100644
@@ -7,6 +7,9 @@ IPKGCONF_SDK =  "${WORKDIR}/opkg-sdk.conf"
 

PKGWRITEDIRIPK = "${WORKDIR}/deploy-ipks"

meta/classes/package_ipk.bbclass +3 -0
+# Program to be used to build opkg packages
+OPKGBUILDCMD ??= "opkg-build"
+
python package_ipk_fn () {
	bb.data.setVar('PKGFN', bb.data.getVar('PKG',d), d)
}
meta/conf/bitbake.conf +0 -0
index e2c1b6f..0d05805 100644
@@ -623,10 +623,6 @@ MKTEMPCMD = "mktemp -q ${TMPBASE}"
 

export PATCH_GET="0"

meta/conf/bitbake.conf +0 -4
-# Program to be used to build opkg packages
-
-OPKGBUILDCMD = "opkg-build -o 0 -g 0"
-

##################################################################
# Not sure about the rest of this yet.
##################################################################

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core