← Back to team overview

launchpad-users team mailing list archive

Re: backportpackage: "the current version" "is earlier than the previous one"

 

Cool! Thanks man! I'll try that...    :-)


On 20 August 2014 18:18, Gianfranco Costamagna <
costamagnagianfranco@xxxxxxxx> wrote:

> Hi Martinx,
>
> I don't know if it is possible or not to do it one shot with
> backportpackage.
>
> Anyway to solve I would personally do:
> - dget -x package.dsc
>
> extract it (if the automatically extraction fails)
> copy the debian inside (always if the automatically extraction fails)
>
> cd directory
> dch (or vi debian/changelog)
> bump the version (date -R can give you the timestamp if you edit with vim)
> dpkg-buildpackage -S -sa
>
> - pbuilder-dist "distro" "arch" build file.dsc (not need for source only
> uploads for a ppa, but just if you want to test your build)
>
> - dput ppa:user/ppa file_source.changes
> cheers,
>
> Gianfranco
> (on mobile, sorry for typos)
>
> Sent from Yahoo Mail on Android
> <https://uk.overview.mail.yahoo.com/mobile/?.src=Android>
>
>  ------------------------------
> * From: * Martinx - ジェームズ <thiagocmartinsc@xxxxxxxxx>;
> * To: * <launchpad-users@xxxxxxxxxxxxxxxxxxx>;
> * Subject: * [Launchpad-users] backportpackage: "the current version" "is
> earlier than the previous one"
> * Sent: * Wed, Aug 20, 2014 8:35:40 PM
>
>   Hey guys!
>
> I'm building my own Ubuntu PPA but the command "backportpackage" is doing
> something wrong, I think... It doesn't "bumb +1" from original package
> version.
>
> Like this:
>
> ---
> tmartins@builder-1:~/backports/btrfs-tools$ *backportpackage -B
> pbuilder-dist -b -s utopic -d trusty -u ppa:martinx/ig -w . btrfs-tools*
>
>
> backportpackage: Downloading btrfs-tools_3.14.1.orig.tar.xz from
> archive.ubuntu.com (0.259 MiB)
> backportpackage: Downloading btrfs-tools_3.14.1-1.debian.tar.xz from
> archive.ubuntu.com (0.010 MiB)
> dpkg-source: info: extracting btrfs-tools in btrfs-tools-trusty
> dpkg-source: info: unpacking btrfs-tools_3.14.1.orig.tar.xz
> dpkg-source: info: unpacking btrfs-tools_3.14.1-1.debian.tar.xz
> dpkg-source: info: applying
> 0001-Properly-cast-to-avoid-compiler-warnings-fixes-FTBFS.patch
> dpkg-source: info: applying 0002-Fixes-FTBFS-with-no-add-needed.patch
> dpkg-source: info: applying 0003-Fixing-unaligned-memory-accesses.patch
> dpkg-source: info: applying 0004-Default-to-acting-like-fsck.patch
> dpkg-source: info: applying
> 0005-Update-references-to-btrfs-tools-instead-of-btrfs-pr.patch
> *dch warning: new version (3.14.1-1~ubuntu14.04.1~ppa1) is less than*
> *the current version number (3.14.1-1).*
>  dpkg-buildpackage -rfakeroot -d -us -uc -S -nc -sa -v3.12-1
> dpkg-buildpackage: source package btrfs-tools
> dpkg-buildpackage: source version 3.14.1-1~ubuntu14.04.1~ppa1
> dpkg-buildpackage: source distribution trusty
> dpkg-buildpackage: source changed by Thiago Martins <
> tmartins@xxxxxxxxxxxxx>
>  dpkg-source --before-build btrfs-tools-trusty
> dpkg-source: info: using options from
> btrfs-tools-trusty/debian/source/options: --compression=xz
> --compression-level=9
> dpkg-buildpackage: warning: building a source package without cleaning up
> as you asked; it might contain undesired files
>  dpkg-source -b btrfs-tools-trusty
> dpkg-source: info: using options from
> btrfs-tools-trusty/debian/source/options: --compression=xz
> --compression-level=9
> dpkg-source: warning: Version number suggests Ubuntu changes, but
> Maintainer: does not have Ubuntu address
> dpkg-source: warning: Version number suggests Ubuntu changes, but there is
> no XSBC-Original-Maintainer field
> dpkg-source: info: using source format `3.0 (quilt)'
> dpkg-source: info: building btrfs-tools using existing
> ./btrfs-tools_3.14.1.orig.tar.xz
> dpkg-source: info: building btrfs-tools in
> btrfs-tools_3.14.1-1~ubuntu14.04.1~ppa1.debian.tar.xz
> dpkg-source: info: building btrfs-tools in
> btrfs-tools_3.14.1-1~ubuntu14.04.1~ppa1.dsc
>  dpkg-genchanges -S -sa -v3.12-1
> >../btrfs-tools_3.14.1-1~ubuntu14.04.1~ppa1_source.changes
> *dpkg-genchanges: warning: the current version
> (3.14.1-1~ubuntu14.04.1~ppa1) is earlier than the previous one (3.14.1-1)*
> dpkg-genchanges: including full source code in upload
>  dpkg-source --after-build btrfs-tools-trusty
> dpkg-source: info: using options from
> btrfs-tools-trusty/debian/source/options: --compression=xz
> --compression-level=9
> dpkg-buildpackage: full upload (original source is included)
> ---
>
> I would like to backport "btrfs-tools" like this: "3.14.1-2", and not this
> "3.14.1-1~ubuntu14.04.1~ppa1" that "backportpackage" configure by default.
> How can I change this?!
>
> I tried to append "-S 2" to the "backportpackage" command but, it did not
> worked the way I was expecting...
>
> Any tips?! Workarounds?
>
> BTW, please, forgive me if this isn't the best list to ask this question,
> I can re-post it elsewhere, no problem...
>
> Thanks in advance!
>
> Best,
> Thiago
>

References