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

help to fix lintian problems, native-package-with-dash-version etc



Hi, 

I got native-package-with-dash-version problems when using lintian to 
check my built package. 

Preliminary searching all indicating that there's some problem with my 
file/directory naming, e.g.,

http://lists.debian.org/debian-mentors/2005/08/msg00034.html
http://us.generation-nt.com/lintian-warning-native-package-dash-version-
help-195565821.html
http://www.mail-archive.com/debian-mentors@lists.debian.org/msg47311.html

The following is why and how I'm naming my files and directory:

On Wed, 26 Jun 2013 19:48:42 -0700, Russ Allbery wrote:

> T o n g <mlist4suntong@yahoo.com> writes:
> 
>> One more question related to the package I'm building.  The upstream
>> call it pam-ssh-agent-auth, and the tarball is called
>> pam_ssh_agent_auth-0.9.5.tar.bz2, in which contains a directory named
>> pam_ssh_agent_auth-0.9.5. But the RFP wants to call it libpam-ssh-agent
>> (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=595817).
> 
> Not libpam-ssh-agent-auth?  Although I suppose that doesn't matter that
> much.
> 
>> Let's suppose it'd be called libpam-ssh-agent in Debian, what exactly
>> should I do to the tarball name and expanded directory name?
> 
> mv pam_ssh_agent_auth-0.9.5.tar.bz2 libpam-ssh-agent_0.9.5.orig.tar.bz2
> 
> Don't do anything at all with the expanded directory name.  You don't
> need to change the tarball in the slightest.
> 
>> Is there anywhere else that I should also change? Any of these renaming
>> should be packed in the Debian source package as patches?
> 
> Nope.  The Debian package will be named based on debian/control and
> debian/changelog. . . 

So to recap, 

- upstream name the tarball pam_ssh_agent_auth-0.9.5.tar.bz2 
- I named it libpam-ssh-agent_0.9.5.orig.tar.bz2 as per above

Here is how my files and directory look after I've done building with 
"debuild -S -sa":

  $ ls -lgG 
  total 528
  -rw-r--r-- 1   1632 2013-07-05 11:27 libpam-ssh-agent-auth_0.9.5-1.1.dsc
  -rw-r--r-- 1 280338 2013-07-05 11:27 libpam-ssh-agent-
auth_0.9.5-1.1.tar.gz
  -rw-r--r-- 1   2791 2013-07-05 11:27 libpam-ssh-agent-
auth_0.9.5-1.1_source.build
  -rw-r--r-- 1   1971 2013-07-05 11:27 libpam-ssh-agent-
auth_0.9.5-1.1_source.changes
  -rw-rw---- 1 238267 2013-02-21 21:28 libpam-ssh-agent-
auth_0.9.5.orig.tar.bz2
  drwxrwx--x 5   4096 2013-07-05 11:27 pam_ssh_agent_auth-0.9.5

Here here is lintian problems:

  $ lintian -EvIL +pedantic *.dsc
  N: Using profile debian/main.
  N: Setting up lab in /tmp/temp-lintian-lab-SN5O3Dn2Kq ...
  N: Unpacking packages in group libpam-ssh-agent-auth/0.9.5-1.1
  N: ----
  N: Processing source package libpam-ssh-agent-auth (version 0.9.5-1.1, 
arch source) ...
  W: libpam-ssh-agent-auth source: native-package-with-dash-version
  I: libpam-ssh-agent-auth source: missing-debian-source-format
  W: libpam-ssh-agent-auth source: changelog-should-mention-nmu
  W: libpam-ssh-agent-auth source: debian-rules-missing-recommended-
target build-arch
  W: libpam-ssh-agent-auth source: debian-rules-missing-recommended-
target build-indep
  W: libpam-ssh-agent-auth source: ancient-standards-version 3.8.0 
(current is 3.9.4)

PS. I also tried

 mv pam_ssh_agent_auth-0.9.5 libpam-ssh-agent-auth-0.9.5

my lintian gave me the same problems. 

How exactly should I name my files and directory in this case? 
Also, how should I fix the other problems reported by lintian?

Thanks


Reply to: