From 9522c1e4f21b0292084467c927e4169770db1329 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Tue, 1 Jul 2014 17:49:31 +0200 Subject: [PATCH] Add unbootstrap, a script to remove _bootstrap from packages. This needs to be run under haiku as it uses the package tool. It can be used to remove the _bootstrap tagging from bootstrap packages and then upload them to the repos as normal packages. The goal is to make non-bootstrap builds work even for archs where the bootstrap isn't working yet. Packages built that way should be replaced as soon as better ones are obtained by the proper bootstrapping process. --- 3rdparty/pulkomandy/unbootstrap.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 3rdparty/pulkomandy/unbootstrap.sh diff --git a/3rdparty/pulkomandy/unbootstrap.sh b/3rdparty/pulkomandy/unbootstrap.sh new file mode 100644 index 0000000000..ff8517223e --- /dev/null +++ b/3rdparty/pulkomandy/unbootstrap.sh @@ -0,0 +1,25 @@ +#!/bin/sh +# Convert _bootstrap packages to non-bootstrap version. +# THIS IS A HACK. The _bootstrap packages are cross-compiled on a pseudo-haiku +# environment running on a different host system. Expect binary +# incompatibilities when trying to use them. However, the development files +# should still be valid, allowing us to build a non-bootstrap Haiku against +# these package before we can get the bootstrap image to run reliably enough +# to actually bootstrap the packages. + +mkdir -p work +cd work + +for package in ../packages/*.hpkg +do + echo --- Processing $package --- + echo Cleaning work directory... + rm -r * + echo Extracting package... + package extract $package + echo Converting .PackageInfo... + sed -i .PackageInfo -e s/_bootstrap//g + name=`basename $package|sed -e s/_bootstrap//g` + echo Regenerating package... + package create ../$name +done