[Bug 1047608] Review Request: php-phpseclib-Crypt-RSA - Pure-PHP PKCS#1 (v2.1) compliant implementation of RSA

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

 



https://bugzilla.redhat.com/show_bug.cgi?id=1047608

Remi Collet <fedora@xxxxxxxxxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fedora@xxxxxxxxxxxxxxxxx



--- Comment #2 from Remi Collet <fedora@xxxxxxxxxxxxxxxxx> ---
The openssl.cfg have obviously not the correct role (upstream bug)

Should be role="cfg", thus will be installed in /etc/pear

Notice: this is a bit ugly to manage in source code, as it is needed to check
if run from sources tree or from install one.

Commonly used solution (ex taken from php-bartlett-PHP-CompatInfo)

In Crypt/RSA.php

    $dir = '@cfg_dir@' . DIRECTORY_SEPARATOR . 'Crypt_RSA';
    if (strpos($dir, '@') === false) {
        // PEAR installer was used to install the package
    } else {
        // manual install
        $dir = dirname(__FILE__)
    }
    $filename = $dir . DIRECTORY_SEPARATOR . 'openssl.cnf';

In package.xml

   <file baseinstalldir="Crypt" name="RSA.php" role="php" >
     <tasks:replace from="@cfg_dir@" to="cfg_dir" type="pear-config" />
   </file>
   <file name="openssl.cnf" role="cfg"/>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review





[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]