id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,device_name 68,DESTDIR support for packagers,slack,arnonym,Sorry for creating another ticket with priority "critical"_ but my intention is to avoid moving ffado in the wrong direction in this area (As in Ticket #67).\r\n\r\nAfter some years of manually compiling and installing a lot of packages from source_ and also building my own packages from many of them_ I hope to know roughly how this should work.\r\n\r\n\r\n1) Compiling_ then installing by a normal user:\r\n\r\nThis user does not know much about the software_ he often only wants to install and then use it.\r\n\r\nIt is very important here that the default directory is /usr/local_ because otherwise this user will slowly "destroy" his system by overwriting already installed files in /usr.\r\n\r\nffado here already does it right.\r\n\r\n\r\n2) Configuring_ compiling_ then installing by an advanced user:\r\n\r\nThis user knows what he wants_ he reconfigures the software_ then compiles und directly installs the software.\r\n\r\nThis is the user which often changes the installation location and also other things to match his system better.\r\n\r\nThis user also has no problem with the default location since he normally changes this and other a lot more advanced settings.\r\n\r\nffado here also does it right.\r\n\r\n\r\n3) Configuring_ compiling_ then MAKING A PACKAGE_ NOT DIRECTLY INSTALLING by a packager:\r\n\r\nThis is normally not the user who wants to install and use the software directly after the package is compiled.\r\n\r\nConfiguring and compiling is the same as in the second case_ but the installation in the configured location is NOT wanted.\r\n\r\nThis user wants an installation option called DESTDIR which simply is a prefix which is only used while installing the files. DESTDIR does not change the content of any installed files at all.\r\n\r\nIf DESTDIR is "/tmp/pkg-ffado" and PREFIX is "/usr" then the whole software will be installed under "/tmp/pkg-ffado/usr".\r\n\r\nThe packages is happy because his system remains clean_ and he can easily build this package by collecting all the files in "/tmp/pkg-ffado".\r\n\r\nIMHO ffado does NOT YET support DESTDIR!\r\n\r\nNote: Packagers in this case can't use "scons install"_ but have to manually copy all the files before packaging them.\r\n\r\nSo_ DESTDIR is the important missing piece for "packagers".\r\n,bug,closed,major,FFADO 2.0,,,fixed,,,