Skip to contentSkip to conversation

filename restrictions for packaged staging

PATCH New Detlef Vollmann 1 participant 3 messages Sep 4, 2011

lore
Share & tools
lore
#0 lore raw

From: Detlef Vollmann <[email protected]>

Quoted 5 lines · Detlef Vollmann

Some of my recipes fail with
ERROR: Function 'staging_packager' failed (see /dev/null for further information)

Unfortunately /dev/null didn't give much information ;-(

This was fixed by bitbake commit 90fc09ee050a24095a488d8ce98c7945bf282f6d.

Quoted 8 lines

But eventually (with -vvvvv -D -D -D -D) I got a real error message:
*** Error: Package name contains illegal characters, (other than [a-z0-9.+-])

While the '' between 'name' and 'contains' isn't of much help either (it's a bug in stage-manager-ipkg-build, I'll file a patch for that later),

This is a no-brainer.

Quoted 2 lines

it turned out that my machine name contained
upper case letters, which stage-manager-ipkg-build doesn't like.

The second patch also allows uppercase letters, but I have no idea what consequences this has...

Detlef Vollmann (2):
stage-manager: fix typo in error message
stage-manager: allow for upper case in package names

 bin/stage-manager-opkg-build |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
#1 lore raw

PATCH 1/2 stage-manager: fix typo in error message

From: Detlef Vollmann <[email protected]>

bin/stage-manager-opkg-build +1 -1
index b7be3dc..6deceef 100755
@@ -119,7 +119,7 @@ You probably want to chown these to a system user: " >&2
 	[ "$?" -ne 0 ] && PKG_ERROR=1
 
 	if echo $pkg | grep '[^a-z0-9.+-]'; then
-		echo "*** Error: Package name $name contains illegal characters, (other than [a-z0-9.+-])" >&2
+		echo "*** Error: Package name $pkg contains illegal characters, (other than [a-z0-9.+-])" >&2
 		PKG_ERROR=1;
 	fi
 
Signature · 1 line
1.7.0.4
#2 lore raw

PATCH 2/2 stage-manager: allow for upper case in package names

In reply to Detlef Vollmann

From: Detlef Vollmann <[email protected]>

bin/stage-manager-opkg-build +1 -1
index 6deceef..0261e71 100755
@@ -118,7 +118,7 @@ You probably want to chown these to a system user: " >&2
 	disallowed_filename=`disallowed_field Filename`
 	[ "$?" -ne 0 ] && PKG_ERROR=1
 
-	if echo $pkg | grep '[^a-z0-9.+-]'; then
+	if echo $pkg | grep '[^A-Za-z0-9.+-]'; then
 		echo "*** Error: Package name $pkg contains illegal characters, (other than [a-z0-9.+-])" >&2
 		PKG_ERROR=1;
 	fi
Signature · 1 line
1.7.0.4