groff 1.19.2: The install task was failing because groff refuses to install
authorJamie Lenehan <lenehan@twibble.org>
Fri, 1 Sep 2006 02:20:24 +0000 (02:20 +0000)
committerJamie Lenehan <lenehan@twibble.org>
Fri, 1 Sep 2006 02:20:24 +0000 (02:20 +0000)
into the specified prefix (${D} in this case) unless that directory already
exists. So modify to manually create ${D} in the install task. Its not clear
what change broke this but it appears that ${D} used to be created
automatically but this is no longer occuring.

packages/groff/groff_1.19.2.bb

index 24cc5ea..c012376 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "GNU roff"
 SECTION = "base"
 LICENSE = "GPL"
 MAINTAINER = "Inge Arnesen <inge.arnesen@gmail.com>"
-PR = "r2"
+PR = "r3"
 
 SRC_URI = "http://ftp.gnu.org/gnu/groff/groff-${PV}.tar.gz \
                   file://Makefile.in.patch;patch=1 \
@@ -15,11 +15,14 @@ PARALLEL_MAKE = ""
 EXTRA_OECONF="--prefix=${D} --exec-prefix=${D} --bindir=${D}${bindir} --datadir=${D}${datadir} --mandir=${D}${datadir}/man --infodir=${D}${datadir}/info"
 inherit autotools
 
-do_configure () {
+do_configure() {
        oe_runconf
 }
 
-#do_install() {
-#      oe_runmake 'PREFIX=${D}' install
-#}
-
+#
+# The installer refuses to do anything if the prefix directory does not
+# already exist, so create it manually before the standard install runs.
+#
+do_install_prepend() {
+       install -m 0755 -d ${D}
+}