#838786 debpear: error 'cp: target ‘yaml-1.2.0.orig.tar.gz’ is not a directory'

#838786#5
Date:
2016-09-24 20:21:02 UTC
From:
To:
Dear Maintainer,

I tried installing php-yaml from PECL, but the script errored out with the error
message given above.  I'm lost and I don't know (yet) what to do.

Here is what happens when I run the script with set -x:
-------------------------------------- 8< --------------------------------------
$ debpear -c pecl yaml
+ PHPPKGINFO=/usr/share/pkg-php-tools/scripts/phppkginfo
+ DO_INSTALL=no
+ PEAR_CHANNEL=pear.php.net
+ BUILD_DIR=./build-area
+ VERBOSE=no
+ [ -z pecl ]
+ grep -w ^pecl.txt
+ cut -d/ -f7
+ grep .alias/
+ dpkg -L pear-channels
+ [ -z  -a pecl != pecl -a pecl != pear ]
+ PEAR_CHANNEL=pecl
+ shift
+ shift
+ [ 1 != 1 ]
+ PEAR_PKG_NAME=yaml
+ [ -z yaml ]
+ echoIfVerbose debpear ===> Preparing build area in ./build-area
+ [ no = yes ]
+ /usr/share/pkg-php-tools/scripts/phppkginfo debian_pkgname pecl yaml
+ DEB_PKG_NAME=php-yaml
+ [ -d ./build-area ]
+ [ -n  ]
+ cd ./build-area
+ [ -z  ]
+ [ -z pecl ]
+ pear download pecl/yaml
downloading yaml-1.2.0.tgz ...
Starting to download yaml-1.2.0.tgz (38,606 bytes)
..........done: 38,606 bytes
File /home/rohieb/php-yaml-2.0.0~rc8+1.3.0~b1/build-area/yaml-1.2.0.tgz downloaded
+ grep yaml
+ ls
+ DOWNLOADED_PEAR_PKG=php-yaml-1.2.0
php-yaml_1.2.0.orig.tar.gz
yaml-1.2.0.tgz
+ awk {printf length($0)}
+ echo php-yaml-1.2.0 php-yaml_1.2.0.orig.tar.gz yaml-1.2.0.tgz
+ FILENAME_LEN=56
+ awk {printf length($0)}
+ echo yaml
+ PEAR_PKG_NAME_LEN=4
+ VERSION_START=6
+ VERSION_LEN=47
+ awk {printf substr($0,6,47)}
+ echo php-yaml-1.2.0 php-yaml_1.2.0.orig.tar.gz yaml-1.2.0.tgz
+ VERSION_STRING=aml-1.2.0 php-yaml_1.2.0.orig.tar.gz yaml-1.2.0
+ DEB_SRC_FOLDER=php-yaml-aml-1.2.0 php-yaml_1.2.0.orig.tar.gz yaml-1.2.0
+ DEB_PKG_RESULT=php-yaml_aml-1.2.0 php-yaml_1.2.0.orig.tar.gz yaml-1.2.0-1_all.deb
+ DEB_BIN_PKG_NAME=php-yaml
+ cp php-yaml-1.2.0 php-yaml_1.2.0.orig.tar.gz yaml-1.2.0.tgz php-yaml_aml-1.2.0 php-yaml_1.2.0.orig.tar.gz yaml-1.2.0.orig.tar.gz
cp: target ‘yaml-1.2.0.orig.tar.gz’ is not a directory
-------------------------------------- >8 --------------------------------------
#838786#10
Date:
2016-09-24 23:31:44 UTC
From:
To:
Control: submitter 838786 !

Okay, turns out I had already downloaded a different php-yaml*.tar.gz to
that folder.  When I tried debpear in a different folder, everything
went as expected.  I guess the script should detect this case and warn
the user, or better yet, choose the tar.gz which was downloaded before
by the script itself :-)

Cheers,
 - Roland

#838786#17
Date:
2025-01-19 01:44:39 UTC
From:
To:
Dear submitter,

as the package debpear has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1093175

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Paul Tagliamonte (the ftpmaster behind the curtain)