[oe-commits] [meta-openembedded] 54/60: apache2/sthttpd: add alternatives for doc

git at git.openembedded.org git at git.openembedded.org
Fri May 18 14:44:14 UTC 2018


This is an automated email from the git hooks/post-receive script.

armin_kuster pushed a commit to branch master
in repository meta-openembedded.

commit 3c31d1480e3f481a67d373abcd153307a923b99f
Author: Hongxu Jia <hongxu.jia at windriver.com>
AuthorDate: Wed May 16 11:22:13 2018 +0800

    apache2/sthttpd: add alternatives for doc
    
    There is a failure to install both of sthttpd-doc and
    apache2-doc to rootfs.
    ...
    |Error: Transaction check error:
    |  file /usr/share/man/man1/htpasswd.1 conflicts
    between attempted installs of sthttpd-doc-2.27.1
    -r0.0.armv7ahf_neon and apache2-doc-2.4.27
    -r0.0.armv7ahf_neon
    ...
    
    Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 meta-webserver/recipes-httpd/apache2/apache2_2.4.29.bb | 5 ++++-
 meta-webserver/recipes-httpd/sthttpd/sthttpd_2.27.1.bb | 6 +++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/meta-webserver/recipes-httpd/apache2/apache2_2.4.29.bb b/meta-webserver/recipes-httpd/apache2/apache2_2.4.29.bb
index f0298b9..c422092 100644
--- a/meta-webserver/recipes-httpd/apache2/apache2_2.4.29.bb
+++ b/meta-webserver/recipes-httpd/apache2/apache2_2.4.29.bb
@@ -29,7 +29,10 @@ SRC_URI[sha256sum] = "777753a5a25568a2a27428b2214980564bc1c38c1abf9ccc7630b63999
 
 S = "${WORKDIR}/httpd-${PV}"
 
-inherit autotools update-rc.d pkgconfig systemd
+inherit autotools update-rc.d pkgconfig systemd update-alternatives
+
+ALTERNATIVE_${PN}-doc = "htpasswd.1"
+ALTERNATIVE_LINK_NAME[htpasswd.1] = "${mandir}/man1/htpasswd.1"
 
 SYSTEMD_SERVICE_${PN} = "apache2.service"
 SYSTEMD_AUTO_ENABLE_${PN} = "disable"
diff --git a/meta-webserver/recipes-httpd/sthttpd/sthttpd_2.27.1.bb b/meta-webserver/recipes-httpd/sthttpd/sthttpd_2.27.1.bb
index 37bd753..81815d6 100644
--- a/meta-webserver/recipes-httpd/sthttpd/sthttpd_2.27.1.bb
+++ b/meta-webserver/recipes-httpd/sthttpd/sthttpd_2.27.1.bb
@@ -19,7 +19,11 @@ UPSTREAM_CHECK_REGEX = "v(?P<pver>\d+(\.\d+)+).tar.gz"
 
 S = "${WORKDIR}/sthttpd-${PV}"
 
-inherit autotools update-rc.d systemd
+inherit autotools update-rc.d systemd update-alternatives
+
+ALTERNATIVE_PRIORITY = "100"
+ALTERNATIVE_${PN}-doc = "htpasswd.1"
+ALTERNATIVE_LINK_NAME[htpasswd.1] = "${mandir}/man1/htpasswd.1"
 
 SRV_DIR ?= "${servicedir}/www"
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list