[BRLTTY] [patch] fix the api socket directory
Samuel Thibault
samuel.thibault at ens-lyon.org
Sat May 16 16:11:41 EDT 2009
William Hubbs, le Sat 16 May 2009 14:56:23 -0500, a écrit :
> In configure.ac, api_socket_path is set so that when the directory is
> created it is /var/lib/lib/brltty.
> - api_socket_path="${localstatedir}/lib/BrlAPI"
> + api_socket_path="${localstatedir}/BrlAPI"
?!
localstatedir is /var, so adding lib is needed here. Else you'd end up
with /var/BrlAPI.
> The second part of the patch is a change to common.mk, so that the api
> socket directory is installed under INSTALL_ROOT, which makes it install
> correctly under portage.
> Index: common.mk
> ===================================================================
> --- common.mk (revision 4484)
> +++ common.mk (working copy)
> @@ -74,8 +74,9 @@
> install-apihdr-directory:
> $(INSTALL_DIRECTORY) $(INSTALL_APIHDR_DIRECTORY)
>
> +INSTALL_API_SOCKET_DIRECTORY = $(INSTALL_ROOT)$(API_SOCKET_DIRECTORY)
> install-apisoc-directory:
> - -$(INSTALL_DIRECTORY) -m 1777 $(API_SOCKET_DIRECTORY)
> + -$(INSTALL_DIRECTORY) -m 1777 $(INSTALL_API_SOCKET_DIRECTORY)
>
> clean::
> -rm -f *.$O *.auto.h *.auto.c core implib.a
That is correct.
Samuel
More information about the BRLTTY
mailing list