tizen: Dereference sqlite3 symlinks before building
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Sat, 23 Jul 2016 04:52:30 +0000 (06:52 +0200)
committerJon A. Cruz <jon@joncruz.org>
Wed, 27 Jul 2016 20:36:43 +0000 (20:36 +0000)
commit016b0075b3c0607351954914d6ee038d0d702c92
tree7e28332243c8f1448fa0a92bb23baa6f563116be
parent1b8eae55086bcc6c2192a939c309522b5524e4aa
tizen: Dereference sqlite3 symlinks before building

If existing sqlite3 files (not dead links) are present
 it will use them and prevent downloading at buildtime
 and break if running in a "disconnected environment"
 like Tizen GBS (chroot).

Typically, if files are not part of packaging,
  this is the error message you'll face:

   *** Checking for installation of SQLite 3.8.11.1 ***
   Download /home/abuild/rpmbuild/BUILD/iotivity-1.1.1/extlibs/sqlite3/sqlite-amalgamation-3081101.zip
   from https://www.sqlite.org/2015/sqlite-amalgamation-3081101.zip
   Downloading ...
   scons: *** <urlopen error [Errno -3] Temporary failure in name resolution> [https://www.sqlite.org/2015/sqlite-amalgamation-3081101.zip] Stop.

Here are some examples of failed jenkins sessions:

- https://gerrit.iotivity.org/gerrit/#/c/9609/1/
- https://build.iotivity.org/ci/job/iotivity-verify-tizen/364/consoleText

Bug: https://jira.iotivity.org/browse/IOT-820
Change-Id: I59ac88807a2d9222e94b841d99a9163765e8596c
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9641
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Reviewed-by: Ashwini Kumar <k.ashwini@samsung.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit 76be2fe7e4d52a21a721cfa312cd3274741bf5aa)
Reviewed-on: https://gerrit.iotivity.org/gerrit/9651
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
gbsbuild.sh