X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 0BF48DCB960 for ; Fri, 25 Sep 2015 17:57:19 +0000 (UTC) Received: from newmail.tetrasec.net (unknown [74.117.189.116]) by mail.alpinelinux.org (Postfix) with ESMTP id D36D0DC7DA5 for ; Fri, 25 Sep 2015 17:57:18 +0000 (UTC) Received: from sparky_64.resnet.local (fw.spencertelecom.com [74.117.189.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: nangel@tetrasec.net) by newmail.tetrasec.net (Postfix) with ESMTPSA id 96A705A74BD; Fri, 25 Sep 2015 17:46:56 +0000 (GMT) From: Nathan Angelacos To: alpine-aports@lists.alpinelinux.org Cc: Nathan Angelacos Subject: [alpine-aports] [PATCH] main/git Allow send-email to send patches greater than 16K in size. Date: Fri, 25 Sep 2015 17:57:13 +0000 Message-Id: <1443203833-32680-1-git-send-email-nangel@alpinelinux.org> X-Mailer: git-send-email 2.5.3 X-Virus-Scanned: ClamAV using ClamSMTP X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Source: http://git.661346.n2.nabble.com/git-send-email-Connection-Closed-td7635648.html --- main/git/0001-senddata-16K-workaround.patch | 21 +++++++++++++++++++++ main/git/APKBUILD | 4 ++++ 2 files changed, 25 insertions(+) create mode 100644 main/git/0001-senddata-16K-workaround.patch diff --git a/main/git/0001-senddata-16K-workaround.patch b/main/git/0001-senddata-16K-workaround.patch new file mode 100644 index 0000000..2455b25 --- /dev/null +++ b/main/git/0001-senddata-16K-workaround.patch @@ -0,0 +1,21 @@ +diff --git a/git-send-email.perl b/git-send-email.perl +index ae9f869..b11dce8 100755 +--- a/git-send-email.perl ++++ b/git-send-email.perl +@@ -1347,7 +1347,15 @@ Message-Id: $message_id + $smtp->mail( $raw_from ) or die $smtp->message; + $smtp->to( @recipients ) or die $smtp->message; + $smtp->data or die $smtp->message; +- $smtp->datasend("$header\n$message") or die $smtp->message; ++ # Apparently datasend cannot send more than about 16 and large patches ++ # cannot be sent. Source: ++ # http://git.661346.n2.nabble.com/git-send-email-Connection-Closed-td7635648.html ++ $smtp->datasend("$header\n") or die $smtp->message ++ my @lines = split /^/, $message; ++ foreach my $line (@lines) { ++ $smtp->datasend("$line") or die $smtp->message ++ } ++ $message") or die $smtp->message; + $smtp->dataend() or die $smtp->message; + $smtp->code =~ /250|200/ or die "Failed to send $subject\n".$smtp->message; + } diff --git a/main/git/APKBUILD b/main/git/APKBUILD index 1f39c79..55c8a52 100644 --- a/main/git/APKBUILD +++ b/main/git/APKBUILD @@ -32,6 +32,7 @@ makedepends="zlib-dev openssl-dev curl-dev expat-dev perl-dev python-dev pcre-dev asciidoc xmlto perl-error tcl tk" source="git-$pkgver.tar.xz::https://www.kernel.org/pub/software/scm/git/git-$pkgver.tar.xz bb-tar.patch + 0001-senddata-16K-workaround.patch git-daemon.initd git-daemon.confd " @@ -236,13 +237,16 @@ _git_perl() { md5sums="e69b41f2d0a93f3d3dc5eb19196e4e5c git-2.5.3.tar.xz e63a201556c4f089de790805c09a2e5b bb-tar.patch +820595e9651c98b696d2636a0a471824 0001-senddata-16K-workaround.patch 75b9d8f33fbec38a8e0e06baf5165b19 git-daemon.initd 2258e95d389ccc6de0b5111d53d9eed6 git-daemon.confd" sha256sums="124d29d857a1282fd2111cf4a021f156e8bae917f455b4551b2aea87f0453a1a git-2.5.3.tar.xz cb6319f47d81605e199771350154cbed0a6e85ef9042a689f2b405c64039f49c bb-tar.patch +45632b49b0995984feb396c25e7baf8521341840ff78b9961bc62915a71e14e3 0001-senddata-16K-workaround.patch 7918837f77b4cebce70b600b2f6da00e4c0df6b946f4ff5671c797c37b2ffc4f git-daemon.initd aaa80bd059db549dadf4c4e27a9aa41a4b5def844f8e563c493bc8513dcd981e git-daemon.confd" sha512sums="ab73d67f76ec8a6350995c692eefa7ab60ae13590d5d7c2fbd3ec1105a8d435ec1b156106fd6c3d6b51080a27f3ebd66bbf0a85042b697bc835143d9f625474e git-2.5.3.tar.xz 6fa088a753c2a697e8dbef2032ed63e8c2a0553a41cff2fcff893c2f35c51d2c697054cc921c23ee606f77b93d0f340df85220b15e1c470bd352f7fba3986cd0 bb-tar.patch +7af0b0efbdf242c672864bf3ebc7413cf789c81ab82410485168ac262d6aefb417b7fbf471aaafac52d03d0f473933339a39d64a9cd114800ce5f2d1415261a4 0001-senddata-16K-workaround.patch 1e707250d133d56100f0311e7c2610920d6d81809c425ebf3e6acb4a289b958707a90dc38e1c17720da6dc2758dd84bf957fe6aed3854eacea79226eb616e885 git-daemon.initd 9640f8078d68ed2678e5249da3f946fc21f50e858b94127a4221de73c6132101afcd46bc1fe33861e9a7f731c0dc9591915b8ebf376b8e690cd7135703966509 git-daemon.confd" -- 2.5.3 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---