-
Notifications
You must be signed in to change notification settings - Fork 351
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
Man pages installed in /usr/share/man #441
Comments
I habe absolitely no idea what Im doing with makefiles, if you make a pull request or even just comment here with a new makefile ill merge it |
If using a Makefile, imo typically better to avoid doing too much (no gzip, nor automagic with uname to detect paths, users and distros will pick/compress as needed), support DESTDIR and PREFIX as pointed, and have a way to override individual paths, e.g. BINDIR and MANDIR. Although given ytfzf is very simple to install I just skipped the Makefile in the gentoo ebuild for now (in our case man pages are compressed using user chosen compression and pre-compression is an issue). |
I'll have a look how the |
Tested it to make sure this works, and it does so fair enough.
I can review it, but like i said, I am a noob with Makefile, so i think jonenwks should also review it. |
Here is a version which works on my system:
I didn't test the "uninstall" rule, because I uninstall my softwares with my package manager.
When all is clarified I can send a PR. |
I like curly braces, cause it matches shell script.
This is probably a good idea especially because (to my knowledge) EDIT: |
Ok, I'll use only curly braces in the patch.
Ok, I'll keep it. What about setting https://github.com/leahneukirchen/nq/blob/master/Makefile There is the line
After searching, I don't find any good argument. My assumption is in this comment: leahneukirchen/mblaze#4 (comment) In this PR, the line containing
is deleted. I assume the dev want to keep this line such that the user knows |
Personally I don't know enough about makefile to make this decision, whatever you think is better, or if @ionenwks has an opinion. (I'm not sure semantically what $DESTDIR is supposed to represent.) |
At the moment Basically, when a package is created, the files are not directly installed in the usual directories. For
All the files are installed in a temporary directory. In kisslinux it's in
That's not exactly right, but the details bring nothing here. So
Then all files will be copied in
The job for the package manager is then basically to create an archive of the
After the package manager uncompress under
Just tell me if something is not clear. Tomorrow I will create a PR. @ionenwks I let you add comments if necessary. EDIT: I hope I have interpreted correctly your last remark. I'm not sure. |
Basically I wasn't sure what
Then we will do that |
Use of a non-existent variable (such as DESTDIR) expands to an empty nothingness. Defining the variable so that it exists, but is empty, also expands to an empty nothingness. Adding a line that does nothing because someone else on the internet said "I like to declare my nothingness explicitly" seems silly. :p The ifeq Linux stuff is wrong -- Linux convention is to install to /usr/local unless using a package manager, in which case package manager build recipes will invoke make with an overridden PREFIX. Removing this special case means that:
Since you fix an OpenBSD (and a dragonfly bsd, and a haiku, and a hundred other OSes) bug by simply removing the use of ifeq entirely, you end up with a POSIX makefile. |
That pretty much convinced me that we should remove the OS dependant thing, but I'm still worried that it'll not work for people because in |
That seems quite odd, since I'm fairly sure any system should always have /usr/local/bin before /usr/bin, which means /usr/local/bin is searched first and hence overrides /usr/bin This is a common convention for e.g. the local system administrator overriding and customizing a distro packaged binary by dropping a modified copy, or a wrapper script, in /usr/local/bin. |
Oh, fair enough, I customized my path because I was bored one day, and I thought that |
I've done a PR to fix the issues as discussed here. |
I've tried to packaged the new version of
ytfzf
with man pages. But the installationfailed because the man pages are directly installed in
/usr/share/man
.Probably you should also use
DESTDIR
andPREFIX
in theMakefile
.The text was updated successfully, but these errors were encountered: