From c8f372b24fef9c52e93c85f90df59ec2a1511b4a Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 19 Sep 2024 13:07:44 +0200 Subject: added gitlab to AUR move instructions for orphaned packages --- templates/summary.m4 | 49 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 2 deletions(-) (limited to 'templates/summary.m4') diff --git a/templates/summary.m4 b/templates/summary.m4 index 0f32a97..af084cd 100644 --- a/templates/summary.m4 +++ b/templates/summary.m4 @@ -7,13 +7,23 @@ _HEADER(`Archlinux32 Consistency Checker',`anb-stats') m4_define(`_STATISTICS',`Statistics') m4_define(`_DUPLICATES_STATE_REPO',`Duplicate States in State Repo') m4_define(`_MISSING_STATE_FILE',`Missing state file') +m4_define(`_MOVING_PACKAGES_TO_AUR',`Moving packages to the AUR') + m4_define(`_DROPPING_TO_AUR_PREEXISTING_IN_AUR',`Method when AUR and gitlab repo exist') + m4_define(`_DROPPING_TO_AUR_NO_PREEXISTING',`Method when no AUR git repo existed') m4_define(`_MISSING_PACKAGE_REPO',`Missing git repo') +

Table of Contents

_SECTION_HEADER(h2,_STATISTICS) @@ -32,11 +42,46 @@ _TABLE_END() _SECTION_HEADER(h2,_MISSING_STATE_FILE)

Candidates to be transfered to the AUR and to adopt there..

-

TODO: add description here how to do that../

_TABLE_START() _TABLE_HEADER(repository,status) m4_esyscmd(`../scripts/tsv2tablerow ../data/missing_state_file') _TABLE_END() +_SECTION_HEADER(h2,_MOVING_PACKAGES_TO_AUR) +_SECTION_HEADER(h3,_DROPPING_TO_AUR_PREEXISTING_IN_AUR) +

# clone old AUR
+git clone ssh://aur@aur.archlinux.org/<package> <package>
+cd <package>
+attach the upstream gitlab repo of the dropped package
+git remote add gitlab https://gitlab.archlinux.org/archlinux/packaging/packages/mp3wrap.git
+git fetch gitlab
+# gitlab uses main as main branch, AUR still master
+git checkout main
+# check the log of the dropped packages
+# merge forcefully with old AUR, git merge normally complains about
+# unrelated commit, but we basically merge by commit date
+git checkout master
+git merge main
+git merge --allow-unrelated-histories main
+# solve conflicts, mainly PKGBUILD will be a mixture of old AUR and
+# last pakcage versions, you can also just rebase to the version of main
+# gitlab
+git commit -a -m 'merged with gitlab <package> (existed before in the AUR)'
+git push origin master
+
+ +_SECTION_HEADER(h3,_DROPPING_TO_AUR_NO_PREEXISTING) +
pkgctl repo clone --protocol=https <package>
+cd  <package>
+git branch -m main master
+git remote remove origin
+git remote add origin ssh://aur@aur.archlinux.org/<package>
+makepkg --printsrcinfo > .SRCINFO
+git add .SRCINFO
+git push -u origin master
+git commit -a -m 'moved to the AUR, added .SRCINFO'
+git push -u origin master
+
+ _SECTION_HEADER(h2,_MISSING_PACKAGE_REPO) _TABLE_START() -- cgit v1.2.3-70-g09d2