[pkg-php-pear] Bug#1068767: php-matthiasmullie-minify: minifycss fails to run
Sudip Mukherjee
sudipm.mukherjee at gmail.com
Wed Apr 10 19:07:34 BST 2024
On Wed, Apr 10, 2024 at 06:38:36PM +0100, Sudip Mukherjee wrote:
> Package: php-matthiasmullie-minify
> Version: 1.3.68-6
> Severity: normal
>
> Dear Maintainer,
>
> minifycss fails to run with the error:
>
> $ minifycss
> PHP Warning: require_once(/usr/bin/../src/Minify.php): Failed to open stream: No such file or directory in /usr/bin/minifycss on line 10
> PHP Fatal error: Uncaught Error: Failed opening required '/usr/bin/../src/Minify.php' (include_path='.:/usr/share/php') in /usr/bin/minifycss:10
> Stack trace:
> #0 {main}
> thrown in /usr/bin/minifycss on line 10
The attached patch should fix the problem.
--
Regards
Sudip
-------------- next part --------------
diff -Nru matthiasmullie-minify-1.3.68/debian/changelog matthiasmullie-minify-1.3.68/debian/changelog
--- matthiasmullie-minify-1.3.68/debian/changelog 2023-07-28 17:05:19.000000000 +0100
+++ matthiasmullie-minify-1.3.68/debian/changelog 2024-04-10 19:00:59.000000000 +0100
@@ -1,3 +1,10 @@
+matthiasmullie-minify (1.3.68-4.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix paths of the required files. (Closes: #1068767)
+
+ -- Sudip Mukherjee <sudipm.mukherjee at gmail.com> Wed, 10 Apr 2024 19:00:59 +0100
+
matthiasmullie-minify (1.3.68-4) unstable; urgency=medium
* Team upload.
diff -Nru matthiasmullie-minify-1.3.68/debian/patches/fix-path.patch matthiasmullie-minify-1.3.68/debian/patches/fix-path.patch
--- matthiasmullie-minify-1.3.68/debian/patches/fix-path.patch 1970-01-01 01:00:00.000000000 +0100
+++ matthiasmullie-minify-1.3.68/debian/patches/fix-path.patch 2024-04-10 19:00:43.000000000 +0100
@@ -0,0 +1,36 @@
+Description: Fix paths of the files minify required
+Author: Sudip Mukherjee <sudipm.mukherjee at gmail.com>
+Forwarded: not-needed
+Last-Update: 2024-04-10
+---
+
+--- matthiasmullie-minify-1.3.68.orig/bin/minifycss
++++ matthiasmullie-minify-1.3.68/bin/minifycss
+@@ -7,9 +7,9 @@ if (file_exists(__DIR__ . '/../../../aut
+ // if composer install
+ require_once __DIR__ . '/../../../autoload.php';
+ } else {
+- require_once __DIR__ . '/../src/Minify.php';
+- require_once __DIR__ . '/../src/CSS.php';
+- require_once __DIR__ . '/../src/Exception.php';
++ require_once __DIR__ . '/../share/php/MatthiasMullie/Minify/Minify.php';
++ require_once __DIR__ . '/../share/php/MatthiasMullie/Minify/CSS.php';
++ require_once __DIR__ . '/../share/php/MatthiasMullie/Minify/Exception.php';
+ }
+
+ error_reporting(E_ALL);
+--- matthiasmullie-minify-1.3.68.orig/bin/minifyjs
++++ matthiasmullie-minify-1.3.68/bin/minifyjs
+@@ -7,9 +7,9 @@ if (file_exists(__DIR__ . '/../../../aut
+ // if composer install
+ require_once __DIR__ . '/../../../autoload.php';
+ } else {
+- require_once __DIR__ . '/../src/Minify.php';
+- require_once __DIR__ . '/../src/JS.php';
+- require_once __DIR__ . '/../src/Exception.php';
++ require_once __DIR__ . '/../share/php/MatthiasMullie/Minify/Minify.php';
++ require_once __DIR__ . '/../share/php/MatthiasMullie/Minify/CSS.php';
++ require_once __DIR__ . '/../share/php/MatthiasMullie/Minify/Exception.php';
+ }
+
+ error_reporting(E_ALL);
diff -Nru matthiasmullie-minify-1.3.68/debian/patches/series matthiasmullie-minify-1.3.68/debian/patches/series
--- matthiasmullie-minify-1.3.68/debian/patches/series 2023-07-28 17:05:19.000000000 +0100
+++ matthiasmullie-minify-1.3.68/debian/patches/series 2024-04-10 18:44:19.000000000 +0100
@@ -1,3 +1,4 @@
update_dataDir_to_live_in_proper_dir.patch
skip_scrapbook_test_if_not_installed.patch
support_phpunit10.patch
+fix-path.patch
More information about the pkg-php-pear
mailing list