|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74973 Missing files in ssh2 package
Submitted: 2017-07-22 19:56 UTC Modified: 2017-07-23 15:29 UTC
From: chris at kreuzberger dot cc Assigned: langemeijer (profile)
Status: Closed Package: ssh2 (PECL)
PHP Version: 7.0.21 OS: Ubuntu
Private report: No CVE-ID: None
 [2017-07-22 19:56 UTC] chris at kreuzberger dot cc
When trying to install pecl/ssh2 via "pear install pecl/ssh2-1.1.1", I get the following error:
ERROR: file /tmp/pear/temp/tmpgocDjp/ssh2-1.1.1/tests/ssh2_auth.phpt does not exist

According to the packages.xml, there should be the following files in the tgz which are missing:

        <dir name="/">
            <dir name="tests">
                <file role="test" name="ssh2_auth.phpt"/>
                <file role="test" name="ssh2_connect.phpt"/>
                <file role="test" name="ssh2_sftp_001.phpt"/>
                <file role="test" name="ssh2_sftp_002.phpt"/>
                <file role="test" name=""/>
                <file role="test" name=""/>

Test script:
pear install pecl/ssh2-1.1.1


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-07-22 21:18 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: langemeijer
 [2017-07-22 21:18 UTC]
This is because the archive does not include the tests directory, tho specified in package.xml, assigning to maintainer
 [2017-07-23 15:29 UTC]
-Status: Assigned +Status: Closed
 [2017-07-23 15:29 UTC]
This is fixed with release 1.1.2.

root@build-jessie:~# pear install pecl/ssh2-1.1.1
downloading ssh2-1.1.1.tgz ...
Starting to download ssh2-1.1.1.tgz (27,551 bytes)
.........done: 27,551 bytes
ERROR: file /tmp/pear/temp/tmpc373X0/ssh2-1.1.1/tests/ssh2_auth.phpt does not exist

root@build-jessie:~# pear install pecl/ssh2-1.1.2
downloading ssh2-1.1.2.tgz ...
Starting to download ssh2-1.1.2.tgz (32,057 bytes)
.........done: 32,057 bytes
6 source files, building
running: phpize
Configuring for:
PHP Api Version:         20160303
Zend Module Api No:      20160303
Zend Extension Api No:   320160303
libssh2 prefix? [autodetect] : 
building in /tmp/pear/temp/pear-build-rootR6yINu/ssh2-1.1.2
running: /tmp/pear/temp/ssh2/configure --with-php-config=/usr/bin/php-config --with-ssh2
checking for grep that handles long lines and -e... /bin/grep

[**** cut some output here ****]

/bin/bash /tmp/pear/temp/pear-build-rootR6yINu/ssh2-1.1.2/libtool --mode=install cp ./ /tmp/pear/temp/pear-build-rootR6yINu/ssh2-1.1.2/modules
libtool: install: cp ./.libs/ /tmp/pear/temp/pear-build-rootR6yINu/ssh2-1.1.2/modules/
libtool: install: cp ./.libs/ssh2.lai /tmp/pear/temp/pear-build-rootR6yINu/ssh2-1.1.2/modules/
libtool: finish: PATH="/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /tmp/pear/temp/pear-build-rootR6yINu/ssh2-1.1.2/modules
Libraries have been installed in:

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and manual pages.

Build complete.
Don't forget to run 'make test'.

running: make INSTALL_ROOT="/tmp/pear/temp/pear-build-rootR6yINu/install-ssh2-1.1.2" install
Installing shared extensions:     /tmp/pear/temp/pear-build-rootR6yINu/install-ssh2-1.1.2/usr/lib/php/20160303/
running: find "/tmp/pear/temp/pear-build-rootR6yINu/install-ssh2-1.1.2" | xargs ls -dils
377669   4 drwxr-xr-x 3 root root   4096 jul 23 17:27 /tmp/pear/temp/pear-build-rootR6yINu/install-ssh2-1.1.2
380559   4 drwxr-xr-x 3 root root   4096 jul 23 17:27 /tmp/pear/temp/pear-build-rootR6yINu/install-ssh2-1.1.2/usr
380561   4 drwxr-xr-x 3 root root   4096 jul 23 17:27 /tmp/pear/temp/pear-build-rootR6yINu/install-ssh2-1.1.2/usr/lib
380562   4 drwxr-xr-x 3 root root   4096 jul 23 17:27 /tmp/pear/temp/pear-build-rootR6yINu/install-ssh2-1.1.2/usr/lib/php
380564   4 drwxr-xr-x 2 root root   4096 jul 23 17:27 /tmp/pear/temp/pear-build-rootR6yINu/install-ssh2-1.1.2/usr/lib/php/20160303
380556 264 -rwxr-xr-x 1 root root 264144 jul 23 17:27 /tmp/pear/temp/pear-build-rootR6yINu/install-ssh2-1.1.2/usr/lib/php/20160303/

Build process completed successfully
Installing '/usr/lib/php/20160303/'
install ok: channel://
configuration option "php_ini" is not set to php.ini location
You should add "" to php.ini
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Nov 30 11:01:27 2023 UTC