On Thu, May 10, 2012 at 8:50 PM, Dominique Leuenberger a.k.a DimStar <DimStar@opensuse.org> wrote:
/usr/local is meant for application installed 'from the local console' and should not be touched by packages... your package should install to /usr prefix
Ok.. I got the prefix as Nelson, suggested but that worked for /usr/bin Other directories like /usr/local/lib and /usr/local/man/man1, they give me an error cp nut /usr/bin cp: cannot create regular file '/usr/bin/nut': Permission denied make: [install] Error 1 (ignored) cd /usr/bin; strip nut Nut strip: 'nut': No such file strip: 'Nut': No such file make: [install] Error 1 (ignored) cp raw.data/* /usr/lib/nut cp: target '/usr/lib/nut' is not a directory make: [install] Error 1 (ignored) cp nut.1 /usr/local/man/man1 cp: cannot create regular file '/usr/local/man/man1': No such file or directory make: [install] Error 1 (ignored) chmod a+r /usr/lib/nut/* /usr/local/man/man1/nut.1 chmod: cannot access '/usr/lib/nut/*': No such file or directory chmod: cannot access '/usr/local/man/man1/nut.1': No such file or directory make: [install] Error 1 (ignored) + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-suse Since compilation is sucecessful, I am assuming I have got the dependencies right. However I am unsure on how files and directories are handled. I mean what approach is taken.
Since the build system does not have a ./configure or anything like that. So a make install should work, but I have been unable to create a folder, so how do I create them.
Ok, you might not have gotten the simplest example then. You will need to check how (if) you can pass a new prefix to the build system, in order to use /usr only, not /usr/local
Additionally, make install needs to 'redirect' all actions to %{DESTDIR} (which points to the buildroot), as you can not write in /usr tree directly...
Using simple mkdir does not help. My question is why is this so and how can I avoid such situations in future.
If your package would have a configure script, you would use %configure, which is a macro passing all kind of default values to it.
For any other kind of build system, there are either equivalents, command lines or patches.
Dominique
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org