[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

lintian warning native-package-with-dash-version

I am new to packaging and I am trying to package gnuplotfortran whose upstream is located at http://sourceforge.net/projects/gnuplotfortran . The upstream source is called gnuplotfortran-0.2.2-1.tar.bz2 . I downloaded this to /tmp .

Then I did

tar xjvf /tmp/gnuplotfortran-0.2.2-1.tar.bz2 -C .
tar czvf gnuplotfortran-0.2.2-1.tar.gz gnuplotfortran-0.2.2-1/
cd gnuplotfortran-0.2.2-1/
dh_make --copyright lgpl -e kamaraju@gmail.com -f \
../gnuplotfortran-0.2.2-1.tar.gz -l

Then I proceeded on doing dpkg-buildpackage etc., At the end I obtained gnuplotfortran_0.2.2-1-1.dsc . But if I do

$lintian -i gnuplotfortran_0.2.2-1-1.dsc
W: gnuplotfortran source: native-package-with-dash-version
N:   Native packaging should only be used if a piece of software was
N:   written specifically to be turned into a Debian package. In this case,
N:   the version number should not contain a debian revision part.
N:   Native source packages are sometimes created by accident. In most
N:   cases the reason is the location of the original source tarball.
N:   dpkg-source searches for this in
N:   ../package_upstream-version.orig.tar.gz.

Q1) Where am I doing wrong? How can I get rid of this error?

Q2) should I create a symbolic link gnuplotfortran-0.2.2-1.orig.tar.gz which points to gnuplotfortran-0.2.2-1.tar.gz before proceeding with dpkg-buildpackage? I see that it is automatically created after dpkg-buildpackage step.


Kamaraju S Kusumanchi
Graduate Student, MAE
Cornell University

Reply to: