packages: SDL_mixer/SDL_mixer-timidity_cfg.patch - updated for 1.2.11 (now ...

sls sls at pld-linux.org
Mon Jan 18 02:46:46 CET 2010


Author: sls                          Date: Mon Jan 18 01:46:46 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- updated for 1.2.11 (now it contains only "don't read config from cwd" part)

---- Files affected:
packages/SDL_mixer:
   SDL_mixer-timidity_cfg.patch (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/SDL_mixer/SDL_mixer-timidity_cfg.patch
diff -u packages/SDL_mixer/SDL_mixer-timidity_cfg.patch:1.2 packages/SDL_mixer/SDL_mixer-timidity_cfg.patch:1.3
--- packages/SDL_mixer/SDL_mixer-timidity_cfg.patch:1.2	Sat May 20 01:42:35 2006
+++ packages/SDL_mixer/SDL_mixer-timidity_cfg.patch	Mon Jan 18 02:46:40 2010
@@ -1,27 +1,14 @@
---- SDL_mixer-1.2.7/timidity/config.h.orig	2006-05-01 09:25:52.000000000 +0200
-+++ SDL_mixer-1.2.7/timidity/config.h	2006-05-20 01:17:40.326795750 +0200
-@@ -176,7 +176,7 @@
- #if defined(__WIN32__) || defined(__OS2__)
- #define DEFAULT_PATH	"\\TIMIDITY"
- #else
--#define DEFAULT_PATH	"/usr/local/lib/timidity"
-+#define DEFAULT_PATH	"/usr/share/timidity"
- #endif
- 
- /* These affect general volume */
 --- SDL_mixer-1.2.7/timidity/timidity.c.orig	2006-05-14 21:54:25.000000000 +0200
 +++ SDL_mixer-1.2.7/timidity/timidity.c	2006-05-20 01:21:52.074529000 +0200
-@@ -294,13 +294,11 @@
- 
- int Timidity_Init(int rate, int format, int channels, int samples)
+@@ -294,11 +294,9 @@
  {
--  if (read_config_file(CONFIG_FILE)<0) {
-     if (read_config_file(CONFIG_FILE_ETC)<0) {
-       if (read_config_file(CONFIG_FILE_ETC_TIMIDITY)<0) {
+   const char *env = getenv("TIMIDITY_CFG");
+   if (!env || read_config_file(env)<0) {
+-    if (read_config_file(CONFIG_FILE)<0) {
+       if (read_config_file(CONFIG_FILE_ETC)<0) {
          return(-1);
        }
-     }
--  }
+-    }
+   }
  
    if (channels < 1 || channels == 3 || channels == 5 || channels > 6) return(-1);
- 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/SDL_mixer/SDL_mixer-timidity_cfg.patch?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list