Quoting Manu Gupta <manugupt1@opensuse.org>:
Hi All,
I have been trying my hands on packaging. I have a few questions related to it.
I am trying to build the following package https://build.opensuse.org/package/live_build_log?arch=i586&package=nut&proj...
Now according to the log, we dont have a folder /usr/local/bin amongst others here.
/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
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