Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Ismael Luceno (741bf580f48e2e6290c9cea6afa331f0a11cd1c9)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Ismael Luceno (741bf580f48e2e6290c9cea6afa331f0a11cd1c9)
  • Date: Thu, 18 Feb 2021 19:54:55 +0000

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

ChangeLog | 3
devel/git-issue/BUILD | 1
devel/git-issue/DEPENDS | 1
devel/git-issue/DETAILS | 35
+++++
devel/git-issue/HISTORY | 2
devel/git-issue/INSTALL | 1
utils/schroot/HISTORY | 6 +
utils/schroot/patches/0002-getmntent.patch | 60
++++++++++
utils/schroot/patches/0003-getent.patch | 25
++++
utils/schroot/patches/0004-Replace-egrep-with-case-statements.patch | 55
+++++++++
10 files changed, 189 insertions(+)

New commits:
commit 741bf580f48e2e6290c9cea6afa331f0a11cd1c9
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

schroot: Replace egrep with case statements

This allows schroot to work on systems with limited implementations like
the one in busybox.

commit 8872eb0956d0b5c6287a7090c9ff3916b7122364
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

schroot: Make it work without getent command

commit 7b670698f4197763d60e058fd1a31b6306d9b9c1
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

schroot: Fix getmntent usage

commit 9d8bca53a724f7e5f545aa52c46f1a6b004b5a60
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

git-issue: new spell, Git-based decentralized issue management

