Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Podeiko:multimedia:apps
mpg123
mpg123-remove_reldir_fallback.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mpg123-remove_reldir_fallback.patch of Package mpg123
--- src/module.c.orig 2013-02-23 21:58:07.000000000 +0100 +++ src/module.c 2013-03-06 16:28:47.805567467 +0100 @@ -23,15 +23,6 @@ #define MODULE_SYMBOL_PREFIX "mpg123_" #define MODULE_SYMBOL_SUFFIX "_module_info" -/* It's nasty to hardcode that here... - also it does need hacking around libtool's hardcoded .la paths: - When the .la file is in the same dir as .so file, you need libdir='.' in there. */ -static const char* modulesearch[] = -{ - "../lib/mpg123" - ,"plugins" -}; - static char *get_the_cwd(); /* further down... */ static char *get_module_dir() { @@ -58,37 +49,6 @@ } closedir(dir); } - else /* Search relative to binary. */ - { - size_t i; - for(i=0; i<sizeof(modulesearch)/sizeof(char*); ++i) - { - const char *testpath = modulesearch[i]; - size_t l; - if(binpath != NULL) l = strlen(binpath) + strlen(testpath) + 1; - else l = strlen(testpath); - - moddir = malloc(l+1); - if(moddir != NULL) - { - if(binpath==NULL) /* a copy of testpath, when there is no prefix */ - snprintf(moddir, l+1, "%s", testpath); - else - snprintf(moddir, l+1, "%s/%s", binpath, testpath); - - moddir[l] = 0; - if(param.verbose > 1) fprintf(stderr, "Looking for module dir: %s\n", moddir); - - dir = opendir(moddir); - if(dir != NULL) - { - closedir(dir); - break; /* found it! */ - } - else{ free(moddir); moddir=NULL; } - } - } - } if(param.verbose > 1) fprintf(stderr, "Module dir: %s\n", moddir != NULL ? moddir : "<nil>"); return moddir; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor