From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by hurricane.the-brannons.com (Postfix) with ESMTPS id D278D7B4F2 for ; Fri, 27 Dec 2019 07:58:04 -0800 (PST) Received: by mail-wr1-x441.google.com with SMTP id c9so26426187wrw.8 for ; Fri, 27 Dec 2019 07:58:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3Pra0uZScC+9RGxkr/tlwdxzwFgWD5yeyyING8sHwwI=; b=nydTx8KvLe9FBPUKsPedz1Yq+Sn/xHMqal9xeuYKvHR9z5CkXIuMfFZNUtRgnFoI/r w8iwxWdzuYK0q6RqlN0Ecr3B2CiEe6yCPRfmeMT2ydQDkiybzUCJ/QaH1VkDs5S3wwmK cPXVIgTjqcXubwKlj+DJLv4ZjfjNEwlmZWxMj9ScKluw6/OwLnNlaVhmzMwMzn0RiAds MtUAYl5aj5M3ZZmVdYRkVlGLKk+ya+bGVzzeliPLQD2YjOlgGeydkiTCnaojrjTFWcBQ iNSDzR+brPoIDFzYItkpLRyQF43pdpsRYc+7z4ch2hPTMXgfVayTZ3TAdgTUNhCyvcVq d6YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3Pra0uZScC+9RGxkr/tlwdxzwFgWD5yeyyING8sHwwI=; b=PSG43Emsx9y7XOjplkHEleoQOEygW4jwAuuj0ew6WpMqbGDgGiXc+NojTfz7PRxgyH +RbjtmDszfxbjfqXviafNAcVP0zrw6Cid2/ZxTd4QwVJysEjQ41yrkD4el+zyRc5ac6g lDwQvbbEJDmy44g9MRdyL8hcn5XR9uy6bXrXlk//nayNdF4ISEufPhucMtirfo1i4dMR A36P2UVW3wMZ+6YODNBF/DvRwBP783c7hEBVGCO6fXCyfCttGiwUCGP1lvQaP1gLFHsB OmH6wI8kRAeCBEaREUi4/Fd+tYmqswIGl5D4VDaYUtOlrkwxwNxl/Tw1VFE4CmgqY3Gi /hTQ== X-Gm-Message-State: APjAAAVEWghAngiVrsWM5TDyHxjLHeI6nnmiejd2GvEEmsSOU1ecdHKq Rv3lHmL4gaZ+BerSdfTa1pBQKslh X-Google-Smtp-Source: APXvYqwZpsjSBIcBEPQOlcgGBVru5AKclJz1ClnDw9JOtVz5TOqFfwOdOcIb7bgjmK6E9LqDiUlKzA== X-Received: by 2002:adf:8541:: with SMTP id 59mr50886742wrh.307.1577462283008; Fri, 27 Dec 2019 07:58:03 -0800 (PST) Received: from fbsd.home ([95.239.23.219]) by smtp.gmail.com with ESMTPSA id n3sm11970898wmc.27.2019.12.27.07.58.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Dec 2019 07:58:02 -0800 (PST) Date: Fri, 27 Dec 2019 16:58:00 +0100 From: "alf.siciliano@gmail.com" To: edbrowse-dev@edbrowse.org Cc: Geoff McLane , Adam Thompson , Dominique Martinet Subject: Re: [edbrowse-dev] documentation respecting install prefix in cmake Message-Id: <20191227165800.7bdad9dd717c43b644a81f79@gmail.com> In-Reply-To: <20191226205100.GA26919@nautica> References: <20191225133640.GA74927@toaster> <20191225134715.GA11932@nautica> <20191225140551.GB93806@toaster> <20191225162952.GA2846@nautica> <9247904b-0fb1-95c4-18cb-86f279dbfc98@geoffair.info> <20191226184323.GA4808@toaster> <460ad829-de45-7788-f776-bcd37c65a0de@geoffair.info> <20191226205100.GA26919@nautica> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) X-BeenThere: edbrowse-dev@edbrowse.org List-Id: Edbrowse Development List Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi All and Enjoy the Holidays! On Thu, 26 Dec 2019 21:51:00 +0100 Dominique Martinet wrote: > > why do we have 2 slightly different UnixManFile... debian vs freebsd... > > are the man app implementations /SO/ different... in a quick review, seems > > they could be one... > > That is a good question, it looks like Alfonso Siciliano preferred > adding a freebsd man page to using the debian one from the git log? > I have added him in exlpicit CCs to this mail. I added the man-edbrowse-freebsd.1 some year ago because I was bored to patch the manual every time the FreeBSD port/package was updated, now man-edbrowse-freebsd.1 is also used by OpenBSD: https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/www/edbrowse/patches/patch-CMakeLists_txt?rev=1.2 I honestly forgot the problem. Anyway, actually the manuals are different info so I think we could try to join them in just one "edbrowse.1", obviously I have no problem about copyright and license. > > And they could use like @EDB_VERSION@, @VER_DATE@, etc... even say a > > @DOC_INSTALL@, for the usersguide.html pointer... etc... etc... > > > > It seems the cmake default CMAKE_INSTALL_PREFIX of "/usr/local" is > > generally agreed as the /ROOT/... > > > > So others components are "/ROOT/bin, lib, include" > > > > And then the man being "/ROOT/share/man/man1"... > > > > But it looks like some distros prefer "/ROOT/man/man1", which > > would also be ok in my Ubuntu debian based linux, in that there is > > a link "man -> share/man" ... must look in my Raspian RPI... > > > > Then the docs to "/ROOT/share/doc/"... > > Ah, I had missed that FreeBSD wanted the man page in /usr/local/man > (without /share/) in our CMakeLists. > Looking at the FreeBSD release notes[1] that are a bit difficult to > read, the man pages should go either to /usr/share/man if the prefix is > /usr but if it is /usr/local then it should go directly to > /usr/local/man for some reason... Odd... But that means my fix is > incorrect. > I just checked and the MANDIR variable from GNUInstallDirs has the > correct exception for all BSDs, so I will update my patch to use that > instead. > > [1] https://www.freebsd.org/cgi/man.cgi?query=hier&apropos=0&sektion=0&manpath=FreeBSD+6.1-RELEASE&format=html > I read your patch: https://github.com/martinetd/edbrowse/commit/d661da5d7e9b448778a32a3bf3c5c4486c9010e7 particularly I noted: set (UnixManDir "${CMAKE_INSTALL_PREFIX}/share/man/man1") the manual should be in /usr/local/man/man1 not in */share/* I tried GNUInstallDirs, it is OK for FreeBSD: include(GNUInstallDirs) if (UNIX) FILE (GLOB UnixManFile "doc/man-edbrowse-debian.1") set (UnixManDir "${CMAKE_INSTALL_FULL_MANDIR}/man1") set (UnixDocDir "${CMAKE_INSTALL_FULL_DOCDIR}") if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") FILE (GLOB UnixManFile "doc/man-edbrowse-freebsd.1") endif () endif () UnixManDir = /usr/local/man/man1 UnixDocDir = /usr/local/share/doc/edbrowse Anyway, if FreeBSD is a problem in that "cmake context" you could ignore it, I' ll handle it via the FreeBSD port/package Makefile. Alfonso --- alf.siciliano@gmail.com