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

            Bug ID: 100453
           Summary: Building fails with permission denied for
                    `unpack-sources`
           Product: LibreOffice
           Version: 5.1.3.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Installation
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: pmen...@molgen.mpg.de

Building LibreOffice 5.1.3.2 [1] with the flags below, it fails to unpack the
downloaded archives.

```
$ ./configure \
        --enable-verbose \
        --enable-release-build \
        --with-help \
        --with-lang=de \
        --with-jdk-home=/usr/local/java \
        --with-ant-home=/package/mariux64/ant \
        --with-system-openssl \
        --without-junit \
        --without-doxygen \
        --disable-odk \
        --disable-epm \
        --enable-python=internal
$ make -j
[…]
/sources/libreoffice-5.1.3.2/bin/unpack-sources /sources/libreoffice-5.1.3.2
/sources/libreoffice-5.1.3.2/src/libreoffice-translations-5.1.3.2.tar.xz
/sources/libreoffice-5.1.3.2/bin/unpack-sources: Permission denied
 make: *** [get-submodules] Error 126
```

Reason is, that the executable bit is not set.

```
$ ls -l bin/unpack-sources
-rw-r----- 1 joey joey 2393 May  4 00:51 bin/unpack-sources
```

It can be verified directly.

```
$ tar xf libreoffice-5.1.3.2.tar.xz
$ cd libreoffice-5.1.3.2/
$ ls -l bin/unpack-sources 
-rw-r----- 1 joey joey 2393 May  4 00:51 bin/unpack-sources
```

It seems to be an old problem already present in LibreOffice 4.1.0 [1].

The solution is to correct the file permission in the source repository, or to
call the script with `bash`.

The first solution looks more correct, as the script has the shebang line
below.

```
#!/usr/bin/env bash
```

[1]
https://download.documentfoundation.org/libreoffice/src/5.1.3/libreoffice-5.1.3.2.tar.xz
[2]
http://lists.linuxfromscratch.org/pipermail/blfs-support/2013-August/073286.html

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

Reply via email to