php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chris at kreuzberger dot cc
New email:
PHP Version: OS:

 

 [2017-07-22 19:56 UTC] chris at kreuzberger dot cc
Description:
------------
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:

    <contents>
        <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="ssh2_skip.inc"/>
                <file role="test" name="ssh2_test.inc"/>
            </dir>
        </dir>
    </contents>

Test script:
---------------
pear install pecl/ssh2-1.1.1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-07-22 21:18 UTC] kalle@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: langemeijer
 [2017-07-22 21:18 UTC] kalle@php.net
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] langemeijer@php.net
-Status: Assigned +Status: Closed
 [2017-07-23 15:29 UTC] langemeijer@php.net
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 ./ssh2.la /tmp/pear/temp/pear-build-rootR6yINu/ssh2-1.1.2/modules
libtool: install: cp ./.libs/ssh2.so /tmp/pear/temp/pear-build-rootR6yINu/ssh2-1.1.2/modules/ssh2.so
libtool: install: cp ./.libs/ssh2.lai /tmp/pear/temp/pear-build-rootR6yINu/ssh2-1.1.2/modules/ssh2.la
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:
   /tmp/pear/temp/pear-build-rootR6yINu/ssh2-1.1.2/modules

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/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) 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/ssh2.so

Build process completed successfully
Installing '/usr/lib/php/20160303/ssh2.so'
install ok: channel://pecl.php.net/ssh2-1.1.2
configuration option "php_ini" is not set to php.ini location
You should add "extension=ssh2.so" to php.ini
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 00:01:27 2024 UTC