Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make deb is broken in master branch #55

Open
onock opened this issue Apr 19, 2023 · 1 comment
Open

make deb is broken in master branch #55

onock opened this issue Apr 19, 2023 · 1 comment

Comments

@onock
Copy link

onock commented Apr 19, 2023

Hello,

after git clone of master branch and running make deb I get:

debuild -I -us -uc
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 tirex_0.8.0.orig.tar.gz, tirex_0.8.0.orig.tar.bz2,
tirex_0.8.0.orig.tar.lzma,  tirex_0.8.0.orig.tar.xz or git.orig)
continue anyway? (y/n) 

answering this with y the next part ends with an error:

 dpkg-buildpackage -us -uc -ui -I
dpkg-buildpackage: info: source package tirex
dpkg-buildpackage: info: source version 0.8.0-pre
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Frederik Ramm 
 dpkg-source -I --before-build .
dpkg-buildpackage: info: host architecture amd64
 debian/rules clean
dh clean --with apache2
   dh_auto_clean
        make -j4 clean
make[1]: Entering directory '/usr/local/src/tirex/git'
perl Makefile.PL PREFIX=/usr DESTDIR= FIRST_MAKEFILE=Makefile.perl
Generating a Unix-style Makefile.perl
Writing Makefile.perl for Tirex
Writing MYMETA.yml and MYMETA.json
rm -f Makefile.perl.old
make -f Makefile.perl clean
make[2]: Entering directory '/usr/local/src/tirex/git'
rm -f \
  Tirex.bso Tirex.def \
  Tirex.exp Tirex.x \
   blib/arch/auto/Tirex/extralibs.all \
  blib/arch/auto/Tirex/extralibs.ld Makefile.perl.aperl \
  *.a *.o \
  *perl.core MYMETA.json \
  MYMETA.yml blibdirs.ts \
  core core.*perl.*.? \
  core.[0-9] core.[0-9][0-9] \
  core.[0-9][0-9][0-9] core.[0-9][0-9][0-9][0-9] \
  core.[0-9][0-9][0-9][0-9][0-9] libTirex.def \
  mon.out perl \
  perl perl.exe \
  perlmain.c pm_to_blib \
  pm_to_blib.ts so_locations \
  tmon.out 
rm -rf \
  blib 
mv Makefile.perl Makefile.perl.old > /dev/null 2>&1
make[2]: Leaving directory '/usr/local/src/tirex/git'
cd backend-mapnik; make DESTDIR= clean
make[2]: Entering directory '/usr/local/src/tirex/git/backend-mapnik'
rm -f backend-mapnik *.o
make[2]: Leaving directory '/usr/local/src/tirex/git/backend-mapnik'
rm -f Makefile.perl
rm -f Makefile.perl.old
rm -f build-stamp
rm -f configure-stamp
rm -rf blib
make[1]: Leaving directory '/usr/local/src/tirex/git'
   dh_clean
 dpkg-source -I -b .
dpkg-source: error: can't build with source format '3.0 (quilt)': no upstream tarball found at ../tirex_0.8.0.orig.tar.{bz2,gz,lzma,xz}
dpkg-buildpackage: error: dpkg-source -I -b . subprocess returned exit status 25
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -I failed
make: *** [Makefile:83: deb] Error 29

After changing this file from 3.0 (quilt) to 3.0 (native) building of deb packages was successful.

But the first question mentioned above is still there and I don't know how to fix this.

OS: Ubuntu 22.04

Kind regards
onock

@janosrusiczki
Copy link

janosrusiczki commented Jul 26, 2023

If anyone encounters this, the following two diffs did the trick for me:

diff --git a/debian/changelog b/debian/changelog
index ff85189..927046e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+tirex (0.8.1) unstable; urgency=medium
+  
+  * Testing to see if I get rid of the original tar file error when doing make deb
+
+ -- Janos Rusiczki <[email protected]>  Thu, 26 Jul 2023 16:06:00 +0200
+
 tirex (0.8.0-pre) unstable; urgency=medium
   
   * preliminary build for github HEAD

This adds a new version without any dash (such as -pre).

diff --git a/debian/source/format b/debian/source/format
index 163aaf8..89ae9db 100644
--- a/debian/source/format
+++ b/debian/source/format
@@ -1 +1 @@
-3.0 (quilt)
+3.0 (native)

This changed the format to native.

I'm not sure if it's the proper way but at least debuild runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants