[arch-commits] Commit in nsjail/repos/community-x86_64 (4 files)

Bruno Pagani archange at gemini.archlinux.org
Wed Apr 6 18:39:59 UTC 2022


    Date: Wednesday, April 6, 2022 @ 18:39:58
  Author: archange
Revision: 1181621

archrelease: copy trunk to community-x86_64

Added:
  nsjail/repos/community-x86_64/PKGBUILD
    (from rev 1181619, nsjail/trunk/PKGBUILD)
  nsjail/repos/community-x86_64/replace-YYUSE-with-attribute-unused-in-src-parser.y.patch
    (from rev 1181620, nsjail/trunk/replace-YYUSE-with-attribute-unused-in-src-parser.y.patch)
Deleted:
  nsjail/repos/community-x86_64/PKGBUILD
  nsjail/repos/community-x86_64/replace-YYUSE-with-attribute-unused-in-src-parser.y.patch

-----------------------------------------------------------+
 PKGBUILD                                                  |   60 ++++------
 replace-YYUSE-with-attribute-unused-in-src-parser.y.patch |   66 ++++++------
 2 files changed, 60 insertions(+), 66 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-06 18:39:45 UTC (rev 1181620)
+++ PKGBUILD	2022-04-06 18:39:58 UTC (rev 1181621)
@@ -1,33 +0,0 @@
-# Maintainer: Bruno Pagani <archange at archlinux.org> 
-
-pkgname=nsjail
-pkgver=3.0
-pkgrel=5
-pkgdesc="Light-weight process isolation tool"
-arch=(x86_64)
-url="https://nsjail.com"
-license=(Apache)
-depends=(protobuf libnl)
-makedepends=(git)
-source=("https://github.com/google/nsjail/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz"
-        'git+https://github.com/google/kafel.git#commit=8e69b8efae415cde3debffbb1e379d9e7a16835a'
-        replace-YYUSE-with-attribute-unused-in-src-parser.y.patch)
-sha256sums=('cfa66d3ed136b2e221752287b95e544915e8a6760aa866f023b604d14a374919'
-            'SKIP'
-            '9773c57a2eaa3460a0656a5fdc3603d141aac34ded53e18e29a890fd5b7a71f8')
-
-prepare() {
-    # https://github.com/google/kafel/pull/28
-    patch -Np1 -d kafel <replace-YYUSE-with-attribute-unused-in-src-parser.y.patch
-    mv kafel ${pkgname}-${pkgver}
-}
-
-build() {
-    cd ${pkgname}-${pkgver}
-    make
-}
-
-package() {
-    cd ${pkgname}-${pkgver}
-    install -Dm755 nsjail -t "${pkgdir}"/usr/bin/ 
-}

