Subject: [alpine-aports] [PATCH] testing/xmlsec: use new upstream distribution

From: Sander Maijers <[email-masked]>
Date: Sat, 21 May 2016 15:14:44 +0200

Hi,

The upstream URL has changed GitHub according to the official website
https://www.aleksey.com/xmlsec/

> Jan 28 2016
> The XML Security Library was migrated to GitHub. Please use GitHub for accessing source code and reporting issues.

I think I didn't get notified about the out-of-date flagging and the
resolution by Franceso BTW. Hopefully I can stay on top of it in the
future.
http://git.alpinelinux.org/cgit/aports/commit/testing/xmlsec/APKBUILD?id=9389dc663f5228ea2ea5846f708546aee39cd45c

Best,
Sander
From 504038e9a9fcf064828a27ffcf08cf0f5438d0e1 Mon Sep 17 00:00:00 2001
From: Sander Maijers <[email-masked]>
Date: Sat, 21 May 2016 14:59:13 +0200
Subject: [PATCH] testing/xmlsec: use new upstream distribution

---
 testing/xmlsec/APKBUILD | 49 +++++++++++++++++++++++++------------------------
 1 file changed, 25 insertions(+), 24 deletions(-)

diff --git a/testing/xmlsec/APKBUILD b/testing/xmlsec/APKBUILD
index 6b57fd4..bca90ff 100644
--- a/testing/xmlsec/APKBUILD
+++ b/testing/xmlsec/APKBUILD
@@ -4,48 +4,49 @@ pkgname='xmlsec'
 pkgver='1.2.22'
 pkgrel='0'
 pkgdesc="Provides a C based implementation for XML Signature Syntax and Processing and XML Encryption Syntax and Processing."
-url="https://www.aleksey.com/${pkgname}"
+url="https://github.com/lsh123/${pkgname}/"
 arch="all"
 license="MIT"
 depends=""
 depends_dev=
-makedepends="${depends_dev} libxml2-dev libxslt-dev openssl-dev libtool"
+makedepends="${depends_dev} libxml2-dev libxslt-dev openssl-dev autoconf automake libtool"
 install=
 subpackages="${pkgname}-dev ${pkgname}-doc"
-source="${url}/download/${pkgname}1-${pkgver}.tar.gz"
-_builddir="${srcdir}/${pkgname}1-${pkgver}"
+source="${url}/archive/${pkgname}-${pkgver//./_}.tar.gz"
+_builddir="${srcdir}/${pkgname}-${pkgname}-${pkgver//./_}"
 
 prepare() {
     :
 }
 
 build() {
-	cd "${_builddir}"
-	./configure \
-		--build="$CBUILD" \
-		--host="$CHOST" \
-		--prefix='/usr' \
-		--disable-static \
-		--enable-pkgconfig \
-		--with-default-crypto='openssl' \
-		|| return 1
-	make || return 1
+    cd "${_builddir}"
+    ./autogen.sh &&
+    ./configure \
+            --build="$CBUILD" \
+            --host="$CHOST" \
+            --prefix='/usr' \
+            --disable-static \
+            --enable-pkgconfig \
+            --with-default-crypto='openssl' \
+            || return 1
+    make || return 1
 }
 
 check() {
-	cd "${_builddir}" &&
-	make -k check || return 1
+    cd "${_builddir}" &&
+    make -k check || return 1
 }
 
 package() {
-	cd "${_builddir}" &&
-	make DESTDIR="${pkgdir}" install || return 1
+    cd "${_builddir}" &&
+    make DESTDIR="${pkgdir}" install || return 1
 
-	install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" &&
-	install -m644 'COPYING' "${pkgdir}/usr/share/licenses/${pkgname}/" \
-		|| return 1
+    install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" &&
+    install -m644 'COPYING' "${pkgdir}/usr/share/licenses/${pkgname}/" \
+            || return 1
 }
 
-md5sums="0fb1bb06d60d7708abc4797008209bcc  xmlsec1-1.2.22.tar.gz"
-sha256sums="8c06bf161c565b907a499e6d906f0b640f063b2b4efd2b471048ac5b3c1ad527  xmlsec1-1.2.22.tar.gz"
-sha512sums="69ea729cc8e3154e0644b076c8217905920b7e5ef0360640a750f73d90c8a1d8bf139c6400571a7940727c85413a8f69b2204801d2fe97796ff944eb09bbbb69  xmlsec1-1.2.22.tar.gz"
+md5sums="b0bdaeee4cb39bfe56f2d28bae17faa8  xmlsec-1_2_22.tar.gz"
+sha256sums="f04da7bb6e20e9b9b7a39bb64cfad6836c665cfa6e14f6316fc24fcac6cbac06  xmlsec-1_2_22.tar.gz"
+sha512sums="f03b2dd9fdd9152e4a13466bf71018a2ef5290425019d7576a6f9e9e40bd30b9e6c1895a1ba65cc819dd56a86ea1c6c47142250c6e0695d5c02d4e0322bd8b67  xmlsec-1_2_22.tar.gz"
\ No newline at end of file
-- 
2.8.2

---

From: Sander Maijers <[email-masked]>
Date: Thu, 16 Jun 2016 13:00:37 +0200

Hi,

When will this one be handled?

Best,
Sander Maijers

> http://git.alpinelinux.org/cgit/aports/commit/testing/xmlsec/APKBUILD?id=9389dc663f5228ea2ea5846f708546aee39cd45c

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Francesco Colista <[email-masked]>
Date: Thu, 16 Jun 2016 13:28:04 +0200

> When will this one be handled?

Hi Sander.
Since you're the maintainer, feel free to send a patch for it.
Thanks for your contribution!

-- 
:: Francesco Colista
:: Alpine Linux Infrstraucture
:: http://www.alpinelinux.org
:: GnuPG ID: C4FB9584

---

---

From: Sander Maijers <[email-masked]>
Date: Thu, 16 Jun 2016 16:55:11 +0200

Hi Francesco,

Thanks, but I don't understand your comment, I've sent the patch as
attachment back then and I was just asking today, in the same e-mail
thread, when it will be applied. I've volunteered as maintainer, but
I'm not a committer.

Best,
Sander

---

---

From: Francesco Colista <[email-masked]>
Date: Thu, 16 Jun 2016 17:04:39 +0200

> thread, when it will be applied. I've volunteered as maintainer, but

That patch would not applied because i had already upgrade the package.
You can send a new one with what the change you want, and one of the 
packager will be happy to apply it.
Thanks!

---

---

From: Sander Maijers <[email-masked]>
Date: Fri, 17 Jun 2016 23:37:22 +0200

Hi Francesco,

Ah, well as I indicated in the patch, I changed the package to use a
different upstream release URL, it wasn't a version upgrade. Sooner or
later the old one will stop working..

Best,
Sander

On Thu, Jun 16, 2016 at 5:04 PM, Francesco Colista <[email-masked]
> wrote: