[opensuse-packaging] macros for /opt/foo
HI! Are there any RPM macros one should use when packaging software installed with a prefix /opt/foo? Thanks in advance. Ciao, Michael. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Wed, Mar 6, 2019 at 7:21 AM Michael Ströder <michael@stroeder.com> wrote:
HI!
Are there any RPM macros one should use when packaging software installed with a prefix /opt/foo?
Probably just override %_prefix with `/opt/foo`. That should handle it for most base macros. -- 真実はいつも一つ!/ Always, there's only one truth! -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Michael Ströder schrieb:
Are there any RPM macros one should use when packaging software installed with a prefix /opt/foo?
Just don't package stuff in /opt please. Depending on how one looks at it, it was either a misguided idea from the past or we can't handle it properly. In any case nowadays installing to /opt breaks expectations wrt rollbacks etc. So if you want your software to be managed by rpm as proper package you need to install it in /usr. If you can't follow the FHS structure there but need to bundle everything in one directory use a subdirectory of /usr/lib. Keep in mind that /usr is considered read-only after rpm is done updating it's DB after installation. So there are still some basic quality standards to follow for the software. cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.com/ SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 3/7/19 9:14 AM, Ludwig Nussel wrote:
Michael Ströder schrieb:
Are there any RPM macros one should use when packaging software installed with a prefix /opt/foo?
Just don't package stuff in /opt please.
Don't worry. This is just a proprietary package installed into separate prefix to avoid any conflict with OS packages. It's not of general use and will never be submitted to openSUSE. Ciao, Michael. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Thu, Mar 7, 2019 at 3:14 AM Ludwig Nussel <ludwig.nussel@suse.de> wrote:
Michael Ströder schrieb:
Are there any RPM macros one should use when packaging software installed with a prefix /opt/foo?
Just don't package stuff in /opt please. Depending on how one looks at it, it was either a misguided idea from the past or we can't handle it properly. In any case nowadays installing to /opt breaks expectations wrt rollbacks etc.
Out of curiosity, what expectations it breaks? Regards, Mikhail -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
11.03.2019 2:36, Mikhail Terekhov пишет:
On Thu, Mar 7, 2019 at 3:14 AM Ludwig Nussel <ludwig.nussel@suse.de> wrote:
Michael Ströder schrieb:
Are there any RPM macros one should use when packaging software installed with a prefix /opt/foo?
Just don't package stuff in /opt please. Depending on how one looks at it, it was either a misguided idea from the past or we can't handle it properly. In any case nowadays installing to /opt breaks expectations wrt rollbacks etc.
Out of curiosity, what expectations it breaks?
By default /opt is separate subvolume and so is not rolled back nor has any it snapshot schedule by default (so no comparison of previous state etc). -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 3/11/19 5:20 AM, Andrei Borzenkov wrote:
By default /opt is separate subvolume and so is not rolled back nor has any it snapshot schedule by default (so no comparison of previous state etc).
Not an issue in my particular case. If anything breaks the system is simply reinstalled from scratch. Ciao, Michael.
On Mon, Mar 11, 2019 at 12:20 AM Andrei Borzenkov <arvidjaar@gmail.com> wrote:
11.03.2019 2:36, Mikhail Terekhov пишет:
On Thu, Mar 7, 2019 at 3:14 AM Ludwig Nussel <ludwig.nussel@suse.de> wrote:
Michael Ströder schrieb:
Are there any RPM macros one should use when packaging software installed with a prefix /opt/foo?
Just don't package stuff in /opt please. Depending on how one looks at it, it was either a misguided idea from the past or we can't handle it properly. In any case nowadays installing to /opt breaks expectations wrt rollbacks etc.
Out of curiosity, what expectations it breaks?
By default /opt is separate subvolume and so is not rolled back nor has any it snapshot schedule by default (so no comparison of previous state etc).
So what? Not everyone uses subvolumes and snapshots. And the defaults are just a defaults, they exist to be customized. -- Mikhail Terekhov -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 3/12/19 1:56 AM, Mikhail Terekhov wrote:
On Mon, Mar 11, 2019 at 12:20 AM Andrei Borzenkov <arvidjaar@gmail.com> wrote:
By default /opt is separate subvolume and so is not rolled back nor has any it snapshot schedule by default (so no comparison of previous state etc).
So what? Not everyone uses subvolumes and snapshots. And the defaults are just a defaults, they exist to be customized.
I understand Andrei that he just wanted to point out what to consider. So that people installing to /opt do not complain later. Fair enough. Ciao, Michael. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (5)
-
Andrei Borzenkov
-
Ludwig Nussel
-
Michael Ströder
-
Mikhail Terekhov
-
Neal Gompa