Copied: nsjail/repos/community-x86_64/PKGBUILD (from rev 1181619, nsjail/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-04-06 18:39:58 UTC (rev 1181621)
@@ -0,0 +1,27 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org> 
+
+pkgname=nsjail
+pkgver=3.1
+pkgrel=1
+pkgdesc="Light-weight process isolation tool"
+arch=(x86_64)
+url="https://nsjail.com"
+license=(Apache)
+depends=(protobuf libnl)
+makedepends=(git)
+source=(https://github.com/google/nsjail/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
+        git+https://github.com/google/kafel.git#commit=00532cc1ee142355c2db8a58001bcc669893cff8)
+sha256sums=('c944ce9b6dbfae7cc42b67ce720f997b3b12a2b41ba3462e133627a838f3ff3c'
+            'SKIP')
+
+prepare() {
+  mv kafel ${pkgname}-${pkgver}
+}
+
+build() {
+  make -C ${pkgname}-${pkgver}
+}
+
+package() {
+  install -Dm755 ${pkgname}-${pkgver}/nsjail -t "${pkgdir}"/usr/bin/ 
+}

Deleted: replace-YYUSE-with-attribute-unused-in-src-parser.y.patch
===================================================================
--- replace-YYUSE-with-attribute-unused-in-src-parser.y.patch	2022-04-06 18:39:45 UTC (rev 1181620)
+++ replace-YYUSE-with-attribute-unused-in-src-parser.y.patch	2022-04-06 18:39:58 UTC (rev 1181621)
@@ -1,33 +0,0 @@
-From 521aab466e50f822298ae7bf817b14c1b9eaab74 Mon Sep 17 00:00:00 2001
-From: Evangelos Foutras <evangelos at foutrelis.com>
-Date: Sun, 14 Mar 2021 03:20:43 +0200
-Subject: [PATCH] Replace YYUSE with attribute unused in src/parser.y
-
-The YYUSE macro was renamed to YY_USE in bison 3.7.5; might as well
-avoid using it altogether, and instead mark the variable as unused.
-
-Fixes the following linker error:
-
-/usr/bin/ld: kafel/libkafel.a(libkafel.o): in function `kafel_yyerror':
-arm_syscalls.c:(.text+0x6984): undefined reference to `YYUSE'
----
- src/parser.y | 5 ++---
- 1 file changed, 2 insertions(+), 3 deletions(-)
-
-diff --git a/src/parser.y b/src/parser.y
-index e0f109c..e5980c9 100644
---- a/src/parser.y
-+++ b/src/parser.y
-@@ -418,10 +418,9 @@ const_def
- 
- %%
- 
--void yyerror(YYLTYPE * loc, struct kafel_ctxt* ctxt, yyscan_t scanner,
--             const char *msg) {
-+void yyerror(YYLTYPE * loc, struct kafel_ctxt* ctxt,
-+             __attribute__((unused)) yyscan_t scanner, const char *msg) {
-   if (!ctxt->lexical_error) {
--    YYUSE(scanner);
-     if (loc->filename != NULL) {
-       append_error(ctxt, "%s:%d:%d: %s", loc->filename, loc->first_line, loc->first_column, msg);
-     } else {

Copied: nsjail/repos/community-x86_64/replace-YYUSE-with-attribute-unused-in-src-parser.y.patch (from rev 1181620, nsjail/trunk/replace-YYUSE-with-attribute-unused-in-src-parser.y.patch)
===================================================================
--- replace-YYUSE-with-attribute-unused-in-src-parser.y.patch	                        (rev 0)
+++ replace-YYUSE-with-attribute-unused-in-src-parser.y.patch	2022-04-06 18:39:58 UTC (rev 1181621)
@@ -0,0 +1,33 @@
+From 521aab466e50f822298ae7bf817b14c1b9eaab74 Mon Sep 17 00:00:00 2001
+From: Evangelos Foutras <evangelos at foutrelis.com>
+Date: Sun, 14 Mar 2021 03:20:43 +0200
+Subject: [PATCH] Replace YYUSE with attribute unused in src/parser.y
+
+The YYUSE macro was renamed to YY_USE in bison 3.7.5; might as well
+avoid using it altogether, and instead mark the variable as unused.
+
+Fixes the following linker error:
+
+/usr/bin/ld: kafel/libkafel.a(libkafel.o): in function `kafel_yyerror':
+arm_syscalls.c:(.text+0x6984): undefined reference to `YYUSE'
+---
+ src/parser.y | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/src/parser.y b/src/parser.y
+index e0f109c..e5980c9 100644
+--- a/src/parser.y
++++ b/src/parser.y
+@@ -418,10 +418,9 @@ const_def
+ 
+ %%
+ 
+-void yyerror(YYLTYPE * loc, struct kafel_ctxt* ctxt, yyscan_t scanner,
+-             const char *msg) {
++void yyerror(YYLTYPE * loc, struct kafel_ctxt* ctxt,
++             __attribute__((unused)) yyscan_t scanner, const char *msg) {
+   if (!ctxt->lexical_error) {
+-    YYUSE(scanner);
+     if (loc->filename != NULL) {
+       append_error(ctxt, "%s:%d:%d: %s", loc->filename, loc->first_line, loc->first_column, msg);
+     } else {



More information about the arch-commits mailing list