[Howto] Patch libconfig do_fetch error - webosce/README GitHub Wiki

If you face libconfig do_fetch error when you build webos-image, follow the instructions to fix it.

1. Get a patch from patchwork

Go to https://patchwork.openembedded.org/patch/155480/, then download the patch.
Copy the file to build-webos/meta-oe. Make sure that you have already done the prerequired instructions such as build.sh, prerequisites.sh and so on in scripts.

2. Patch it

Change directory to build-webos/meta-oe.
Now you can see the file named meta-oe-sumo-rocko-pyro-morty-libconfig-fix-SRC_URI.patch. To patch it, follow the command line in the directory.

webos@localhost: ~/build-webos/meta-oe$ patch -p1 < meta-oe-sumo-rocko-pyro-morty-libconfig-fix-SRC_URI.patch

3. Git diff

You must see as below if it's all right.

webos@localhost:~/build-webos/meta-oe$ git diff
diff --git a/meta-oe/recipes-extended/libconfig/libconfig_1.5.bb b/meta-oe/recipes-extended/libconfig/libconfig_1.5.bb
index fb6e50e..a8adebd 100644
--- a/meta-oe/recipes-extended/libconfig/libconfig_1.5.bb
+++ b/meta-oe/recipes-extended/libconfig/libconfig_1.5.bb
@@ -1,14 +1,14 @@
 SUMMARY = "C/C++ Configuration File Library"
 DESCRIPTION = "Library for manipulating structured configuration files"
-HOMEPAGE = "http://www.hyperrealm.com/libconfig/"
+HOMEPAGE = "https://hyperrealm.github.io/libconfig"
 SECTION = "libs"
 
 LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=fad9b3332be894bab9bc501572864b29"
 
-SRC_URI = "http://www.hyperrealm.com/${BPN}/${BP}.tar.gz"
+SRC_URI = "git://github.com/hyperrealm/libconfig.git;protocol=git"
+SRCREV = "f9f23d7a95608936ea7d839731dbd56f1667b7ed"

4. Bitbake libconfig

Go to build-webos and bitbake it.

webos@localhost:~/build-webos$ bitbake libconfig