On Sun, 22 Apr 2012, Julien Cristau wrote:

> Package: libpopt0
> Version: 1.16-3
> Severity: important
> User: multiarch-de...@lists.alioth.debian.org
> Usertags: multiarch
> 
> Hi,
> 
> libpopt0 is marked as Multi-Arch: same, but contains files in
> arch-independent paths with arch-specific contents:
> [...]

The following patch should make .mo files to be always little endian.

Not that I think it is a good idea to mix .mo files and libraries in
the same package, but definitely the current gettext package does
*not* prevent you from doing so.

--- a/debian/rules
+++ b/debian/rules
@@ -45,6 +45,8 @@
 objdir = $(CURDIR)/obj-$(DEB_HOST_GNU_TYPE)
 objdir_udeb = $(objdir)-udeb
 
+MSGFMT = /usr/bin/msgfmt --endianness little
+
 configure: configure-deb-stamp configure-udeb-stamp
 configure-deb-stamp:
        dh_testdir
@@ -52,7 +54,7 @@
        mkdir $(objdir)
        # Add here commands to configure the package.
        cd $(objdir) && \
-       ../configure --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) --prefix=/usr 
--mandir=/usr/share/man --enable-shared $(CROSS)
+       MSGFMT="$(MSGFMT)" ../configure --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) 
--prefix=/usr --mandir=/usr/share/man --enable-shared $(CROSS)
        touch $@
 
 configure-udeb-stamp:
@@ -61,7 +63,7 @@
        mkdir $(objdir_udeb)
        # Add here commands to configure the package.
        cd $(objdir_udeb) && \
-       ../configure --prefix=/usr --mandir=/usr/share/man --enable-shared 
$(CROSS)
+       MSGFMT="$(MSGFMT)" ../configure --prefix=/usr --mandir=/usr/share/man 
--enable-shared $(CROSS)
        touch $@
 
 build: build-arch build-indep



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to