:: Re: [DNG] Help me understand what D…
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Edward Bartolo
Ημερομηνία:  
Προς: Daniel Reurich
Υ/ο: dng
Αντικείμενο: Re: [DNG] Help me understand what Daniel Reurich is asking?
Hi,

I am trying to use git buildpackage with the following results:

a) with an orig.tar.gz archive in the parent directory of the sources I get:

~/simple-netaid-0.1.1$ git buildpackage
dpkg-buildpackage -rfakeroot -D -us -uc -i -I
dpkg-buildpackage: source package simple-netaid
dpkg-buildpackage: source version 0.1.1-1
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Edward <edbarx@edbarx-pc>
dpkg-source -i -I --before-build simple-netaid-0.1.1
dpkg-buildpackage: host architecture amd64
fakeroot debian/rules clean
dh clean
dh_testdir
dh_auto_clean
make[1]: Entering directory '/home/edbarx/simple-netaid-0.1.1'
make -C backend_src clean
make[2]: Entering directory '/home/edbarx/simple-netaid-0.1.1/backend_src'
rm -f obj/backend.o obj/caller.o obj/core_functions.o
obj/file_functions.o obj/essid_encoder.o obj/automated_scanner.o
bin/backend
make[2]: Leaving directory '/home/edbarx/simple-netaid-0.1.1/backend_src'
rm -f lib/*/*.*
rm -f backend simple-netaid
make[1]: Leaving directory '/home/edbarx/simple-netaid-0.1.1'
dh_clean
dpkg-source -i -I -b simple-netaid-0.1.1
dpkg-source: error: can't build with source format '3.0 (native)':
native package version may not have a revision
dpkg-buildpackage: error: dpkg-source -i -I -b simple-netaid-0.1.1
gave error exit status 255
debuild: fatal error at line 1376:
dpkg-buildpackage -rfakeroot -D -us -uc -i -I failed
gbp:error: 'debuild -i -I' failed: it exited with 29


b) without a .orig.tar.gz archive in the parent directory I get:

~/simple-netaid-0.1.1$ git buildpackage
This package has a Debian revision number but there does not seem to be
an appropriate original tar file or .orig directory in the parent directory;
(expected one of simple-netaid_0.1.1.orig.tar.gz,
simple-netaid_0.1.1.orig.tar.bz2,
simple-netaid_0.1.1.orig.tar.lzma, simple-netaid_0.1.1.orig.tar.xz or
simple-netaid-0.1.1.orig)
continue anyway? (y/n) y
dpkg-buildpackage -rfakeroot -D -us -uc -i -I
dpkg-buildpackage: source package simple-netaid
dpkg-buildpackage: source version 0.1.1-1
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Edward <edbarx@edbarx-pc>
dpkg-source -i -I --before-build simple-netaid-0.1.1
dpkg-buildpackage: host architecture amd64
fakeroot debian/rules clean
dh clean
dh_testdir
dh_auto_clean
make[1]: Entering directory '/home/edbarx/simple-netaid-0.1.1'
make -C backend_src clean
make[2]: Entering directory '/home/edbarx/simple-netaid-0.1.1/backend_src'
rm -f obj/backend.o obj/caller.o obj/core_functions.o
obj/file_functions.o obj/essid_encoder.o obj/automated_scanner.o
bin/backend
make[2]: Leaving directory '/home/edbarx/simple-netaid-0.1.1/backend_src'
rm -f lib/*/*.*
rm -f backend simple-netaid
make[1]: Leaving directory '/home/edbarx/simple-netaid-0.1.1'
dh_clean
dpkg-source -i -I -b simple-netaid-0.1.1
dpkg-source: error: can't build with source format '3.0 (native)':
native package version may not have a revision
dpkg-buildpackage: error: dpkg-source -i -I -b simple-netaid-0.1.1
gave error exit status 255
debuild: fatal error at line 1376:
dpkg-buildpackage -rfakeroot -D -us -uc -i -I failed
gbp:error: 'debuild -i -I' failed: it exited with 29


What is the problem? It seems to having to do with a revision.

Thanks for all your help.

Edward


On 10/02/2016, Daniel Reurich <daniel@???> wrote:
> On 10/02/16 19:53, Edward Bartolo wrote:
>> Hi,
>>
>> This is an email sent to me by Daniel Reurich<gitlab@???>
>>
>> Begin Email Quote:
>>
>> Hi Edward,
>>
>> I've forked and tried to build your project:
>> https://git.devuan.org/net/simple-netaid
>>
>> It's failed to build the sources for a very basic reason:
>>
>>     You need to decide if this is primarily a native Devuan/Debian
>> project or an upstream project being packaged for Devuan. Either is
>> fine, but currently the packaging appears to be a half way between.
>> IE; you have a patch series that indicates a quilt package but no
>> upstream branch, tags, tarball or pristine-tar branch of the original
>> unde[bi|vu]anised sources.

>>
>> I suggest either merge the patches into the source, and change the
>> source format to either "3.0 (native)" or "3.0 (git)" (we support
>> gitsrc in our build system unlike debian), or alternatively produce
>> either a separate upstream branch of the clean sources, or a pristine
>> tar branch (pain in the arse - I don't recommend this) or even just a
>> plain old tar ball.
>>
>> I guess the choice comes down to your primary target. If you
>> developing this primarily for Devuan then native or gitsrc formats are
>> fine. I'd vote for gitsrc but I'm biased due to having added the
>> support for that format to our build system and I don't understand why
>> you'd want tarball based srcs for packages developed and built from
>> git.
>>
>> I can do the conversion to gitsrc for this pretty quickly and
>> painlessly and get this building in Devuan.
>>
>> Let me know.
>>
>> End Email Quote:
>>
>>
>> If I am understanding well, the state of my sources is in a hybrid
>> state between Debianized and Non-Debianized.
>
> No, you have quilt style patches in what otherwise appears to be a
> native package.
>>
>> Can anyone have some patience to explain to me what commands, I assume
>> git commands, I have to run to do what Daniel (Centurion_Dan) is
>> asking? My textual source files are already up to date, so what will
>> patching actually do?
>>
> either provide a separate non-debianized tar.gz source or change to a
> native or gitsrc package.
>
>> Should I edit debian/source/format to contain:
>> 3.0 (native)
>>
>> instead of
>> 3.0 (quilt)
>>
> Yes, (thats if you want to treat it as a primarily devuan oriented
> package), and then you need to do "quilt push" to apply the patches and
> then delete the patches folder
>
>> Thanks, Edward.
>> _______________________________________________
>> Dng mailing list
>> Dng@???
>> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>>
>
>
> --
> Daniel Reurich
> Centurion Computer Technology (2005) Ltd.
> 021 797 722
>
>