diff --git a/ChangeLog b/ChangeLog
index b014e8f..6e8a29d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2021-02-18 Ismael Luceno <ismael AT sourcemage.org>
+ * devel/git-issue: new spell, Git-based decentralized issue management
+
2021-02-17 Treeve Jelbert <treeve AT sourcemage.org>
* alt-kde/*: added, alternatives to some plasma spells
wrapland-0.521.0
diff --git a/devel/git-issue/BUILD b/devel/git-issue/BUILD
new file mode 100755
index 0000000..b0f90e2
--- /dev/null
+++ b/devel/git-issue/BUILD
@@ -0,0 +1 @@
+make PREFIX="$INSTALL_ROOT"/usr
diff --git a/devel/git-issue/DEPENDS b/devel/git-issue/DEPENDS
new file mode 100755
index 0000000..d2859e2
--- /dev/null
+++ b/devel/git-issue/DEPENDS
@@ -0,0 +1 @@
+runtime_depends git
\ No newline at end of file
diff --git a/devel/git-issue/DETAILS b/devel/git-issue/DETAILS
new file mode 100755
index 0000000..5bad2f5
--- /dev/null
+++ b/devel/git-issue/DETAILS
@@ -0,0 +1,35 @@
+. "$GRIMOIRE"/FUNCTIONS
+ SPELL=git-issue
+ VERSION=$(get_scm_version)
+ SOURCE="$SPELL-git.tar.xz"
+ SOURCE_URL[0]="git://github.com/dspinellis/$SPELL.git"
+ SOURCE_IGNORE=volatile
+ FORCE_DOWNLOAD=on
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-git"
+ WEB_SITE="https://github.com/dspinellis/git-issue";
+ LICENSE[0]="GPL-3.0-or-later"
+ ENTERED=20210218
+ KEYWORDS=""
+ SHORT="Git-based decentralized issue management"
+cat << EOF
+This is a minimalist decentralized issue management system based on Git,
+offering (optional) biderectional integration with GitHub and GitLab issue
+management. It has the following advantages over other systems.
+
+* No backend, no dependencies: You can install and use git issue with a
+ single shell command. There's no need for a server or a database back-end,
+ and the corresponding problems and requirements for their administration.
+* Decentralized asynchronous management: Anyone can add, comment, and edit
+ issues without requiring online access to a centralized server. There's no
+ need for online connectivity; you can pull and push issues when you're
+ online.
+* Transparent text file format: Issues are stored as simple text files,
+ which you can view, edit, share, and backup with any tool you like. There's
+ no risk of losing access to your issues because a server has failed.
+* Git-based: Issues are changed and shared through Git. This provides git
issue
+ with a robust, efficient, portable, and widely available infrastructure. It
+ allows you to reuse your Git credentials and infrastructure, allows the
+ efficient merging of work, and also provides a solid audit trail regarding
+ any changes. You can even use Git and command-line tools directly to make
+ sophisticated changes to your issue database.
+EOF
diff --git a/devel/git-issue/HISTORY b/devel/git-issue/HISTORY
new file mode 100644
index 0000000..7aa0077
--- /dev/null
+++ b/devel/git-issue/HISTORY
@@ -0,0 +1,2 @@
+2021-02-18 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD, DEPENDS, DETAILS, INSTALL: spell created
diff --git a/devel/git-issue/INSTALL b/devel/git-issue/INSTALL
new file mode 100755
index 0000000..a420c42
--- /dev/null
+++ b/devel/git-issue/INSTALL
@@ -0,0 +1 @@
+make PREFIX="$INSTALL_ROOT"/usr install
diff --git a/utils/schroot/HISTORY b/utils/schroot/HISTORY
index 6647621..9634c3d 100644
--- a/utils/schroot/HISTORY
+++ b/utils/schroot/HISTORY
@@ -1,3 +1,9 @@
+2021-02-18 Ismael Luceno <ismael AT iodev.co.uk>
+ * patches/0002-getmntent.patch: added patch to fix getmntent usage
+ * patches/0003-getent.patch: added patch to make it work without
getent
+ * patches/0004-Replace-egrep-with-case-statements.patch:
+ added patch to make it work with busybox
+
2021-02-17 Ismael Luceno <ismael AT iodev.co.uk>
* DEPENDS: Made gettext a hard dependency; fails to build otherwise
* PRE_BUILD, patches/0001-musl.patch: Fixed build against musl
diff --git a/utils/schroot/patches/0002-getmntent.patch
b/utils/schroot/patches/0002-getmntent.patch
new file mode 100644
index 0000000..0b3b954
--- /dev/null
+++ b/utils/schroot/patches/0002-getmntent.patch
@@ -0,0 +1,60 @@
+From db62a534ebcf60391d9e0acffa641e60dfba18fb Mon Sep 17 00:00:00 2001
+From: Andrea Brancaleoni <abc AT pompel.me>
+Date: Wed, 19 Sep 2018 10:36:36 +0200
+Subject: [PATCH] getmntent fix
+
+---
+ sbuild/sbuild-mntstream.cc | 15 ++-------------
+ sbuild/sbuild-mntstream.h | 3 +--
+ 2 files changed, 3 insertions(+), 15 deletions(-)
+
+diff --git a/sbuild/sbuild-mntstream.cc b/sbuild/sbuild-mntstream.cc
+index d376fe5..d7324e7 100644
+--- a/sbuild/sbuild-mntstream.cc
++++ b/sbuild/sbuild-mntstream.cc
+@@ -37,9 +37,7 @@ namespace
+ emap init_errors[] =
+ {
+ // TRANSLATORS: %1% = mount file name
+- emap(mntstream::MNT_OPEN, N_("Failed to open mount file ‘%1%’")),
+- // TRANSLATORS: %1% = mount file name
+- emap(mntstream::MNT_READ, N_("Failed to read mount file ‘%1%’"))
++ emap(mntstream::MNT_OPEN, N_("Failed to open mount file ‘%1%’"))
+ };
+
+ }
+@@ -109,16 +107,7 @@ mntstream::read(int quantity)
+ errno = 0;
+ entry = getmntent(mntfile);
+
+- if (entry == 0) // EOF or error
+- {
+- //std::cerr << "Mount file read error: ";
+- if (errno) // error
+- {
+- this->error_status = true;
+- throw error(this->file, MNT_READ, strerror(errno));
+- }
+- return;
+- }
++ if (entry == 0) return;
+
+ mntentry newentry(*entry); // make a mntentry
+ this->data.push_back(newentry); // push onto the end of the list
+diff --git a/sbuild/sbuild-mntstream.h b/sbuild/sbuild-mntstream.h
+index ea3d179..fffcdf4 100644
+--- a/sbuild/sbuild-mntstream.h
++++ b/sbuild/sbuild-mntstream.h
+@@ -49,8 +49,7 @@ namespace sbuild
+ /// Error codes.
+ enum error_code
+ {
+- MNT_OPEN, ///< Failed to open mount file.
+- MNT_READ ///< Failed to read mount file.
++ MNT_OPEN ///< Failed to open mount file.
+ };
+
+ /// Exception type.
+--
+2.19.0
+
diff --git a/utils/schroot/patches/0003-getent.patch
b/utils/schroot/patches/0003-getent.patch
new file mode 100644
index 0000000..7a8fdd4
--- /dev/null
+++ b/utils/schroot/patches/0003-getent.patch
@@ -0,0 +1,25 @@
+From 6ffdd152d3fb07921c02e739ce5b47d1e177e7e6 Mon Sep 17 00:00:00 2001
+From: Andrea Brancaleoni <miwaxe AT gmail.com>
+Date: Mon, 24 Aug 2015 18:39:16 +0200
+Subject: [PATCH] getent
+
+---
+ etc/setup.d/20nssdatabases | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/etc/setup.d/20nssdatabases b/etc/setup.d/20nssdatabases
+index 6f14c81..697bb1e 100755
+--- a/etc/setup.d/20nssdatabases
++++ b/etc/setup.d/20nssdatabases
+@@ -29,7 +29,7 @@ set -e
+ dup_nss()
+ {
+ info "Copying $1 database to $2"
+- getent "$1" > "$2"
++ getent "$1" > "$2" 2>/dev/null || cat "/etc/$1" > "$2"
+ }
+
+ if [ $STAGE = "setup-start" ] || [ $STAGE = "setup-recover" ]; then
+--
+2.5.0
+
diff --git
a/utils/schroot/patches/0004-Replace-egrep-with-case-statements.patch
b/utils/schroot/patches/0004-Replace-egrep-with-case-statements.patch
new file mode 100644
index 0000000..46e275f
--- /dev/null
+++ b/utils/schroot/patches/0004-Replace-egrep-with-case-statements.patch
@@ -0,0 +1,55 @@
+From 635c1a4d4ebfca1ba53c63d181a389927a873077 Mon Sep 17 00:00:00 2001
+From: Ismael Luceno <ismael AT sourcemage.org>
+Date: Thu, 18 Feb 2021 20:19:24 +0100
+Subject: [PATCH] Replace egrep with case statements
+
+This allows schroot to work on systems with limited implementations like the
one
+in busybox.
+
+Upstream-Status: Pending
+---
+ etc/setup.d/20copyfiles | 13 +++++--------
+ etc/setup.d/20nssdatabases | 6 +++---
+ 2 files changed, 8 insertions(+), 11 deletions(-)
+
+diff --git a/etc/setup.d/20copyfiles b/etc/setup.d/20copyfiles
+index cf3ca82f8581..951db72c5d38
+--- a/etc/setup.d/20copyfiles
++++ b/etc/setup.d/20copyfiles
+@@ -80,14 +80,11 @@ if [ $STAGE = "setup-start" ] || [ $STAGE =
"setup-recover" ]; then
+ if [ -n "$SETUP_COPYFILES" ]; then
+ if [ -f "$SETUP_COPYFILES" ]; then
+ while read file; do
+- if echo "$file" | egrep -q '^(#|$)' ; then
+- continue
+- fi
+- if echo "$file" | grep -q '^/'; then
+- copy_file "$file" "${CHROOT_PATH}$file"
+- else
+- warn "Not copying file with relative path: $file"
+- fi
++ case "$file" in
++ (\#*|'') continue ;;
++ (/*) copy_file "$file" "${CHROOT_PATH}$file" ;;
++ (*) warn "Not copying file with relative path: $file"
;;
++ esac
+ done < "$SETUP_COPYFILES"
+ else
+ fatal "copyfiles file '$SETUP_COPYFILES' does not exist"
+diff --git a/etc/setup.d/20nssdatabases b/etc/setup.d/20nssdatabases
+index 6f14c81..697bb1e 100755
+--- a/etc/setup.d/20nssdatabases
++++ b/etc/setup.d/20nssdatabases
+@@ -37,9 +37,9 @@
+ if [ -n "$SETUP_NSSDATABASES" ]; then
+ if [ -f "$SETUP_NSSDATABASES" ]; then
+ while read db; do
+- if echo "$db" | egrep -q '^(#|$)' ; then
+- continue
+- fi
++ case "$db" in
++ (\#*|'') continue ;;
++ esac
+
+ # Device and inode
+ dr=$(/usr/bin/stat --format="%d %i" "/etc/$db")



  • [SM-Commit] GIT changes to master grimoire by Ismael Luceno (741bf580f48e2e6290c9cea6afa331f0a11cd1c9), Ismael Luceno, 02/18/2021

Archive powered by MHonArc 2.6.24.

Top of Page