All of lore.kernel.org
 help / color / mirror / Atom feed
* patch: shasum vs. sha256sum
@ 2007-04-02  9:12 Tom Walsh
  2007-04-02  9:44 ` pHilipp Zabel
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Tom Walsh @ 2007-04-02  9:12 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 683 bytes --]

Just noticed that the sha256sum has been added to the 
classes/sanity.bbclass and bitbake balked at running.   This morning I 
had installed perl-Digest::SHA to satisfy the need for 'shasum'.

I haven't found any package on Mandriva that provides 'sha256sum',  
however, adding '-a 256' sets the sha256 algorithm for shasum?  With 
these two changes, bitbake seems to build the project ok, or, am I 
missing something here?

Regards,

TomW

-- 
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net http://cyberiansoftware.com http://openzipit.org
"Windows? No thanks, I have work to do..."
----------------------------------------------------



[-- Attachment #2: base.bbclass.patch --]
[-- Type: text/x-patch, Size: 443 bytes --]

--- classes/base.bbclass~	2007-04-02 01:30:14.000000000 -0400
+++ classes/base.bbclass	2007-04-02 01:32:34.000000000 -0400
@@ -54,7 +54,7 @@
         raise Exception("Executing md5sum failed")
 
     try:
-        shapipe = os.popen('shasum -a 2 -b ' + localpath)
+        shapipe = os.popen('shasum -a 256 -b ' + localpath)
         shadata = (shapipe.readline().split() or [ "" ])[0]
         shapipe.close()
     except OSError:

[-- Attachment #3: sanity.bbclass.patch --]
[-- Type: text/x-patch, Size: 576 bytes --]

--- classes/sanity.bbclass~	2007-04-02 01:38:59.000000000 -0400
+++ classes/sanity.bbclass	2007-04-02 01:39:27.000000000 -0400
@@ -86,7 +86,7 @@
 	if not check_app_exists('${BUILD_PREFIX}g++', e.data):
 		missing = missing + "C++ Compiler (${BUILD_PREFIX}g++),"
 
-	required_utilities = "patch diffstat texi2html makeinfo cvs svn git bzip2 tar gzip gawk sha256sum md5sum"
+	required_utilities = "patch diffstat texi2html makeinfo cvs svn git bzip2 tar gzip gawk shasum md5sum"
 
 	for util in required_utilities.split():
 		if not check_app_exists( util, e.data ):

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

end of thread, other threads:[~2007-04-02 20:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-02  9:12 patch: shasum vs. sha256sum Tom Walsh
2007-04-02  9:44 ` pHilipp Zabel
2007-04-02  9:52 ` Holger Freyther
2007-04-02 11:24   ` Florian Boor
2007-04-02 20:46   ` Holger Freyther
2007-04-02 15:13 ` Erik Hovland
2007-04-02 15:21   ` Marcin Juszkiewicz

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.