aerospike / php-client

Aerospike Client for PHP 8
https://aerospike.github.io/php-client/
9 stars 2 forks source link

Redundant sudo usage in postinst script of deb package #37

Closed n0madic closed 5 months ago

n0madic commented 6 months ago

Hello,

I've encountered an issue with the postinst script of the aerospike-php-client-1.0.2 package. During the installation process on Debian, the script attempts to execute commands using sudo. However, since the installation of .deb packages is typically performed with root privileges, the use of sudo is redundant and can lead to errors if sudo is not installed on the system.

Error encountered:

# dpkg -i aerospike-php-client-1.0.2-x86_64.deb
(Reading database ... 23503 files and directories currently installed.)
Preparing to unpack aerospike-php-client-1.0.2-x86_64.deb ...
Unpacking aerospike-php-client-1.0.2 (1.0.2) over (1.0.2) ...
Setting up aerospike-php-client-1.0.2 (1.0.2) ...
Copying Aerospike PHP extension to PHP extension directory...
/var/lib/dpkg/info/aerospike-php-client-1.0.2.postinst: line 38: sudo: command not found
Error: Failed to copy the .so file to PHP extension directory.
dpkg: error processing package aerospike-php-client-1.0.2 (--install):
 installed aerospike-php-client-1.0.2 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 aerospike-php-client-1.0.2
vmsachin commented 5 months ago

fixed in v1.1.0