Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing man pages from .pod, custom overlay
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
etnull
Guru
Guru


Joined: 26 Mar 2019
Posts: 470
Location: Russia

PostPosted: Fri Dec 04, 2020 4:01 am    Post subject: Installing man pages from .pod, custom overlay Reply with quote

Code:
make: *** No rule to make target 'README.pod', needed by 'doc'.  Stop

I need this:
Code:
pod2man --section=1 --center="lemonbar Manual" --name "lemonbar" --release="lemonbar $(VERSION)" README.pod > lemonbar.1

to be done from withing ebuild, how can I do it?

overlay:
https://gitlab.com/odx/overlay/-/tree/master/x11-misc/lemonbar
source (Makefile):
https://gitlab.com/odx/lemonbar-xft
Back to top
View user's profile Send private message
Ionen
Veteran
Veteran


Joined: 06 Dec 2018
Posts: 1460

PostPosted: Fri Dec 04, 2020 9:32 am    Post subject: Reply with quote

I'm confused, why does it need to be done within the ebuild? I tried it and Makefile runs the command, install the man page, and there's no rule problem.

Well, Manifest was wrong again but that's beside the point.

Edit: There are some ebuilds in ::gentoo that call pod2man directly if needed though (like net-nds/shelldap), I don't think there's an inherent problem with it in a situation where the build system doesn't run it.
Back to top
View user's profile Send private message
etnull
Guru
Guru


Joined: 26 Mar 2019
Posts: 470
Location: Russia

PostPosted: Fri Dec 04, 2020 2:48 pm    Post subject: Reply with quote

I know that it works with make, but I can't make it to install manpages with portage.
Back to top
View user's profile Send private message
Ionen
Veteran
Veteran


Joined: 06 Dec 2018
Posts: 1460

PostPosted: Fri Dec 04, 2020 3:02 pm    Post subject: Reply with quote

etnull wrote:
I know that it works with make, but I can't make it to install manpages with portage.
Reason I mentioned the Manifest was because I used portage too with the overlay's ebuild, it merged fine and installed the man page.
Code:
>>> Install x11-misc/lemonbar-1.4 into /tmp/portage/x11-misc/lemonbar-1.4/image
make -j11 DESTDIR=/tmp/portage/x11-misc/lemonbar-1.4/image install
pod2man --section=1 --center="lemonbar Manual" --name "lemonbar" --release="lemonbar 1.4" README.pod > lemonbar.1
install -D -m 755 lemonbar /tmp/portage/x11-misc/lemonbar-1.4/image/usr/bin/lemonbar
install -D -m 644 lemonbar.1 /tmp/portage/x11-misc/lemonbar-1.4/image/usr/share/man/man1/lemonbar.1
>>> Completed installing x11-misc/lemonbar-1.4 into /tmp/portage/x11-misc/lemonbar-1.4/image
[...]
>>> Installing (1 of 1) x11-misc/lemonbar-1.4::gentoo
>>> /usr/bin/lemonbar
>>> /usr/share/man/man1/lemonbar.1.zst
>>> x11-misc/lemonbar-1.4 merged.

Am I misunderstanding the issue? Or is there something different on our systems/settings that allow my end to work?
Back to top
View user's profile Send private message
etnull
Guru
Guru


Joined: 26 Mar 2019
Posts: 470
Location: Russia

PostPosted: Fri Dec 04, 2020 3:26 pm    Post subject: Reply with quote

sudo ebuild lemonbar-1.4.ebuild clean install
Code:
>>> Install x11-misc/lemonbar-1.4 into /var/tmp/portage/x11-misc/lemonbar-1.4/image
make -j10 -l10 DESTDIR=/var/tmp/portage/x11-misc/lemonbar-1.4/image install
make: *** No rule to make target 'README.pod', needed by 'doc'.  Stop.
 * ERROR: x11-misc/lemonbar-1.4::odx failed (install phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=x11-misc/lemonbar-1.4::odx'`,
 * the complete build log and the output of `emerge -pqv '=x11-misc/lemonbar-1.4::odx'`.
 * The complete build log is located at '/var/tmp/portage/x11-misc/lemonbar-1.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-misc/lemonbar-1.4/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-misc/lemonbar-1.4/work/lemonbar-xft-1.4'
 * S: '/var/tmp/portage/x11-misc/lemonbar-1.4/work/lemonbar-xft-1.4/'


whereis pod2man
Code:
pod2man: /usr/bin/pod2man /usr/share/man/man1/pod2man.1.bz2
Back to top
View user's profile Send private message
Ionen
Veteran
Veteran


Joined: 06 Dec 2018
Posts: 1460

PostPosted: Fri Dec 04, 2020 3:30 pm    Post subject: Reply with quote

Can't reproduce, are you using a good up-to-date tarball? I couldn't use the exact same one as the former Manifest given the gitlab link gave me something different.
Back to top
View user's profile Send private message
etnull
Guru
Guru


Joined: 26 Mar 2019
Posts: 470
Location: Russia

PostPosted: Fri Dec 04, 2020 3:42 pm    Post subject: Reply with quote

The tarball is set in ebuild, so if we are using same ebuild we should use same tarball.
https://gitlab.com/odx/lemonbar-xft/-/tree/1.4
It's my own source of the lemonbar (with xft patch applied)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum