Adapting PBA to new Debian Release
Version 2.1 by christoph_lechleitner@iteg_at on 2019-03-22 11.20:00
Introduction
About every 2 years Debian introduces a new release.
At the time I'm writing this Debian Buster is on it's way from Full Freeze to GA.
The following notes shall provide a step-by-step-plan for adapting the PBA Package Builder + Archiver to a new Debian release and shall make it more efficient for the next Debian or maybe Ubuntu release.
Adapting pba to new Debian Release
WARNING: Incomplete Work in Progress
Preprations
OLDREL=stretch
NEWREL=buster
cd ~/sources/pba/trunk/pba
svn up ..
NEWREL=buster
cd ~/sources/pba/trunk/pba
svn up ..
Adaptions for phase 1, towards GA
In phase 1 we make the new distribution known in the sense of adding a template for distributions.d/.
cat src/etc/pba/distributions.d/${OLDREL} |sed -e "s/${OLDREL}/${NEWREL}/g" >src/etc/pba/distributions.d/${NEWREL}
svn add src/etc/pba/distributions.d/${NEWREL}
# evtl. drop ancient ones
svn rm src/etc/pba/distributions.d/
${EDITOR:-vi} debian/changelog debian/rules debian/pba-common.install src/etc/pba/distributions.d/${NEWREL} debian/control
# src/etc/pba/builder.conf.template src/lib/build-functions.pl
# commit
svn commit -m "Adding support for new Debian distro ${NEWREL}"
# release it
pba-release
svn add src/etc/pba/distributions.d/${NEWREL}
# evtl. drop ancient ones
svn rm src/etc/pba/distributions.d/
${EDITOR:-vi} debian/changelog debian/rules debian/pba-common.install src/etc/pba/distributions.d/${NEWREL} debian/control
# src/etc/pba/builder.conf.template src/lib/build-functions.pl
# commit
svn commit -m "Adding support for new Debian distro ${NEWREL}"
# release it
pba-release
Create PBA-Builder tarballs
See eventual separate notes (my ITEG's PBA-Tarball Notes are not public, sorry).
Adapt HelloWorld Projects
TBD.
Adapt FANCYLIBS
TBD.
Adapt MinGW
Adaptions for phase 2, once new release is settled
Once the new Debian release is settled and all VIP libraries and current projects can be built for it, we can declare it the new default value for DefaultDistribution in pba-builder.conf.
${EDITOR:-vi} debian/changelog src/etc/pba/builder.conf.template src/lib/build-functions.pl
# commit
svn commit -m "Making new Debian distro ${NEWREL} default for DefaultDistribution in pba-builder.conf"
# release it
pba-release
# commit
svn commit -m "Making new Debian distro ${NEWREL} default for DefaultDistribution in pba-builder.conf"
# release it
pba-release