package/pseudo: fix build without xattr
PATCH 1/2 package/pseudo: fix build without xattr
Build of host-pseudo without xattr fails on:ports/linux/xattr/portdefs.h:1:10: fatal error: attr/xattr.h: No such file or directory
#include <attr/xattr.h>
xattr is enabled since
http://git.yoctoproject.org/cgit/cgit.cgi/pseudo/commit/configure?id=6c6d0a3e4a4d382fd0b2e056a3ecffb015652767
So disable xattr through --enable-xattr=no as --disable-xattr is not supported
Fixes:
- No autobuilder failures
--- package/pseudo/pseudo.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
package/pseudo/pseudo.mk +2 -1
@@ -24,6 +24,7 @@ HOST_PSEUDO_CONF_OPTS = \ --with-rpath=$(HOST_DIR)/lib \ --bits=$(if $(filter %64,$(HOSTARCH)),64,32) \ --libdir=$(HOST_DIR)/lib \ - --with-sqlite=$(HOST_DIR) + --with-sqlite=$(HOST_DIR) \ + --enable-xattr=no $(eval $(host-autotools-package))
Signature · 1 line
2.20.1
PATCH 2/2 package/pseudo: bump to version 1.9.0
- Remove all patches (already in version)
- Add hash for license file
--- ...0001-Fix-mixed-tab-space-indentation.patch | 105 --------- ...002-Fix-missing-parentheses-at-print.patch | 190 ---------------- ...0003-Make-it-compatible-with-python3.patch | 215 ------------------ package/pseudo/pseudo.hash | 3 +- package/pseudo/pseudo.mk | 2 +- 5 files changed, 3 insertions(+), 512 deletions(-) delete mode 100644 package/pseudo/0001-Fix-mixed-tab-space-indentation.patch delete mode 100644 package/pseudo/0002-Fix-missing-parentheses-at-print.patch delete mode 100644 package/pseudo/0003-Make-it-compatible-with-python3.patch
package/pseudo/0001-Fix-mixed-tab-space-indentation.patch deleted +0 -105
@@ -1,105 +0,0 @@ -From bf4e5310547603bf36e67dc4cba027963f16508e Mon Sep 17 00:00:00 2001 -From: =?utf-8?q?Ga=C3=ABl=20PORTAY?= <[email protected]> -Date: Fri, 4 Nov 2016 11:53:48 -0400 -Subject: [PATCH 1/3] Fix mixed tab/space indentation -MIME-Version: 1.0 -Content-Type: text/plain; charset=utf-8 -Content-Transfer-Encoding: 8bit - -CC="cc -pipe -std=gnu99 -Wall -W -Wextra -fPIC -D_LARGEFILE64_SOURCE -D_ATFILE_SOURCE -DPSEUDO_PREFIX='"/usr/local"' -DPSEUDO_SUFFIX='""' -DPSEUDO_BINDIR='"bin"' -DPSEUDO_LIBDIR='"lib64"' -DPSEUDO_LOCALSTATEDIR='"var/pseudo"' -DPSEUDO_VERSION='"1.8.1"' -DUSE_MEMORY_DB -DPSEUDO_PASSWD_FALLBACK='""' -DPSEUDO_XATTR_SUPPORT -O2 -g " ./makewrappers "xattr=true" - File "./makewrappers", line 327 - return """/* This function is not called if pseudo is configured --enable-force-async */ - ^ -TabError: inconsistent use of tabs and spaces in indentation - -Signed-off-by: Ga?l PORTAY <[email protected]> ---- - makewrappers | 26 +++++++++++++------------- - 1 file changed, 13 insertions(+), 13 deletions(-) - -diff --git a/makewrappers b/makewrappers -index e9191ed..303e2cc 100755 ---- a/makewrappers -+++ b/makewrappers -@@ -324,7 +324,7 @@ class Function: - - def maybe_async_skip(self): - if self.async_skip: -- return """/* This function is not called if pseudo is configured --enable-force-async */ -+ return """/* This function is not called if pseudo is configured --enable-force-async */ - #ifdef PSEUDO_FORCE_ASYNC - if (!pseudo_allow_fsync) { - PROFILE_DONE; -@@ -333,7 +333,7 @@ class Function: - #endif - """ % self.async_skip - else: -- return "" -+ return "" - - def comment(self): - """declare self (in a comment)""" -@@ -393,11 +393,11 @@ class Function: - - def rc_format(self): - """the format string to use for the return value""" -- return typedata.get(self.type, { 'format': '[%s]', 'value': '"' + self.type + '"' })['format'] -+ return typedata.get(self.type, { 'format': '[%s]', 'value': '"' + self.type + '"' })['format'] - - def rc_value(self): - """the value to pass for the format string for the return value""" -- return typedata.get(self.type, { 'format': '[%s]', 'value': '"' + self.type + '"' })['value'] -+ return typedata.get(self.type, { 'format': '[%s]', 'value': '"' + self.type + '"' })['value'] - - def rc_decl(self): - """declare rc (if needed)""" -@@ -456,7 +456,7 @@ additional ports to include. - self.name = port - self.subports = [] - self.preports = [] -- print port -+ print port - - if os.path.exists(self.portfile("pseudo_wrappers.c")): - self.wrappers = self.portfile("pseudo_wrappers.c") -@@ -522,11 +522,11 @@ additional ports to include. - return '#define PSEUDO_PORT_%s 1' % string.upper(self.name).replace('/', '_') - - def portdeps(self): -- deps = [] -- if self.wrappers: -- deps.append(self.wrappers) -- if self.portdef_file: -- deps.append(self.portdef_file) -+ deps = [] -+ if self.wrappers: -+ deps.append(self.wrappers) -+ if self.portdef_file: -+ deps.append(self.portdef_file) - if deps: - return 'pseudo_wrappers.o: %s' % ' '.join(deps) - else: -@@ -590,7 +590,7 @@ def main(argv): - - for arg in argv: - name, value = arg.split('=') -- os.environ["port_" + name] = value -+ os.environ["port_" + name] = value - - # error checking helpfully provided by the exception handler - copyright_file = open('guts/COPYRIGHT') -@@ -599,9 +599,9 @@ def main(argv): - - for path in glob.glob('templates/*'): - try: -- print "Considering template: " + path -+ print "Considering template: " + path - source = TemplateFile(path) -- if source.name.endswith('.c') or source.name.endswith('.h'): -+ if source.name.endswith('.c') or source.name.endswith('.h'): - source.emit('copyright') - source.emit('header') - sources.append(source) --- -2.10.1 -
package/pseudo/0002-Fix-missing-parentheses-at-print.patch deleted +0 -190
190 lines not on this page · raw message
package/pseudo/0003-Make-it-compatible-with-python3.patch deleted +0 -215
215 lines not on this page · raw message
package/pseudo/pseudo.hash +2 -1
@@ -1,2 +1,3 @@ # Locally computed -sha256 7d4b767302f118fa1c3f89b551cf3f3f2aa92721dab86ff62f0600a394b8a81a pseudo-45eca34c754d416a38bee90fb2d3c110a0b6cc5f.tar.gz +sha256 b056d43db3b44339e0b9cbf42bc4d6e145ba020d61308cf34da130b67b7dac32 pseudo-pseudo-1.9.0.tar.gz +sha256 36b6d3fa47916943fd5fec313c584784946047ec1337a78b440e5992cb595f89 COPYING
package/pseudo/pseudo.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -PSEUDO_VERSION = 45eca34c754d416a38bee90fb2d3c110a0b6cc5f +PSEUDO_VERSION = pseudo-1.9.0 PSEUDO_SITE = https://git.yoctoproject.org/git/pseudo PSEUDO_SITE_METHOD = git
Signature · 1 line
2.20.1
PATCH 1/2 package/pseudo: fix build without xattr
In reply to Fabrice FontaineQuoted 4 lines · Fabrice Fontaine
Build of host-pseudo without xattr fails on:
ports/linux/xattr/portdefs.h:1:10: fatal error:attr/xattr.h: No such file or directory
#include <attr/xattr.h>
Quoted 8 lines
xattr is enabled since
http://git.yoctoproject.org/cgit/cgit.cgi/pseudo/commit/configure?id=6c6d0a3e4a4d382fd0b2e056a3ecffb015652767So disable xattr through --enable-xattr=no as --disable-xattr is not supported
Fixes:
- No autobuilder failures
There's no autobuilder failure because pseudo is not used. It was introduced to
replace fakeroot some time ago, but it brought too much pain.
Instead of these fixes, the package should just be removed.
Regards,
Arnout
Quoted 20 lines
Signed-off-by Fabrice Fontaine <[email protected]>--- package/pseudo/pseudo.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)package/pseudo/pseudo.mk +2
-1@@ -24,6 +24,7 @@ HOST_PSEUDO_CONF_OPTS = \ --with-rpath=$(HOST_DIR)/lib \ --bits=$(if $(filter %64,$(HOSTARCH)),64,32) \ --libdir=$(HOST_DIR)/lib \ - --with-sqlite=$(HOST_DIR) + --with-sqlite=$(HOST_DIR) \ + --enable-xattr=no $(eval $(host-autotools-package))