master install does not respect destdir variabe

Tomáš Chvátal tomas.chvatal at gmail.com
Wed Apr 18 06:05:58 PDT 2012


Hi,
while I finally got to move my tinderbox tester from 3.5 to master as
the 3.5 finally seems quite great I encoutered this problem I can't
figure out.

make DESTDIR="${D}" distro-pack-install

echo "Installing in /usr/lib64/libreoffice..." && \
ooinstall "/usr/lib64/libreoffice" && \
echo "" && \
echo "Installation finished, you can now execute:" && \
echo "/usr/lib64/libreoffice/program/soffice"
Installing in /usr/lib64/libreoffice...
Cleaning destdir...
Running LibreOffice installer
Subroutine installer::epmfile::getcwd redefined at
/var/tmp/portage/app-office/libreoffice-9999-r2/work/libreoffice-core-9999/solenv/bin/modules/installer/epmfile.pm
line 4
2
... checking environment variables ...
Use of uninitialized value $installer::globals::destdir in quotemeta
at /var/tmp/portage/app-office/libreoffice-9999-r2/work/libreoffice-core-9999/solenv/bin/modules/instal
ler/parameter.pm line 164.

########################################################
make_installer.pl, version 1.0
Product list file: openoffice.lst
Taking setup script from solver
Unpackpath: /var/tmp/portage/app-office/libreoffice-9999-r2/temp
Compiler: unxlngx6
Product: LibreOffice
BuildID: 0
Build: OOO360
No minor set
Product version
Installpath: /var/tmp/portage/app-office/libreoffice-9999-r2/image/usr/lib64/libreoffice
Package format: native
Not calling epm
No file stripping
Unzip ARCHIVE files
Languages:
        en-US

########################################################
... checking required files ...
...... searching zip ...
        Found: /usr/bin/zip
... analyzing openoffice.lst ...
... reading include paths ...
... analyzing script:
/var/tmp/portage/app-office/libreoffice-9999-r2/work/libreoffice-core-9999/solver/unxlngx6.pro/bin/setup_osl.ins
...
... analyzing directories ...
... analyzing files ...
... analyzing scpactions ...
... analyzing shortcuts ...
... analyzing unix links ...
... analyzing profile ...
... analyzing profileitems ...
... analyzing modules ...
------------------------------------
... languages en-US ...
... analyzing files ...
... analyzing files with flag ARCHIVE ...
... analyzing files with flag SUBST_FILENAME ...
... analyzing files with flag SCPZIP_REPLACE ...
... analyzing files with flag PATCH_SO_NAME ...
... analyzing files with flag HIDDEN ...
... analyzing all directories for this product ...
... analyzing links ...
... analyzing unix links ...
... creating profiles ...
... analyzing modules ...
... analyzing package list ...
... creating log file
/var/tmp/portage/app-office/libreoffice-9999-r2/temp/LibreOffice//logging/en-US/log_OOO360_en-US.log
... creating installation set in
/var/tmp/portage/app-office/libreoffice-9999-r2/temp/LibreOffice//install/LibO_3.6.0alpha0_Linux_x86-64_install_en-US
...
... removing old installation directories ...
... installing module gid_Module_Root ...
Use of uninitialized value $destdir in concatenation (.) or string at
/var/tmp/portage/app-office/libreoffice-9999-r2/work/libreoffice-core-9999/solenv/bin/modules/installer/worker.pm
line 468.
DestDir:
Rootpath: /var/tmp/portage/app-office/libreoffice-9999-r2/image/usr/lib64/libreoffice



The code for destdir in the perl file.

$destdir='';
if ( defined $ENV{DESTDIR} &&
     $ENV{DESTDIR} ne "" ) {
    $destdir = "-destdir \"$ENV{DESTDIR}\"";
}

So why the heck it is not in the env when I pass it to the make?

Same error happens if I just run the export DESTDIR=/somevar prior
running the install.

Cheers

Tom


More information about the LibreOffice mailing list