On Tue, Sep 20, 2016 at 7:39 AM, Malte Forkel <malte.for...@berlin.de> wrote: > Am 20.09.2016 um 07:33 schrieb kamaraju kusumanchi: >> On Sat, Sep 17, 2016 at 4:33 AM, Malte Forkel <malte.for...@berlin.de> > wrote: >>> Hi, >>> >>> according to the man page, dpkg-source -b takes an argument that is "the >>> name of the directory containing the debianized source tree". But that >>> does not work for me if the directory is not the current working > directory. >>> >>> When is execute dpkg-source in the package's source directory, i.e. >>> SRCDIR$ dpkg-source -b . >>> everything works fine. But if I execute dpkg-source from a different >>> directory with the absolute path as its argument >>> /tmp$ dpkg-source -b $SRCDIR >>> it complains that can't find the original tarball at >>> ../pkg_vers.orig.tar.*. Shouldn't it look into $SRCDIR/..? >>> >> >> Is the $SRCDIR variable set to anything? What is the output of >> >> echo $SRCDIR >> > Sorry for the confusion. I just used SRCDIR as a placeholder for the > real directory name in my example. And I should have written SRCDIR > (instead of $SRCDIR) in the second part to make that clear. >
It seems to be working fine for me // Create two empty directories and download source into one of them rajulocal@hogwarts ~/x % mkdir x1 x2 rajulocal@hogwarts ~/x % cd x1 rajulocal@hogwarts ~/x/x1 % apt-get source python-popcon Reading package lists... Done Building dependency tree Reading state information... Done NOTICE: 'python-popcon' packaging is maintained in the 'Git' version control system at: git://github.com/venthur/python-popcon.git Need to get 5,429 B of source archives. Get:1 http://httpredir.debian.org/debian/ jessie/main python-popcon 1.1 (dsc) [1,489 B] Get:2 http://httpredir.debian.org/debian/ jessie/main python-popcon 1.1 (tar) [3,940 B] Fetched 5,429 B in 0s (15.2 kB/s) dpkg-source: info: extracting python-popcon in python-popcon-1.1 dpkg-source: info: unpacking python-popcon_1.1.tar.gz rajulocal@hogwarts ~/x/x1 % ls python-popcon-1.1/ python-popcon_1.1.dsc python-popcon_1.1.tar.gz // Now to go the other directory and run dpkg-source based on the previously unpacked source. rajulocal@hogwarts ~/x/x1 % cd ../x2 rajulocal@hogwarts ~/x/x2 % dpkg-source -b dpkg-source: --build needs a directory Use --help for program usage information. rajulocal@hogwarts ~/x/x2 % dpkg-source -b ../x1/python-popcon-1.1 dpkg-source: info: using source format `3.0 (native)' dpkg-source: info: building python-popcon in python-popcon_1.1.tar.xz dpkg-source: info: building python-popcon in python-popcon_1.1.dsc rajulocal@hogwarts ~/x/x2 % ls python-popcon_1.1.dsc python-popcon_1.1.tar.xz >From the man page of dpkg-source, I see that this option was added in dpkg 1.17.14. Could you please tell which version you are using? In my case it is % dpkg --version Debian `dpkg' package management program version 1.17.27 (amd64). This is free software; see the GNU General Public License version 2 or later for copying conditions. There is NO warranty. thanks raju