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

Re: howto get rid of native-package-with-dash-version?



On Thu, Aug 04, 2005 at 11:32:01PM +0200, Bastian Venthur wrote:
> Carlo Segre wrote:

> > When dpkg-buildpackage runs, it will find the *.orig.tar.gz file and not
> > make it a native package.
> 
> Thank you for your hint, I think now I get the idea of what went wrong ;)
> 
> Ok but one question remains: When I unpacked the original sources, I had to
> rename the resulting dir to calm dh_make down -- when I now unpack the .zip
> in order to make an .orig.tar.gz out of it, do I have to rename the dir too
> or has the .orig.tar.bz an exact copy of the .zip?
Having pristine source is a very good property, and is usually only
sacrified if upstream includes nonfree data, or if there are multiple
upstream tarballs (sigh).

You have to rename the directory before you run dh_make (which only
happens once).  But, dpkg-source (and any other relevent friends) can
deal with most upstream tarballs, even if:

 - they unpack files to ./
 - then unpack files to an strangely named directory
 - other strange things too ..

(It unpacks them to a temporary directory, and if there is only a
single directory there, then it moves all the files and renames the
toplevel directory [or some such], and if a directory is misnamed, it
changes the name, and if it unpacks to ./, then it just renames the
temp directory).

Justin



Reply to: