]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-php-deps.patch
use libexec directory for private binaries - optional since FHS 3.0
[packages/rpm.git] / rpm-php-deps.patch
index 21b113fdb1351a2cfd1cfe84eb876dd4c82bd261..a6b90ade63046aa04b62f367672d03523ee326ec 100644 (file)
@@ -1,69 +1,12 @@
---- rpm-4.2/build/rpmfc.c.wiget        Mon Jan 20 23:16:09 2003
-+++ rpm-4.2/build/rpmfc.c      Tue Apr  1 09:56:51 2003
-@@ -450,6 +450,8 @@
-   { "perl script text",               RPMFC_PERL|RPMFC_INCLUDE },
-   { "Perl5 module source text", RPMFC_PERL|RPMFC_MODULE|RPMFC_INCLUDE },
-+  
-+  { "PHP script text",                RPMFC_PHP|RPMFC_INCLUDE },
-   { "current ar archive",     RPMFC_STATIC|RPMFC_LIBRARY|RPMFC_ARCHIVE|RPMFC_INCLUDE },
-@@ -618,6 +621,7 @@
-       fc->sb_java = freeStringBuf(fc->sb_java);
-       fc->sb_perl = freeStringBuf(fc->sb_perl);
-+      fc->sb_php = freeStringBuf(fc->sb_php);
-       fc->sb_python = freeStringBuf(fc->sb_python);
+--- rpm-4.4.8/lib/rpmfc.c.orig 2007-02-14 07:31:50.000000000 +0100
++++ rpm-4.4.8/lib/rpmfc.c      2007-04-08 16:48:00.273560592 +0200
+@@ -773,7 +773,7 @@
+     } else
+     if (fc->fcolor->vals[fc->ix] & RPMFC_PHP) {
+       xx = rpmfcHelper(fc, 'P', "php");
+-      if (is_executable)
++      /* not only executable, files run by httpd usually are not */
+           xx = rpmfcHelper(fc, 'R', "php");
      }
-@@ -705,6 +709,8 @@
-           fc->fcolor->vals[fc->ix] |= RPMFC_PERL;
-       else if (!strcmp(bn, "python"))
-           fc->fcolor->vals[fc->ix] |= RPMFC_PYTHON;
-+      else if (!strcmp(bn, "php"))
-+          fc->fcolor->vals[fc->ix] |= RPMFC_PHP;
-       break;
-     }
-@@ -723,6 +729,10 @@
-       if (is_executable)
-           xx = rpmfcHelper(fc, 'R', "python");
-     }
-+    if (fc->fcolor->vals[fc->ix] & RPMFC_PHP) {
-+              xx = rpmfcHelper(fc, 'P', "php");
-+          xx = rpmfcHelper(fc, 'R', "php");
-+      }
-     return 0;
- }
-@@ -1029,7 +1039,7 @@
- /*@unchecked@*/
- static struct rpmfcApplyTbl_s rpmfcApplyTable[] = {
-     { rpmfcELF,               RPMFC_ELF },
--    { rpmfcSCRIPT,    (RPMFC_SCRIPT|RPMFC_PERL) },
-+    { rpmfcSCRIPT,    (RPMFC_SCRIPT|RPMFC_PERL|RPMFC_PHP) },
-     { NULL, 0 }
- };
-@@ -1204,6 +1204,10 @@
- /*@-branchstate@*/
-       if (slen >= sizeof(".pm") && !strcmp(s+slen-(sizeof(".pm")-1), ".pm"))
-           ftype = "Perl5 module source text";
-+      else
-+          /* XXX all files with extension ".php" are PHP modules for now. */
-+          if (slen >= sizeof(".php") && !strcmp(s+slen-(sizeof(".php")-1), ".php"))
-+              ftype = "PHP script text";
-       else {
-           ftype = magic_file(ms, s);
-           if (ftype == NULL) {
---- rpm-4.2/build/rpmfc.h.wiget        Tue Apr  1 10:00:23 2003
-+++ rpm-4.2/build/rpmfc.h      Tue Apr  1 10:01:22 2003
-@@ -40,6 +40,7 @@
-     StringBuf sb_java;        /*!< concatenated list of java colored files. */
-     StringBuf sb_perl;        /*!< concatenated list of perl colored files. */
-     StringBuf sb_python;/*!< concatenated list of python colored files. */
-+    StringBuf sb_php;   /*!< concatenated list of php colored files. */
- };
  
+
This page took 0.036523 seconds and 4 git commands to generate.