diff options
-rw-r--r-- | lib/checkout.sh | 11 | ||||
-rwxr-xr-x | lib/configure.sh | 11 |
2 files changed, 20 insertions, 2 deletions
diff --git a/lib/checkout.sh b/lib/checkout.sh index 9f983535..5299b706 100644 --- a/lib/checkout.sh +++ b/lib/checkout.sh @@ -367,6 +367,17 @@ checkout() notice "Updating sources for ${tool} in ${srcdir}" dryrun "(cd ${repodir} && git stash --all)" dryrun "(cd ${repodir} && git reset --hard)" + + # This is required due to the following scenario: A git + # reference dir is populated with a git clone on day X. On day + # Y a developer removes a branch and then replaces the same + # branch with a new branch of the same name. On day Z ABE is + # executed against the reference dir copy and the git pull fails + # due to error: 'refs/remotes/origin/<branch>' exists; cannot + # create 'refs/remotes/origin/<branch>'. You have to remove the + # stale branches before pulling the new ones. + dryrun "(cd ${repodir} && git remote prune origin)" + dryrun "(cd ${repodir} && git_robust pull)" # Update branch directory (which maybe the same as repo # directory) diff --git a/lib/configure.sh b/lib/configure.sh index ba909ce4..af16cf8e 100755 --- a/lib/configure.sh +++ b/lib/configure.sh @@ -185,8 +185,15 @@ configure_build() # defaults to lib64/ for aarch64. We need to override this. # There's no need to install anything into lib64/ since we don't # have biarch systems. - echo libdir=/lib > ${builddir}/configparms - echo slibdir=/usr/lib > ${builddir}/configparms + + # libdir is where static libraries and linker scripts are installed, + # like libc.so, libc_nonshared.a, and libc.a. + echo libdir=/usr/lib > ${builddir}/configparms + + # slibdir is where shared objects are installed. + echo slibdir=/lib >> ${builddir}/configparms + + # rtlddir is where the dynamic-linker is installed. echo rtlddir=/lib >> ${builddir}/configparms local opts="${opts} --build=${build} --host=${target} --target=${target} --prefix=/usr" dryrun "(mkdir -p ${sysroots}/usr/lib)" |