chiark / gitweb /
Multiarch: Move .so's to triplet paths, and declare M-A: same.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 24 Jan 2017 14:28:22 +0000 (14:28 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 24 Jan 2017 14:28:22 +0000 (14:28 +0000)
debian/changelog
debian/control
debian/rules

index 706198f..91dbcfd 100644 (file)
@@ -9,6 +9,7 @@ chiark-tcl (1.1.4~~iwj) UNRELEASED; urgency=low
   * Update build-dependencies to permit tcl8.6.  Closes:#818475.
   * Replace ad-hocery with use of offsetof/typeof.  Closes:#812718.
   * Honour dpkg-architecture's DEB_HOST_GNU_TYPE, to fix cross-building.
+  * Multiarch: Move .so's to triplet paths, and declare M-A: same.
 
  -- Ian Jackson <ijackson@chiark.greenend.org.uk>  Tue, 24 Jan 2017 13:14:06 +0000
 
index 81e7675..9465cb1 100644 (file)
@@ -21,6 +21,7 @@ Description: Tcl interfaces for adns, cdb, crypto, etc.
  To use the adns and nettle bindings you need to have the
  appropriate libraries installed too.
 Depends: ${shlibs:Depends}, ${misc:Depends}
+Multi-arch: same
 
 
 # chiark-tcl - various Tcl bindings and extensions
index f5d4a2a..f9ed503 100755 (executable)
@@ -29,6 +29,8 @@ tclversion:=$(patsubst /usr/include/tcl%/tcl.h,%,$(tclh))
 garch := $(shell dpkg-architecture -q DEB_HOST_GNU_TYPE)
 ifneq ($(garch),)
 
+libsubdir = /$(garch)
+
 ifeq ($(origin CC),default)
 export CC=$(garch)-gcc
 endif
@@ -57,7 +59,7 @@ binary-indep:
 binary-arch:   checkroot build
        $(checkdir)
        -rm -rf debian/$(docpackage) debian/$(libpackage)
-       install -d debian/$(libpackage)/usr/lib
+       install -d debian/$(libpackage)/usr/lib$(libsubdir)
        install -d debian/$(docpackage)/usr/share/doc/$(docpackage)
 
        set -e; for f in lintian; do                                         \
@@ -66,7 +68,7 @@ binary-arch:  checkroot build
                 debian/$(libpackage)/usr/share/$$f/overrides/$(libpackage); \
                done
 
-       cp */*.so debian/$(libpackage)/usr/lib/.
+       cp */*.so debian/$(libpackage)/usr/lib$(libsubdir)/.
 
        set -e; for f in */*.[ch]; do                                   \
                perl debian/extractdoc <$$f                             \