BuildSupport: provide submodule_have
PATCH 1/2 BuildSupport: provide submodule_have
Convenience function.
--- Osstest/BuildSupport.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
Osstest/BuildSupport.pm +6 -1
@@ -43,7 +43,7 @@ BEGIN { xendist $xendist - submodulefixup + submodulefixup submodule_have ); %EXPORT_TAGS = ( );
@@ -144,4 +144,9 @@ sub submodulefixup ($$$$) { return \@submodules; } +sub submodule_have ($$) { + my ($submodules, $ourname) = @_; + return !!grep { $_->{OurName} eq $ourname } @$submodules; +} + 1;
Signature · 1 line
1.7.10.4
PATCH 1/1 adhoc-revtuple-generator: Explicitly specify refs to fetch
Some of the git trees in $c{Repos} may have been created (eg by earlier versions of git or earlier versions of osstest) without the usual
remote.origin.fetch = +refs/heads/*:refs/remotes/origin/*
git config setting.
Pass this refspec explicitly, instead of relying on it being set as the default.
Amongst other things, this will prevent a possible error during bisection
git fetch -p origin
[stuff]
fatal: bad object 3e3d5f6146c3f684f4b7bd71feffc31e1c668754
which is currently appearing in our cron mail.
--- adhoc-revtuple-generator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
adhoc-revtuple-generator +1 -1
@@ -104,7 +104,7 @@ sub git_generator ($) { # the "set -e"-disarmament done by "if" leaks into ( ) ! cd $c{Repos}/$treename git remote set-url origin $eff_url - git fetch -p origin + git fetch -p origin '+refs/heads/*:refs/remotes/origin/*' ENDIFCOND then rm -rf $c{Repos}/$treename
Signature · 1 line
1.7.10.4
PATCH 1/1 ts-rumpuserxen-build: Cope with new layout, disabling bodges
In reply to Ian JacksonThe rumpsrc psuedo-submodule has been integrated with the nblibs submodule and made into a proper submodule.
Also, in the intervening time, rumpuserxen/Config.mk now uses ?= when setting XEN_HEADERS.
So if we detect that we have a new rumpuser-xen, we can disable:
- ad-hoc arrangements for rumpsrc
- grievous-bodge
- patching Config.mk
We consider a rumpuserxen old iff it has nblibs as a submodule and lacks rumpsrc as a submodule.
We have to have a different name for the rumpsrc submodule (rather than using rumpsrc), because in the new arrangements it needs to be fetched from the location specified in rumpuserxen's .gitmodules rather than our own configured location for the old rumpsrc. (And the local name is in the runvars etc.)
The old runvars etc. for rumpsrc need to stay around to cope with old rumpuserxen, for now, but are going to be obsolete. Leave some comments about this in relevant places.
--- ap-common | 2 ++ mfi-common | 2 ++ ts-rumpuserxen-build | 48 +++++++++++++++++++++++++++++------------------- 3 files changed, 33 insertions(+), 19 deletions(-)
ap-common +2 -0
@@ -46,6 +46,8 @@ : ${TREE_RUMPUSERXEN_RUMPSRC:=$(besteffort_repo https://github.com/rumpkernel/rumpkernel-netbsd-src)} : ${TREEVCS_RUMPUSERXEN_RUMPSRC:=git} +# rumpsrc-related runvars needed only for old rumpuser-xen +# (ie ones which need $bodges=1 in ts-rumpuserxen-build) : ${TREE_SEABIOS_UPSTREAM:=git://git.seabios.org/seabios.git} : ${PUSH_TREE_SEABIOS:=$XENBITS:/home/xen/git/osstest/seabios.git}
mfi-common +2 -0
@@ -206,6 +206,8 @@ create_build_jobs () { revision_rumpuserxen=$REVISION_RUMPUSERXEN \ tree_rumpuserxen_rumpsrc=$TREE_RUMPUSERXEN_RUMPSRC \ ${TREEVCS_RUMPUSERXEN_RUMPSRC:+treevcs_rumpuserxen_rumpsrc=}${TREEVCS_RUMPUSERXEN_RUMPSRC} + # rumpsrc-related runvars needed only for old rumpuser-xen + # (ie ones which need $bodges=1 in ts-rumpuserxen-build) ;; esac
ts-rumpuserxen-build +29 -19
67 lines not on this page · raw message
Signature · 1 line
1.7.10.4
PATCH 2/2 ts-rumpuserxen-build: Cope with new layout, disabling bodges
In reply to Ian JacksonThe rumpsrc psuedo-submodule has been integrated with the nblibs submodule and made into a proper submodule.
Also, in the intervening time, rumpuserxen/Config.mk now uses ?= when setting XEN_HEADERS.
So if we detect that we have a new rumpuser-xen, we can disable:
- ad-hoc arrangements for rumpsrc
- grievous-bodge
- patching Config.mk
We consider a rumpuserxen old iff it has nblibs as a submodule and lacks rumpsrc as a submodule.
We have to have a different name for the rumpsrc submodule (rather than using rumpsrc), because in the new arrangements it needs to be fetched from the location specified in rumpuserxen's .gitmodules rather than our own configured location for the old rumpsrc. (And the local name is in the runvars etc.)
The old runvars etc. for rumpsrc need to stay around to cope with old rumpuserxen, for now, but are going to be obsolete. Leave some comments about this in relevant places.
--- ap-common | 2 ++ mfi-common | 2 ++ ts-rumpuserxen-build | 48 +++++++++++++++++++++++++++++------------------- 3 files changed, 33 insertions(+), 19 deletions(-)
ap-common +2 -0
@@ -46,6 +46,8 @@ : ${TREE_RUMPUSERXEN_RUMPSRC:=$(besteffort_repo https://github.com/rumpkernel/rumpkernel-netbsd-src)} : ${TREEVCS_RUMPUSERXEN_RUMPSRC:=git} +# rumpsrc-related runvars needed only for old rumpuser-xen +# (ie ones which need $bodges=1 in ts-rumpuserxen-build) : ${TREE_SEABIOS_UPSTREAM:=git://git.seabios.org/seabios.git} : ${PUSH_TREE_SEABIOS:=$XENBITS:/home/xen/git/osstest/seabios.git}
mfi-common +2 -0
@@ -206,6 +206,8 @@ create_build_jobs () { revision_rumpuserxen=$REVISION_RUMPUSERXEN \ tree_rumpuserxen_rumpsrc=$TREE_RUMPUSERXEN_RUMPSRC \ ${TREEVCS_RUMPUSERXEN_RUMPSRC:+treevcs_rumpuserxen_rumpsrc=}${TREEVCS_RUMPUSERXEN_RUMPSRC} + # rumpsrc-related runvars needed only for old rumpuser-xen + # (ie ones which need $bodges=1 in ts-rumpuserxen-build) ;; esac
ts-rumpuserxen-build +29 -19
67 lines not on this page · raw message
Signature · 1 line
1.7.10.4
Re: [OSSTEST PATCH 1/2] BuildSupport: provide submodule_have [and 3 more messages]
In reply to Ian JacksonOops, I seem to have accidentally sent some duplicate emails:
[OSSTEST PATCH] adhoc-revtuple-generator: Explicitly specify refs to fetch [OSSTEST PATCH] ts-rumpuserxen-build: Cope with new layout, ... [OSSTEST PATCH 1/2] BuildSupport: provide submodule_have [OSSTEST PATCH 2/2] ts-rumpuserxen-build: Cope with new layout, ...
Please disregard the unnumbered ones.
Ian.