[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Pkg-ime-devel] Bug#768061: ibus-hangul: arch dep file in /usr/share



Source: ibus-hangul
Version: 1.5.0-1
Severity: minor

As reported and discussed in 
  https://lists.debian.org/debian-devel/2014/11/msg00017.html

This arch dep file in /usr/share is cosmetic violation of FHS and
cosmetic RC bug.

--- i386/ibus-hangul/usr/share/ibus-hangul/setup/config.py 2014-10-12 18:39:39.000000000 +0000
+++ s390x/ibus-hangul/usr/share/ibus-hangul/setup/config.py 2014-10-12 18:57:11.000000000 +0000
@@ -21,6 +21,6 @@
 gettext_package = 'ibus-hangul'
 localedir = '/usr/share/locale'
 pkgdatadir = '/usr/share/ibus-hangul'
-pkglibdir = '/usr/lib/x86_64-linux-gnu/ibus-hangul'
+pkglibdir = '/usr/lib/s390x-linux-gnu/ibus-hangul'
 setupdatadir = pkgdatadir + '/setup'
 setuplibdir = pkglibdir + '/setup'


In order to fix this with minimal change, I think setting libdir to
/usr/lib/ibus in the debian/rules is the quick low impact fix.  Then
this package can be made M-A foreign in the jessie+1.  (Maybe
splitting out M-A same arch ALL data in a separate package.)

override_dh_auto_configure:
        dh_auto_configure -- --libexecdir=/usr/lib/ibus \
                             --libdir=/usr/lib/ibus

There are some usages of libdir for libexecdir in the source.  But
libdir is never used for the intended shared library.  So this seemingly
strange fix should work.

Of course fixing properly in the upstream source is another option.

setup/Makefike.am 
setup/ibus-setup-hangul.in
setup/config.py.in
 s/pkglibdir/pkglibexecdir/g
 s/PKGLIBDIR/PKGLIBEXECDIR/g
 s/setuplibexecdir/setuplibexecdir/g

Osamu

-- System Information:
Debian Release: jessie/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



Reply to: