[pkg-php-pear] Bug#1068767: php-matthiasmullie-minify: minifycss fails to run

Sudip Mukherjee sudipm.mukherjee at gmail.com
Sat Apr 13 13:12:23 BST 2024


On Wed, Apr 10, 2024 at 07:07:34PM +0100, Sudip Mukherjee wrote:
> 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.

Sorry, the previous patch will not work properly. New patch added.

-- 
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-13 13:00:21.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.
+
+ -- Sudip Mukherjee <sudipm.mukherjee at gmail.com>  Sat, 13 Apr 2024 13:00:21 +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-13 13:00:21.000000000 +0100
@@ -0,0 +1,44 @@
+Description: Fix paths of the files minify required
+ PathConverter has been split into separate package and the paths needs
+ to be included as mentioned in the upstream issue.
+Author: Sudip Mukherjee <sudipm.mukherjee at gmail.com>
+Bug: https://github.com/matthiasmullie/minify/issues/48#issuecomment-90708149
+Bug-Debian: https://bugs.debian.org/1068767
+Forwarded: not-needed
+Last-Update: 2024-04-12
+---
+
+--- matthiasmullie-minify-1.3.68.orig/bin/minifycss
++++ matthiasmullie-minify-1.3.68/bin/minifycss
+@@ -7,9 +7,11 @@ 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';
++    require_once __DIR__ . '/../share/php/MatthiasMullie/PathConverter/ConverterInterface.php';
++    require_once __DIR__ . '/../share/php/MatthiasMullie/PathConverter/Converter.php';
+ }
+ 
+ error_reporting(E_ALL);
+--- matthiasmullie-minify-1.3.68.orig/bin/minifyjs
++++ matthiasmullie-minify-1.3.68/bin/minifyjs
+@@ -7,9 +7,11 @@ 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/JS.php';
++    require_once __DIR__ . '/../share/php/MatthiasMullie/Minify/Exception.php';
++    require_once __DIR__ . '/../share/php/MatthiasMullie/PathConverter/ConverterInterface.php';
++    require_once __DIR__ . '/../share/php/MatthiasMullie/PathConverter/Converter.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-13 12:21:58.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