apart from the fact that this patch does not apply (because the
subjectprefix should've been "PATCH harec"), isn't /usr/
the right PREFIX for linux and not /usr/local? so wouldn't
patching config.mk the right move?
Re: [PATCH hare] makefile: make $(DESTDIR)$(BINDIR) before installing to it
On 24/06/16 06:13:13, Lorenz (xha) wrote:
> apart from the fact that this patch does not apply (because the> subjectprefix should've been "PATCH harec"), isn't /usr/> the right PREFIX for linux and not /usr/local? so wouldn't> patching config.mk the right move?
Both /usr and /usr/local can be the 'right' PREFIX for linux. For BINDIR
hier(7) says for /usr/bin that it is the primary directory for
executable programs and /usr/local/bin is for binaries local to the
site. For most distros that usually means that the package manager
installs to /usr and manual-installations (e.g. make install) use
/usr/local.
However not every system will have all required directories --- though
usually only a problem with /usr/local. Hares makefile, for example,
starts of with a mkdir -p block.
Re: [PATCH hare] makefile: make $(DESTDIR)$(BINDIR) before installing to it
yes, we use PREFIX=/usr, but chimera's package build system sets it up so that packages are built in an isolated build root, and the destdir is also a dedicated directory in that build root that is initially entirely empty, and so the build system of the package is responsible for creating the directories it needs for installation
Re: [PATCH hare] makefile: make $(DESTDIR)$(BINDIR) before installing to it
also, another clarification, note that the error message in the commit is from me building harec manually outside chimera's packaging system, of course we do set PREFIX=/usr there as i mentioned
Re: [PATCH hare] makefile: make $(DESTDIR)$(BINDIR) before installing to it