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

            Bug ID: 105643
           Summary: `make -j distro-pack-install` looks at build user home
                    directory `.cache/g-ir-scanner/`
           Product: LibreOffice
           Version: 5.1.6.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Installation
          Assignee: [email protected]
          Reporter: [email protected]

Description:
Running `make -j72 distro-pack-install
DESTDIR=/dev/shm/bee-root/libreoffice/libreoffice-5.1.6.2-0/image`, the process
is adding files in the user’s home directory `$HOME/.cache/g-ir-scanner`.

In my experience it’s considered bad practice if the installation touch the
home directory of the (build) user.

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-pmenzel/libreoffice/libreoffice-5.1.3.2-0/image
```

Actual Results:  
The installation fails with a permission denied error.

In this case, I forbid to create files in that directory.

```
$ ls -l ~/.cache/g-ir-scanner/
total 1384
-rw------- 1 root system 605076 Sep 22 16:43
069ac383a1f5dbf0cfacffd7f43f37b8758e018e
-rw------- 1 root system   9342 Sep 22 16:43
07a3dc06c2156f7b4bc7ee09907a1e9eddde9cfb
-rw------- 1 root system 346439 Sep  7 17:21
0c8dcaa7ab6bbaf96e9cb2e0f57c58bef57fb3ac
-rw------- 1 root system   5877 Sep 22 16:43
25c712f18483013f8d5474fae00f0ed2f86abce0
-rw------- 1 root system  81566 Sep  7 17:21
3d8ccebc1bd2f0f69818f0a50b179729b0f33721
-rw------- 1 root system  48655 Sep 22 16:43
4a7a7da6550dc01dd28284f59f03959c6da7df87
-rw------- 1 root system   4399 Sep 22 16:43
4bc602c03850c54739fba46effa7569bc2ef2008
-rw------- 1 root system  64044 Sep 22 16:43
93789c93f7d48b283387dbac8e08e4f00230d751
-rw------- 1 root system 127778 Sep  7 17:21
95f947bf1eae641455724fd5e7b08d716417dd95
-rw------- 1 root system  16327 Sep 22 16:43
c3fdfb2eef221c4c5ec8d16026d3ec132ad90e39
-rw------- 1 root system  44831 Sep 22 16:43
f4b8efcd9ce46eee90e450391fa09d262c30a446
-rw------- 1 root system  43814 Sep 22 16:43
fc0e52ceef4a5e6716611a0b88a15cca5e8ecd46
```

Expected Results:
The installation should not touch the home directory, and continue.


Reproducible: Always

User Profile Reset: No

Additional Info:


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