From: sgn <sgn@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] Chroot git upload pack
Date: Wed, 20 Oct 2021 08:15:14 +0200 [thread overview]
Message-ID: <20211020061514.ljyitP9o3kEAimP6o2zfp5KTIlXFG-nN_hscMKHPxe4@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-33649@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1596 bytes --]
There is an updated pull request by sgn against master on the void-packages repository
https://github.com/sgn/void-packages chroot-git-upload-pack
https://github.com/void-linux/void-packages/pull/33649
Chroot git upload pack
<!-- Mark items with [x] where applicable -->
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/33649.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-chroot-git-upload-pack-33649.patch --]
[-- Type: text/x-diff, Size: 2934 bytes --]
From ea067cd97fecc6de205841a1fc18ba404d65b9cb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
<congdanhqx@gmail.com>
Date: Wed, 20 Oct 2021 12:45:53 +0700
Subject: [PATCH 1/2] chroot-git: update to 2.33.1, allow git-clone local
repository
---
srcpkgs/chroot-git/template | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/chroot-git/template b/srcpkgs/chroot-git/template
index cda37b356a55..66a46988cdcd 100644
--- a/srcpkgs/chroot-git/template
+++ b/srcpkgs/chroot-git/template
@@ -1,7 +1,7 @@
# Template file for 'chroot-git'
pkgname=chroot-git
-version=2.33.0
-revision=2
+version=2.33.1
+revision=1
bootstrap=yes
wrksrc="git-${version}"
makedepends="zlib-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://git-scm.com/"
distfiles="https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz"
-checksum=bf3c6ab5f82e072aad4768f647cfb1ef60aece39855f83f080f9c0222dd20c4f
+checksum=e054a6e6c2b088bd1bff5f61ed9ba5aa91c9a3cd509539a4b41c5ddf02201f2f
if [ "$CHROOT_READY" ]; then
checkdepends="perl gnupg"
@@ -39,6 +39,8 @@ do_configure() {
GIT_PROVE_OPTS = $makejobs
# firstword (uname -m)
HOST_CPU = ${XBPS_TARGET_MACHINE%-musl}
+ SKIP_DASHED_BUILT_INS = Yes
+ gitexecdir = libexec/chroot-git
EOF
if [ "$XBPS_TARGET_LIBC" = musl ]; then
@@ -62,4 +64,8 @@ do_check() {
do_install() {
vbin git chroot-git
+ vmkdir usr/libexec/chroot-git
+ ln -s ../../bin/chroot-git $DESTDIR/usr/libexec/chroot-git/git
+ ln -s git $DESTDIR/usr/libexec/chroot-git/git-upload-pack
+ ln -s git $DESTDIR/usr/libexec/chroot-git/git-receive-pack
}
From af94e2fafff116ebb9818f9157b4b8059794da02 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
<congdanhqx@gmail.com>
Date: Wed, 20 Oct 2021 12:57:33 +0700
Subject: [PATCH 2/2] test-chroot-git
---
common/travis/build.sh | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/common/travis/build.sh b/common/travis/build.sh
index f5cf9cffc064..93cf859b6d2e 100755
--- a/common/travis/build.sh
+++ b/common/travis/build.sh
@@ -3,11 +3,12 @@
# build.sh
if [ "$1" != "$2" ]; then
+ exit 0
arch="-a $2"
fi
if [ "$3" = 1 ]; then
- test="-Q"
+ : test="-Q"
fi
PKGS=$(/hostrepo/xbps-src sort-dependencies $(cat /tmp/templates))
@@ -17,4 +18,24 @@ for pkg in ${PKGS}; do
[ $? -eq 1 ] && exit 1
done
+xbps-install -R "$HOME"/hostdir/binpkgs -u
+
+chroot-git clone /hostrepo /xhostrepo || exit
+ln -s / /xhostrepo/masterdir
+cd /xhostrepo
+chroot-git fetch
+chroot-git reset --hard "$GIT_REV"
+cd -
+
+cat <<! >/xhostrepo/etc/conf
+XBPS_CHROOT_CMD=ethereal
+XBPS_ALLOW_CHROOT_BREAKOUT=yes
+!
+
+if [ "${HOST}" != "${TARGET}" ] ; then
+ opts="-a ${TARGET}"
+fi
+
+/xhostrepo/xbps-src -H "$HOME"/hostdir pkg git || exit
+
exit 0
next prev parent reply other threads:[~2021-10-20 6:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-20 5:58 [PR PATCH] " sgn
2021-10-20 6:15 ` sgn [this message]
2021-10-20 6:17 ` [PR PATCH] [Updated] " sgn
2021-10-20 6:22 ` sgn
2021-10-20 10:01 ` sgn
2021-10-20 13:58 ` sgn
2021-10-20 13:59 ` [PR PATCH] [Merged]: " sgn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211020061514.ljyitP9o3kEAimP6o2zfp5KTIlXFG-nN_hscMKHPxe4@z \
--to=sgn@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).