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

AUR package not installing man files #150

Open
xenanthropy opened this issue Sep 13, 2021 · 1 comment
Open

AUR package not installing man files #150

xenanthropy opened this issue Sep 13, 2021 · 1 comment

Comments

@xenanthropy
Copy link

I know it was an issue previously but it seems to have come back! i've gone through the pkgbuild and can't seem to see why it's not working, it doesn't pop out any errors when it's installing (ie it says "Installing /var/tmp/pamac-build-conner/berry/pkg/berry-git//usr/local//share//man1/berryc.1 ...") but when I try to "man berry" or "man berryc" it says there's no man files. I even tried putting the latest commit into the pkgbuild so it would build the newest version but no change. I'll just build and install directly from github for now, but a look at the AUR would be nice when you have the time!

@msharov
Copy link
Contributor

msharov commented Sep 15, 2021

The AUR PKGBUILD explicitly sets mandir to /usr/local//share/ and that's where the Makefile installs it. The correct dirname is /usr/local/share/man, which is where man will look for it.

There are a few problems there, and all of them are with the PKGBUILD.

First, the PKGBUILD does not call configure. Yes, make will do that automatically, but you miss out on being able to set important flags, like --prefix=/usr.

Second, /usr/local is for hand-built executables. Packages should be built for the /usr prefix.

Third, there is no need to manually set mandir, or anything else other than the prefix. It should just be doing

configure --prefix=/usr
make DESTDIR="${pkgdir}" install

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

No branches or pull requests

2 participants