Confusion about mandir
Hello, this is probably very dummy issue, but according to <https://en.opensuse.org/ openSUSE:Packaging_Conventions_RPM_Macros#.25_mandir> I'd expect it's enough to have in %files section %{_mandir}/*/* as %_mandir is pointing to /usr/ share/man/ and compilation creates files in /usr/share/man/man1/, but when I do so osc build ends up with error: directories not owned by a package: - /usr/share/man - /usr/share/man/man1 Regardles it failed, RPMs are correctly created. OK, but when I use just %{_mandir} in %files, I get another error: E: standard-dir-owned-by-package /usr/share/man E: standard-dir-owned-by-package /usr/share/man/man1 Which seems expectable, referring to <https://en.opensuse.org/ openSUSE:Packaging_checks#standard-dir-owned-by-package>, but I don't see any 3rd option (having or not ./configure --mandir="%{_mandir}" doesn't play any role) how to include man pages. :-) -- Vojtěch Zeisek https://trapa.cz/ Komunita openSUSE GNU/Linuxu Community of the openSUSE GNU/Linux https://www.opensuse.org/
On Fri, 12 Nov 2021 16:46, Vojtěch Zeisek wrote:
Hello, this is probably very dummy issue, but according to <https://en.opensuse.org/ openSUSE:Packaging_Conventions_RPM_Macros#.25_mandir> I'd expect it's enough to have in %files section %{_mandir}/*/* as %_mandir is pointing to /usr/ share/man/ and compilation creates files in /usr/share/man/man1/, but when I do so osc build ends up with error: directories not owned by a package: - /usr/share/man - /usr/share/man/man1 Regardles it failed, RPMs are correctly created. OK, but when I use just %{_mandir} in %files, I get another error: E: standard-dir-owned-by-package /usr/share/man E: standard-dir-owned-by-package /usr/share/man/man1 Which seems expectable, referring to <https://en.opensuse.org/ openSUSE:Packaging_checks#standard-dir-owned-by-package>, but I don't see any 3rd option (having or not ./configure --mandir="%{_mandir}" doesn't play any role) how to include man pages. :-)
Hint: rpm -qf </full/path/to/file/or/dir> Here the man-dirs are normaly owned by the "filesystem" package. Include that either as Build-Require or as Require, I'm not sure. - Yamaban.
On 12.11.21 19:36, Yamaban wrote:
Hint: rpm -qf </full/path/to/file/or/dir>
Here the man-dirs are normaly owned by the "filesystem" package.
Include that either as Build-Require or as Require, I'm not sure.
I don't think an ordinary package should need to Require the most basic things like "filesystem". I'd guess Vojtěch's problem comes from some broken OBS project setup or such. Unfortunately, without details (which package in which project does show the problem?) it's hard to tell. -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman
Dne pátek 12. listopadu 2021 19:54:49 CET, Stefan Seyfried napsal(a):
On 12.11.21 19:36, Yamaban wrote:
Hint: rpm -qf </full/path/to/file/or/dir> Here the man-dirs are normaly owned by the "filesystem" package. Include that either as Build-Require or as Require, I'm not sure.
I don't think an ordinary package should need to Require the most basic things like "filesystem". I'd guess Vojtěch's problem comes from some broken OBS project setup or such. Unfortunately, without details (which package in which project does show the problem?) it's hard to tell.
It is <https://build.opensuse.org/package/show/home:vojtaeus/exonerate> Errors I mentioned I got on when using osc on my notebook. Anyway, build log in OBS shows the same thing. I don't think I'd have any special setting in my home... -- Vojtěch Zeisek https://trapa.cz/ Komunita openSUSE GNU/Linuxu Community of the openSUSE GNU/Linux https://www.opensuse.org/
Am 12.11.21 um 16:46 schrieb Vojtěch Zeisek:
Hello, this is probably very dummy issue, but according to <https://en.opensuse.org/ openSUSE:Packaging_Conventions_RPM_Macros#.25_mandir> I'd expect it's enough to have in %files section %{_mandir}/*/* as %_mandir is pointing to/usr/ share/man/ and compilation creates files in /usr/share/man/man1/, but when I do so osc build ends up with error: directories not owned by a package: - /usr/share/man - /usr/share/man/man1
Am 12.11.21 um 21:17 schrieb Vojtěch Zeisek:
It is <https://build.opensuse.org/package/show/home:vojtaeus/exonerate> Errors I mentioned I got on when using osc on my notebook. Anyway, build log in OBS shows the same thing. I don't think I'd have any special setting in my home...
https://build.opensuse.org/package/show/home:bnavigator:branches:home:vojtae... with %files %license COPYING %{_bindir}/* %{_mandir}/*/* does not show any of the mentioned errors.
Dne pátek 12. listopadu 2021 21:58:47 CET, Ben Greiner napsal(a):
Am 12.11.21 um 16:46 schrieb Vojtěch Zeisek:
this is probably very dummy issue, but according to <https://en.opensuse.org/ openSUSE:Packaging_Conventions_RPM_Macros#.25_mandir> I'd expect it's enough to have in %files section %{_mandir}/*/* as %_mandir is pointing to/usr/ share/man/ and compilation creates files in /usr/share/man/man1/, but when I do so osc build ends up with error: directories not owned by a package: - /usr/share/man - /usr/share/man/man1
Am 12.11.21 um 21:17 schrieb Vojtěch Zeisek:
It is <https://build.opensuse.org/package/show/home:vojtaeus/exonerate> Errors I mentioned I got on when using osc on my notebook. Anyway, build log in OBS shows the same thing. I don't think I'd have any special setting in my home...>
https://build.opensuse.org/package/show/home:bnavigator:branches:home: vojtaeus/exonerate with
%files %license COPYING %{_bindir}/* %{_mandir}/*/*
does not show any of the mentioned errors.
It's interesting. Well, it should be so, shouldn't it? I then wonder why I see different behavior when packaging locally. I've set up build environment according to <https://openbuildservice.org/help/manuals/obs-user-guide/ art.obs.bg.html> so shouldn't have anything special... -- Vojtěch Zeisek https://trapa.cz/ Komunita openSUSE GNU/Linuxu Community of the openSUSE GNU/Linux https://www.opensuse.org/
participants (4)
-
Ben Greiner
-
Stefan Seyfried
-
Vojtěch Zeisek
-
Yamaban