https://bugs.documentfoundation.org/show_bug.cgi?id=105644

            Bug ID: 105644
           Summary: `create_tree.sh` not present in build directory
           Product: LibreOffice
           Version: 5.1.6.2 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Installation
          Assignee: [email protected]
          Reporter: [email protected]

Description:
`make -j72 distro-pack-install
DESTDIR=/dev/shm/bee-molgen/libreoffice/libreoffice-5.1.6.2-0/image` fails,
because the script `create_tree.sh` is not copied to the build directory.

```
cp: cannot stat ‘sysui/desktop/share/create_tree.sh’: No such file or directory
```

Steps to Reproduce:
1. Download

```
$ wget
https://download.documentfoundation.org/libreoffice/src/5.1.6/libreoffice-5.1.6.2.tar.xz
```

2. Extract

```
tar xof /dev/shm/bee-molgen/libreoffice/files/libreoffice-5.1.6.2.tar.xz -C
/dev/shm/bee-molgen/libreoffice/libreoffice-5.1.6.2-0/source --strip-components
```

3. Configure

```
$ /dev/shm/bee-molgen/libreoffice/libreoffice-5.1.6.2-0/source/configure
--prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec
--sysconfdir=/etc --sharedstatedir=/var --localstatedir=/var --libdir=/usr/lib
--includedir=/usr/include --datarootdir=/usr/share --datadir=/usr/share
--infodir=/usr/share/info --localedir=/usr/share/locale --mandir=/usr/share/man
--docdir=/usr/share/doc/libreoffice --exec-prefix=/usr --with-lang=de
--with-help --with-jdk-home=/usr/local/java
--with-ant-home=/package/mariux64/ant --without-doxygen --without-junit
--disable-dconf --disable-epm --disable-odk --enable-release-build
--enable-python=internal --with-system-apr --with-system-cairo
--with-system-curl --with-system-expat --with-system-harfbuzz --with-system-icu
--with-system-jpeg --with-system-lcms2 --with-system-libatomic_ops
--with-system-libpng --with-system-libxml --with-system-neon
--with-system-npapi-headers --with-system-nss --with-system-odbc
--with-system-openldap --with-system-openssl --with-system-poppler
--with-system-postgresql --with-system-serf --with-system-zlib
```

4. Build 

```
$ make -j72
```

5. Install

```
$ make -j72 distro-pack-install
DESTDIR=/dev/shm/bee-molgen/libreoffice/libreoffice-5.1.3.2-0/image
```

Actual Results:  
The installation fails with the error below.

```
$ make -j72 distro-pack-install
DESTDIR=/dev/shm/bee-pmenzel/libreoffice/libreoffice-5.1.3.2-0/image
[…]
Installation finished, you can now execute:
/usr/lib/libreoffice/program/soffice
/dev/shm/bee-pmenzel/libreoffice/libreoffice-5.1.6.2-0/source/bin/distro-install-clean-up
Cleaning up ...
Fixing permissions...
Checking for DESTDIR inside installed files...
/dev/shm/bee-pmenzel/libreoffice/libreoffice-5.1.6.2-0/source/bin/distro-install-desktop-integration
cp: cannot stat ‘sysui/desktop/share/create_tree.sh’: No such file or directory
g-ir-scanner: compile: gcc -Wall -Wno-deprecated-declarations -pthread
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2
-I/usr/include/gobject-introspection-1.0 -I/usr/lib/libffi-3.0.8/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-3.0
-I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng15
-I/usr/include/pixman-1
-I/dev/shm/bee-pmenzel/libreoffice/libreoffice-5.1.6.2-0/source/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng15 -I/usr/include/atk-1.0
-I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/pango-1.0
-I/usr/include/cairo -I/usr/include/harfbuzz -I/usr/include/freetype2
-I/usr/include/pixman-1 -c -o
/tmp/distro-pack-desktop-integration-Gge9AK/tmp-introspectmguxVS/LOKDocView-0.1.o
/tmp/distro-pack-desktop-integration-Gge9AK/tmp-introspectmguxVS/LOKDocView-0.1.c
g-ir-scanner: link: gcc -o
/tmp/distro-pack-desktop-integration-Gge9AK/tmp-introspectmguxVS/LOKDocView-0.1
-g -O2
/tmp/distro-pack-desktop-integration-Gge9AK/tmp-introspectmguxVS/LOKDocView-0.1.o
-L. -Wl,-rpath=. -Wl,--no-as-needed -llibreofficekitgtk
-L/dev/shm/bee-pmenzel/libreoffice/libreoffice-5.1.6.2-0/build/instdir/program
-Wl,-rpath=/dev/shm/bee-pmenzel/libreoffice/libreoffice-5.1.6.2-0/build/instdir/program
-Wl,--export-dynamic -pthread -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
dev/shm/bee-pmenzel/libreoffice/libreoffice-5.1.6.2-0/source/include/LibreOfficeKit/LibreOfficeKitGtk.h:297:
Warning: LOKDocView: lok_doc_view_set_document_password: unknown parameter
'pUrl' in documentation comment, should be 'pURL'
dev/shm/bee-pmenzel/libreoffice/libreoffice-5.1.6.2-0/source/include/LibreOfficeKit/LibreOfficeKitGtk.h:118:
Warning: LOKDocView: lok_doc_view_get_document: return value: Unresolved type:
'LibreOfficeKitDocument*'
/dev/shm/bee-pmenzel/libreoffice/libreoffice-5.1.6.2-0/build
/dev/shm/bee-pmenzel/libreoffice/libreoffice-5.1.6.2-0/build
Install /usr/bin/lobase
Install /usr/share/man/man1/lobase.1.gz
Install /usr/bin/localc
Install /usr/share/man/man1/localc.1.gz
Install /usr/bin/lodraw
Install /usr/share/man/man1/lodraw.1.gz
Install /usr/bin/lomath
Install /usr/share/man/man1/lomath.1.gz
Install /usr/bin/loimpress
Install /usr/share/man/man1/loimpress.1.gz
Install /usr/bin/loweb
Install /usr/share/man/man1/loweb.1.gz
Install /usr/bin/lowriter
Install /usr/share/man/man1/lowriter.1.gz
Install /usr/bin/lofromtemplate
Install /usr/share/man/man1/lofromtemplate.1.gz
Install /usr/bin/libreoffice
     skip already existing symlink /usr/bin/libreoffice
Install /usr/share/man/man1/libreoffice.1.gz
cp: cannot stat ‘sysui/desktop/man/libreoffice.1’: No such file or directory
Makefile:322: recipe for target 'distro-pack-install' failed
make: *** [distro-pack-install] Error 1

real    22m12.437s
user    693m34.078s
sys     49m17.626s
```

The script `bin/distro-install-desktop-integration` tries to copy the script
`create_tree.sh`, but it’s not present in the destination directory, and only
in the source directory.

```
$ more bin/distro-install-desktop-integration
[…]
cp -a sysui/desktop/share/create_tree.sh "$sysui_temp"
[…]
```

The result is the error message from above.

```
cp: cannot stat ‘sysui/desktop/share/create_tree.sh’: No such file or directory
```

Therefore, no manual pages are created, and other steps fail too.

Expected Results:
The script `create_tree.sh` should be present in the destination directory, so
that it is found, and executed.


Reproducible: Always

User Profile Reset: No

Additional Info:
The directory `sysui/desktop` in the destination directory only contains the di

```
$ ls -l sysui/desktop/
total 0
drwxr-xr-x 2 user user 60 Jan 31 14:24 macosx
```


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101
Firefox/51.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to