[opensuse-packaging] How to handle "unpackaged conflicts"?
Hi guys, I'm trying to package the latest bleachbit version. It installs a file in /usr/share/metainfo. If I put "%dir /usr/share/metainfo" in my specfile, I get a massive number of "conflicts with" from rpm when I try to install it, when I don't put it in I get "unpackaged file" from osc build... What do I do? Cheers Mathias -- Mathias Homann Mathias.Homann@openSUSE.org telegram: https://telegram.me/lemmy98 irc: [lemmy] on freenode and ircnet obs: lemmy04 gpg key fingerprint: 8029 2240 F4DD 7776 E7D2 C042 6B8E 029E 13F2 C102 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Thu, Feb 20, Mathias Homann wrote:
Hi guys,
I'm trying to package the latest bleachbit version.
It installs a file in /usr/share/metainfo.
If I put "%dir /usr/share/metainfo" in my specfile, I get a massive number of "conflicts with" from rpm when I try to install it, when I don't put it in I get "unpackaged file" from osc build...
What do I do?
This directory is owned by many packages. If you get an conflict, most likely your permissions of that directory are wrong. Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & MicroOS SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany Managing Director: Felix Imendoerffer (HRB 36809, AG Nürnberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am Donnerstag, 20. Februar 2020, 11:49:46 CET schrieb Mathias Homann:
Hi guys,
I'm trying to package the latest bleachbit version.
It installs a file in /usr/share/metainfo.
If I put "%dir /usr/share/metainfo" in my specfile, I get a massive number of "conflicts with" from rpm when I try to install it, when I don't put it in I get "unpackaged file" from osc build...
What do I do?
Just BuildRequire a package, that owns this directory already.. Cheers, Pete -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am Donnerstag, 20. Februar 2020, 14:21:14 CET schrieb Hans-Peter Jansen:
If I put "%dir /usr/share/metainfo" in my specfile, I get a massive number of "conflicts with" from rpm when I try to install it, when I don't put it in I get "unpackaged file" from osc build...
What do I do?
Just BuildRequire a package, that owns this directory already..
tried that already, didn't help... Cheers MH -- Mathias Homann Mathias.Homann@openSUSE:.org irc: [Lemmy] @ freenode, ircnet obs: lemmy04 keybase: https://keybase.io/lemmy gpg key fingerprint: 8029 2240 F4DD 7776 E7D2 C042 6B8E 029E 13F2 C102 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am Donnerstag, 20. Februar 2020, 23:42:04 CET schrieb Mathias Homann:
Just BuildRequire a package, that owns this directory already..
tried that already, didn't help...
actually it did help by now - just kinda lots of trial&error to figure out the right one of the many packages that show up on "rpm -qf ..." Cheers MH -- Mathias Homann Mathias.Homann@openSUSE:.org irc: [Lemmy] @ freenode, ircnet obs: lemmy04 keybase: https://keybase.io/lemmy gpg key fingerprint: 8029 2240 F4DD 7776 E7D2 C042 6B8E 029E 13F2 C102 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Thursday 2020-02-20 23:50, Mathias Homann wrote:
Am Donnerstag, 20. Februar 2020, 23:42:04 CET schrieb Mathias Homann:
Just BuildRequire a package, that owns this directory already..
tried that already, didn't help...
actually it did help by now - just kinda lots of trial&error to figure out the right one of the many packages that show up on "rpm -qf ..."
That alone suggests that it should rather be co-owned than pulling some random, possibly huge, package into the build DAG. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Thu, Feb 20, 2020 at 7:43 PM Jan Engelhardt
On Thursday 2020-02-20 23:50, Mathias Homann wrote:
Am Donnerstag, 20. Februar 2020, 23:42:04 CET schrieb Mathias Homann:
Just BuildRequire a package, that owns this directory already..
tried that already, didn't help...
actually it did help by now - just kinda lots of trial&error to figure out the right one of the many packages that show up on "rpm -qf ..."
That alone suggests that it should rather be co-owned than pulling some random, possibly huge, package into the build DAG.
No, this whole thread suggests that massive co-ownership like this is a bad idea. It's too easy to trigger conflicts everywhere in ways that are hard to diagnose. This is a major aspect of openSUSE packaging that I *really* don't like compared to Fedora, Mageia/Mandriva, and others. -- 真実はいつも一つ!/ 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
Am 21.02.20 um 02:21 schrieb Neal Gompa:
No, this whole thread suggests that massive co-ownership like this is a bad idea. It's too easy to trigger conflicts everywhere in ways that are hard to diagnose. This is a major aspect of openSUSE packaging that I *really* don't like compared to Fedora, Mageia/Mandriva, and others.
How do they handle the issue? Does their filesystem package contain more directories? But then, /usr/share/metainfo (which was the directory in question here) does belong to "filesystem" already, at least in 15.1... so I don't really understand where the error is coming from at all... If it is because of building for older distributions, then probably the best solution is to just remove the metainfo directory and content from the package... ;-) -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am Freitag, 21. Februar 2020, 14:43:09 CET schrieb Stefan Seyfried:
Am 21.02.20 um 02:21 schrieb Neal Gompa:
No, this whole thread suggests that massive co-ownership like this is a bad idea. It's too easy to trigger conflicts everywhere in ways that are hard to diagnose. This is a major aspect of openSUSE packaging that I *really* don't like compared to Fedora, Mageia/Mandriva, and others.
How do they handle the issue? Does their filesystem package contain more directories? But then, /usr/share/metainfo (which was the directory in question here) does belong to "filesystem" already, at least in 15.1... so I don't really understand where the error is coming from at all...
If it is because of building for older distributions, then probably the best solution is to just remove the metainfo directory and content from the package... ;-)
Here's one interesting little detail that I didn't mention yet: BuildRequires: filesystem did *not* solve the problem, but a BuildRequires: kf5-filesystem did. I have no idea why. Cheers MH -- Mathias Homann Mathias.Homann@openSUSE:.org irc: [Lemmy] @ freenode, ircnet obs: lemmy04 keybase: https://keybase.io/lemmy gpg key fingerprint: 8029 2240 F4DD 7776 E7D2 C042 6B8E 029E 13F2 C102 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Fri, Feb 21, 2020 at 8:43 AM Stefan Seyfried
Am 21.02.20 um 02:21 schrieb Neal Gompa:
No, this whole thread suggests that massive co-ownership like this is a bad idea. It's too easy to trigger conflicts everywhere in ways that are hard to diagnose. This is a major aspect of openSUSE packaging that I *really* don't like compared to Fedora, Mageia/Mandriva, and others.
How do they handle the issue? Does their filesystem package contain more directories? But then, /usr/share/metainfo (which was the directory in question here) does belong to "filesystem" already, at least in 15.1... so I don't really understand where the error is coming from at all...
Well, usually there's one "golden owner" until it makes it into "filesystem", (for example, appstream had a -filesystem package). Depending on the type of directory thing, the path may move to filesystem or stay as a filesystem subpackage. The latter case is how httpd and nginx filesystem paths are maintained today. There's a fair number of <package>-filesystem packages in Fedora for this purpose, and this strategy allows for loosely coupled paths to be still owned by a single package, making it *much* easier to figure out what directories actually belong to and are for.
If it is because of building for older distributions, then probably the best solution is to just remove the metainfo directory and content from the package... ;-)
Nah, it's just because the openSUSE policy is lazy in this regard and doesn't mandate figuring out a "golden owner" for a path. -- 真実はいつも一つ!/ 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
On Fri, Feb 21, Neal Gompa wrote:
If it is because of building for older distributions, then probably the best solution is to just remove the metainfo directory and content from the package... ;-)
Nah, it's just because the openSUSE policy is lazy in this regard and doesn't mandate figuring out a "golden owner" for a path.
This approach has a big disadvantage: Assume everything installs in /usr/share/app-v1, and this directory is owned by app. Now you update to v2 with /usr/share/app-v2. If app is updated first, nobody will remove /usr/share/app-v1 anymore. For a clean update it's clearly the better approach that every package owns the directory they are using, as long as they don't have a really static name. Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & MicroOS SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany Managing Director: Felix Imendoerffer (HRB 36809, AG Nürnberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (6)
-
Hans-Peter Jansen
-
Jan Engelhardt
-
Mathias Homann
-
Neal Gompa
-
Stefan Seyfried
-
Thorsten Kukuk