dunetna

[debian] [free software] [free knowledge] [sharing]


Check and upload a NMU of someone else

Description: Some times, there are non-DDs that upload NMUs to the BTS becaues they can't upload it. Here you have a workflow to review and upload these NMUs.

Language(s): English

Check if you can reproduce the bug(s):

PKG_NAME="package_name"; PKG_VERSION="version_number"; PKG_REVISION="revision_number"
apt-get source $PKG_NAME
sudo pbuilder --build ${PKG_NAME}_${PKG_VERSION}-${PKG_REVISION}.dsc

Apply NMU:

NMUDIFF_URL="nmudiff_url"; PKG_NMU_REVISION="nmu_revision_number"
wget -O ${PKG_NAME}_${PKG_VERSION}-${PKG_NMU_REVISION}.nmu.diff "$NMUDIFF_URL"
patch -p0 <  ${PKG_NAME}_${PKG_VERSION}-${PKG_NMU_REVISION}.nmu.diff
dpkg-source -b ${PKG_NAME}-${PKG_VERSION}
sudo pbuilder --build ${PKG_NAME}_${PKG_VERSION}-${PKG_NMU_REVISION}.dsc

Check if new package works as expected and run tools like debdiff and lintian.

PBUILDERRESULT="pbuilder_results_dirname"
debdiff ${PKG_NAME}_${PKG_VERSION}-${PKG_REVISION}.dsc $PBUILDERRESULT/${PKG_NAME}_${PKG_VERSION}-${PKG_NMU_REVISION}.dsc
lintian -F $PBUILDERRESULT/${PKG_NAME}_${PKG_VERSION}-${PKG_NMU_REVISION}*.changes

Sign and upload the package and send an email to BTS with nmudiff

debsign $PBUILDERRESULT/${PKG_NAME}_${PKG_VERSION}-${PKG_NMU_REVISION}*.changes
dput -e 5 $PBUILDERRESULT/${PKG_NAME}_${PKG_VERSION}-${PKG_NMU_REVISION}*.changes
cd ${PKG_NAME}-${PKG_VERSION}
nmudiff --delay=5

As the nmudiff is already uploaded, you can change the mail. A template could be:

Dear maintainer,

I've uploaded the previous NMU for $PKG_NAME (versioned as ${PKG_VERSION}-${PKG_NMU_REVISION})
to DELAYED/5. Please feel free to tell me if I should delay it longer.

Regards.