Bug 19589

Summary: DESTDIR environment variable ignored on "make install"
Product: Koha Reporter: int <int>
Component: Installation and upgrade (command-line installer)Assignee: Bugs List <koha-bugs>
Status: RESOLVED FIXED QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low    
Version: 17.05   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description int 2017-11-07 23:45:54 UTC
(In koha-17.05.03/) when calling 
> DESTDIR=fancydir make install
the DESTDIR from the command-line is ignored and 
the empty one from Makefile is used. 
In Makefile the following line can be found
> DESTDIR = 
If this line is deleted, the DESTDIR from the command-line is used as expected.
(But I don't know if this is a good idea to do, beside that Makefile is generated.)

This behaviour is bad for package-building of koha.


Steps to reproduce:

Just follow the normal install procedure (as normal user):
> perl Makefile.PL --install_base /usr/share/koha --install_mode standard ...
> make
> DESTDIR=fancydir make install
The following error should occur:
> ERROR: Can't create '/etc/koha'
> mkdir /etc/koha: Permission denied at ...
Expected is that everything is installed below $DESTDIR/, 
e.g. $DESTDIR/etc/koha, and not root.
Comment 1 Katrin Fischer 2023-09-30 21:27:38 UTC
The line mentioned does on longer exist in Makefile. I assume this has been fixed.