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

Bug#858199: broken /usr/include/libreoffice/sal/typesizes.h symlink on !amd64 (was: Re: sdk-examples fails on i386 [was: libreoffice 1:5.3.1-0ubuntu1) stuck in zesty-proposed]



Package: libreoffice-dev,libreoffice-dev-common
Version: 1:5.2.3~rc1-1
Severity: grave

Hi,

On Sun, Mar 19, 2017 at 03:00:21PM +0100, bjoern wrote:
> 1/ libreoffice-dev/amd64 has a /usr/include/x86_64-linux-gnu/libreoffice/sal/typesizes.h
>    while the example is set up to find the header in /usr/include/libreoffice/sal/typesizes.h
> 2/ libreoffice-dev/i386 has a /usr/include/i386-linux-gnu/libreoffice/sal/typesizes.h
>    while the example is set up to find the header in /usr/include/libreoffice/sal/typesizes.h
> 3/ libreoffice-dev-common/all has a symlink to ../../x86_64-linux-gnu/libreoffice/sal/typesizes.h

F*k.

> And 3/ makes this accidentally work on amd64, but also is obviously wrong in
> putting arch-dep stuff in -common.

Yeah.

> To solve this, IMHO we need to:
> 
> a/  Remove the symlink in libreoffice-dev-common.
> 
> and either:
> 
> b1/ Deploy the symlink at /usr/include/libreoffice/sal/typesizes.h to arch in
>     libreoffice-dev and do the Breaks:/Replaces: dance for that.

That should be done.

diff --git a/rules b/rules
index 469b7afe..e7f348ed 100755
--- a/rules
+++ b/rules
@@ -2318,7 +2318,7 @@ ifeq "$(PACKAGE_SDK)" "y"
        mkdir -p $(PKGDIR)-dev/usr/include/$(DEB_HOST_MULTIARCH)/libreoffice/sal
        mv $(PKGDIR)-dev-common/usr/include/libreoffice/sal/typesizes.h \
                $(PKGDIR)-dev/usr/include/$(DEB_HOST_MULTIARCH)/libreoffice/sal
-       cd $(PKGDIR)-dev-common/usr/include/libreoffice/sal/ && \
+       cd $(PKGDIR)-dev/usr/include/libreoffice/sal/ && \
                ln -s /usr/include/$(DEB_HOST_MULTIARCH)/libreoffice/sal/typesizes.h
        mkdir -p $(PKGDIR)-dev-common/usr/share/idl
        mv $(PKGDIR)-dev/usr/share/idl/libreoffice \

Making this a (RC) bug in Debian, too. It's not in any way new in 5.3.x but
there in Debian since 1:5.2.3~rc1-1.

Regards,

Rene


Reply to: