Your message dated Sun, 21 Feb 2016 14:01:09 +0000
with message-id <[email protected]>
and subject line Bug#814872: fixed in npth 1.2-3
has caused the Debian Bug report #814872,
regarding npth: Please offer a package for cross-building mingw (windows)
artifacts against npth
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
814872: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814872
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: npth
Version: 1.2-2
Severity: normal
Tags: patch
It's useful to be able to build Windows artifacts on debian systems.
In particular, we want to be able to build things like win32-loader,
and the things inside it.
The attached series of patches creates a new arch-independent package,
libnpth-mingw-w64-dev, which facilitates that kind of work.
The choice of location and naming for the libraries comes from Stephen
Kitt, see:
https://lists.alioth.debian.org/pipermail/pkg-gnupg-maint/2016-February/003286.html
--dkg
-- System Information:
Debian Release: stretch/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'testing'), (200, 'unstable'), (1,
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
>From d40c2d6596ba38243a6689ac9099398725ff7deb Mon Sep 17 00:00:00 2001
From: Daniel Kahn Gillmor <[email protected]>
Date: Mon, 15 Feb 2016 23:45:49 -0500
Subject: [PATCH 1/3] build out-of-tree for cleanliness
---
debian/clean | 1 +
debian/rules | 8 +++++++-
2 files changed, 8 insertions(+), 1 deletion(-)
create mode 100644 debian/clean
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..567609b
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+build/
diff --git a/debian/rules b/debian/rules
index 3d3a750..af33f17 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,13 @@
dh $@ --parallel --with autoreconf
override_dh_auto_configure:
- dh_auto_configure -- --enable-static
+ dh_auto_configure --builddirectory=build -- --enable-static
+
+override_dh_auto_build-arch:
+ dh_auto_build --builddirectory=build
+
+override_dh_auto_install-arch:
+ dh_auto_install --builddirectory=build
override_dh_makeshlibs:
dh_makeshlibs -V
--
2.7.0
>From 0717d5a96aff8fa7dbffb8061d3b631f3e0385ed Mon Sep 17 00:00:00 2001
From: Daniel Kahn Gillmor <[email protected]>
Date: Mon, 15 Feb 2016 23:51:14 -0500
Subject: [PATCH 2/3] Enable cross-building environment for Windows
We have some packages in debian that would like to build for the
Windows platform, in particular, for contributing to win32-loader.
This set of changes enables the creation of an arch-indep package for
use cross-building Windows artifacts that depend on libnpth.
---
debian/clean | 2 ++
debian/control | 18 ++++++++++++++++++
debian/libnpth-mingw-w64-dev.install | 6 ++++++
debian/libnpth-mingw-w64-dev.lintian-overrides | 13 +++++++++++++
debian/rules | 26 ++++++++++++++++++++++++++
5 files changed, 65 insertions(+)
create mode 100644 debian/libnpth-mingw-w64-dev.install
create mode 100644 debian/libnpth-mingw-w64-dev.lintian-overrides
diff --git a/debian/clean b/debian/clean
index 567609b..b388f56 100644
--- a/debian/clean
+++ b/debian/clean
@@ -1 +1,3 @@
build/
+build-i686-w64-mingw32/
+build-x86_64-w64-mingw32/
diff --git a/debian/control b/debian/control
index a8718e5..27892d2 100644
--- a/debian/control
+++ b/debian/control
@@ -3,6 +3,7 @@ Section: libdevel
Priority: optional
Maintainer: Eric Dorland <[email protected]>
Build-Depends: debhelper (>= 9.20151219), dh-autoreconf
+Build-Depends-Indep: mingw-w64
Standards-Version: 3.9.6.1
Homepage: http://www.gnupg.org/
Vcs-Git: git://anonscm.debian.org/users/eric/npth.git
@@ -37,3 +38,20 @@ Description: replacement for GNU Pth using system threads
implementation. Thus nPth allows the use of libraries which are not
compatible to GNU Pth.
+Package: libnpth-mingw-w64-dev
+Architecture: all
+Priority: extra
+Section: libdevel
+Suggests: mingw-w64
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: replacement for GNU Pth using system threads (Windows dev)
+ nPth is a non-preemptive threads implementation using an API very
+ similar to the one known from GNU Pth. It has been designed as a
+ replacement of GNU Pth for non-ancient operating systems. In
+ contrast to GNU Pth it is based on the system's standard threads
+ implementation. Thus nPth allows the use of libraries which are not
+ compatible to GNU Pth.
+ .
+ This is a Windows version of nPth. It's meant to be used when
+ cross-building software that targets the Windows platform, e.g. the
+ win32-loader component of Debian-Installer.
diff --git a/debian/libnpth-mingw-w64-dev.install b/debian/libnpth-mingw-w64-dev.install
new file mode 100644
index 0000000..ab6e93e
--- /dev/null
+++ b/debian/libnpth-mingw-w64-dev.install
@@ -0,0 +1,6 @@
+usr/i686-w64-mingw32/bin/*
+usr/i686-w64-mingw32/lib/*
+usr/i686-w64-mingw32/include/*
+usr/x86_64-w64-mingw32/bin/*
+usr/x86_64-w64-mingw32/lib/*
+usr/x86_64-w64-mingw32/include/*
diff --git a/debian/libnpth-mingw-w64-dev.lintian-overrides b/debian/libnpth-mingw-w64-dev.lintian-overrides
new file mode 100644
index 0000000..73213e6
--- /dev/null
+++ b/debian/libnpth-mingw-w64-dev.lintian-overrides
@@ -0,0 +1,13 @@
+# libnpth-mingw-w64-dev is "arch-independent" from debian's perspective,
+# since it ships binaries that are only used during cross-building
+# windows software.
+libnpth-mingw-w64-dev: arch-independent-package-contains-binary-or-object
+
+# The location of these cross-building tools is the result of
+# discussion with mingw maintainers:
+# https://lists.alioth.debian.org/pipermail/pkg-gnupg-maint/2016-February/003281.html
+libnpth-mingw-w64-dev: file-in-unusual-dir
+libnpth-mingw-w64-dev: non-standard-dir-in-usr
+
+# DLLs exported via Samba need to be executable (see #796224)
+libnpth-mingw-w64-dev: executable-not-elf-or-script
diff --git a/debian/rules b/debian/rules
index af33f17..62dc7b8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,3 +17,29 @@ override_dh_makeshlibs:
override_dh_strip:
dh_strip --ddeb-migration='libnpth0-dbg (<< 1.2-2~)'
+
+### "arch-independent" Windows builds: ###
+
+WIN_FLAGS=LDFLAGS="-Xlinker --no-insert-timestamp" CFLAGS="-g -Os" CPPFLAGS=
+
+override_dh_auto_build-indep:
+ for cpu in i686 x86_64; do \
+ mkdir -p build-$$cpu-w64-mingw32 && \
+ cd build-$$cpu-w64-mingw32 && $(WIN_FLAGS) ../configure \
+ --prefix=/usr/$$cpu-w64-mingw32 \
+ --with-prefix=/usr/$$cpu-w64-mingw32 \
+ --with-libgpg-error-prefix=/usr/$$cpu-w64-mingw32 \
+ --enable-static \
+ --host $$cpu-w64-mingw32 && \
+ $(WIN_FLAGS) $(MAKE) \
+ || exit 1 ; \
+ cd .. ; \
+ done
+
+override_dh_auto_install-indep:
+ for cpu in i686 x86_64; do \
+ cd build-$$cpu-w64-mingw32 && \
+ $(MAKE) install DESTDIR=$(shell pwd)/debian/tmp \
+ || exit 1 ; \
+ cd .. ; \
+ done
--
2.7.0
>From 318aa948adad6efab03f2fd3bac6b8da7f9adecf Mon Sep 17 00:00:00 2001
From: Daniel Kahn Gillmor <[email protected]>
Date: Mon, 15 Feb 2016 23:45:01 -0500
Subject: [PATCH 3/3] update changelog as an NMU
---
debian/changelog | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 4098093..703c5e5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+npth (1.2-2.1) unstable; urgency=medium
+
+ * add libnpth-mingw-w64-dev for cross-building Windows artifacts.
+
+ -- Daniel Kahn Gillmor <[email protected]> Tue, 16 Feb 2016 01:19:03 -0500
+
npth (1.2-2) unstable; urgency=medium
* debian/control: Fix grammer mistake in description. Thanks Marius
--
2.7.0
--- End Message ---
--- Begin Message ---
Source: npth
Source-Version: 1.2-3
We believe that the bug you reported is fixed in the latest version of
npth, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Eric Dorland <[email protected]> (supplier of updated npth package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sat, 20 Feb 2016 12:30:29 -0500
Source: npth
Binary: libnpth0-dev libnpth0 libnpth-mingw-w64-dev
Architecture: source all amd64
Version: 1.2-3
Distribution: unstable
Urgency: medium
Maintainer: Eric Dorland <[email protected]>
Changed-By: Eric Dorland <[email protected]>
Description:
libnpth-mingw-w64-dev - replacement for GNU Pth using system threads (Windows
dev)
libnpth0 - replacement for GNU Pth using system threads
libnpth0-dev - headers for libnpth0
Closes: 814872
Changes:
npth (1.2-3) unstable; urgency=medium
.
* debian/control: Convert Homepage and Vcs-* to https.
* debian/rules, debian/clean: Build out of tree for cleanliness. Thanks
Daniel Kahn Gillmor.
* debian/libnpth-mingw-w64-dev.install,
debian/libnpth-mingw-w64-dev.lintian-overrides, debian/rules,
debian/control, debian/clean: Add libnpth-mingw-w64-dev for
cross-building Windows artifacts. Thanks Daniel Kahn Gillmor. (Closes:
#814872)
Checksums-Sha1:
2a385dafee6ceb6e3fde1c213595c7cef57cea02 1960 npth_1.2-3.dsc
d02a3009136d1ea270110b8e758376b47838e2cd 10216 npth_1.2-3.debian.tar.xz
95fe81c49b69d2182fa52acb3d26edf280e2c3b3 91558
libnpth-mingw-w64-dev_1.2-3_all.deb
4dbc545b86da65e8594a428a765dc39a00870a15 13952 libnpth0-dbgsym_1.2-3_amd64.deb
ed65e5e3e3aeccf105530fb3540c1685dea6ec81 18800 libnpth0-dev_1.2-3_amd64.deb
a00b36083f2d94e938eba39bbbfafe8e432d3701 13722 libnpth0_1.2-3_amd64.deb
Checksums-Sha256:
457abe6599eda4ab9f4dc73a4ee1e250269febe333e8a660716544a16d8552de 1960
npth_1.2-3.dsc
b63d662bf8b2ad834c1dce75ae53af592c4b2d9d1e70ddc6ef82c98d7321045b 10216
npth_1.2-3.debian.tar.xz
4fbfe91cc575338f96fb9603016fe038e4bf36a2e186baf823ef11b658cbe798 91558
libnpth-mingw-w64-dev_1.2-3_all.deb
b53ea97c615909f161754e969325d40b59e85bad6b83e2a4a7d98068e9324e19 13952
libnpth0-dbgsym_1.2-3_amd64.deb
e5bbae4c1597c8abb6a7200f43c2e50ff2250fe235aceb2b88402ac6a2119ac7 18800
libnpth0-dev_1.2-3_amd64.deb
701ffc537b185e368fafb94f63ce7c68ce0d62a007391ace8b087ee2e5cda522 13722
libnpth0_1.2-3_amd64.deb
Files:
ec46c2db31476aaf238ac68eb9bed426 1960 libdevel optional npth_1.2-3.dsc
8acabd053b3d57aee2a9ad0937a34424 10216 libdevel optional
npth_1.2-3.debian.tar.xz
54ed17a8229580a3b7c67f62f49a8eca 91558 libdevel extra
libnpth-mingw-w64-dev_1.2-3_all.deb
32cd3ad9274a9b677975f73b012b4ee7 13952 debug extra
libnpth0-dbgsym_1.2-3_amd64.deb
4614449cca2451e0e48b13b69dd1a79c 18800 libdevel optional
libnpth0-dev_1.2-3_amd64.deb
6861437996549cd4f921328ea612363f 13722 libs optional libnpth0_1.2-3_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCAAGBQJWyKYYAAoJEMJW+9UAIh6TGAoP/jMBxivqwIR75ohyRuRbqaD8
LGJhqWQIPm9CxQlbVpEesa8WxaTQDncP9ikX3JVNxsGlxL5VT1ZkkLbICfDmFnAG
6scVEZT6ZUzrTdZl2W3pWCpUC2lpYcg1IDTeqoRSOg9+cqo/wLkMg5ZOoLKUWS7l
w/DU2tYv77io5dphqDzULKV04vf52ZzOOHRtLUOQurloNiIRevMu5a47G4j1jiqY
jMQP+8rP7Gt4tDLYS6UT+lhG6M3d7Lmp9tzl6uBQlCTHEeu/q0HQ+6RKuObqugJy
Ov7KjwvJsJi08E822ILcJcpPRRj1Y7SB+OeAAufuv9nA4rxOL65hAhWp4tnv7FaQ
bCc6I3MYx3pktMYysqQ0PzrtNv8o6LWCU8PQsKn3utYC8etTYkfCh0WO4s/aAL9X
HucqCgUlyzAn3dpudiY3gLJ99+NsA0ew7mtg+s5qO9iO4JYURWhIorDi7vTJ+RHs
tWU7GeGb/2N0sQGX8o83jiZ0WhQQN14SBQK0Zu15ARW6bBWE4We3Ogkb2df6jFPw
exRYWu/7bIpVzAYTJ/M2jnJ1zrRSJVj6D/O8DThZUqfX/9pPUFVUQ+hsE4SB/r/a
+U7NMmq4ZbsJMZL5JxcVfabOLzlH/BPCuOCfYA5zR2v2JBmKrMrDriviD0W4WiZv
s4AxDWeMeJuMerxg+H7U
=5tbB
-----END PGP SIGNATURE-----
--- End Message ---