m4_include(stdlib.m4) m4_include(header.m4) m4_include(footer.m4) _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) Generated on m4_esyscmd(date) _TABLE_START() _TABLE_HEADER(what,packages) m4_esyscmd(`../scripts/tsv2tablerow ../data/stats') _TABLE_END() _SECTION_HEADER(h2,_DUPLICATES_STATE_REPO) _TABLE_START() _TABLE_HEADER(repository,package,version,tag,git) m4_esyscmd(`../scripts/tsv2tablerow ../data/duplicates') _TABLE_END() _SECTION_HEADER(h2,_MISSING_STATE_FILE)

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

_TABLE_START() _TABLE_HEADER(repository,status in state repo,state in AUR) 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() _TABLE_HEADER(repository,status) m4_esyscmd(`../scripts/tsv2tablerow ../data/missing_package_repo') _TABLE_END() _FOOTER()