Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpm: fix W: no-manual-page-for-binary #79

Merged
merged 1 commit into from
Jun 4, 2020
Merged

rpm: fix W: no-manual-page-for-binary #79

merged 1 commit into from
Jun 4, 2020

Conversation

kenhys
Copy link
Contributor

@kenhys kenhys commented Jun 3, 2020

Install man section(1) pages and compress them.

@kenhys
Copy link
Contributor Author

kenhys commented Jun 3, 2020

I'll one more commit to fix.

for man in `find %{buildroot} -type f -name '*.1'`; do
gzip ${man}
done
for man in `find %{buildroot} -type f -name '*.3'`; do
Copy link
Member

@ashie ashie Jun 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Memo:

If it's not exist, man files in gems and other bundled softwares will cause following warnings:

td-agent.x86_64: W: manpage-not-compressed gz /opt/td-agent/share/man/man3/jemalloc.3
This manual page is not compressed with the gz compression method (does not
have the gz extension). If the compression does not happen automatically when
the package is rebuilt, make sure that you have the appropriate rpm helper
and/or config packages for your target distribution installed and try
rebuilding again; if it still does not happen automatically, you can compress
this file in the %install section of the spec file.
...

Probably td-agent users won't use such man files, so we can just remove them.
But I'm not sure about it. I think compressing all man files is not so bad workaround.

@ashie ashie merged commit 9c12b67 into master Jun 4, 2020
@ashie ashie deleted the add-doc branch June 4, 2020 02:14
@ashie ashie mentioned this pull request Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants