aboutsummaryrefslogtreecommitdiffstats
path: root/main/cowdancer/cowdancer-no-vsym.patch
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-06-28 13:03:56 -0500
committerWilliam Pitcock <nenolod@dereferenced.org>2011-06-28 13:04:45 -0500
commit8eb3352f58c6f5d5e6898ff33f3877da5b30e2c2 (patch)
treed1b6f783390554c0d7ecb30a903505d2334e14ba /main/cowdancer/cowdancer-no-vsym.patch
parent629651f07b4ea0bb80df13eac7e8b551c0264b91 (diff)
downloadaports-8eb3352f58c6f5d5e6898ff33f3877da5b30e2c2.tar.bz2
aports-8eb3352f58c6f5d5e6898ff33f3877da5b30e2c2.tar.xz
main/cowdancer: new aport
Diffstat (limited to 'main/cowdancer/cowdancer-no-vsym.patch')
-rw-r--r--main/cowdancer/cowdancer-no-vsym.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/main/cowdancer/cowdancer-no-vsym.patch b/main/cowdancer/cowdancer-no-vsym.patch
new file mode 100644
index 0000000000..b244fc930c
--- /dev/null
+++ b/main/cowdancer/cowdancer-no-vsym.patch
@@ -0,0 +1,33 @@
+--- cowdancer-0.63.orig/cowdancer.c
++++ cowdancer-0.63/cowdancer.c
+@@ -174,29 +174,7 @@
+ origlibc_fopen = dlsym(RTLD_NEXT, "fopen64");
+ origlibc_fopen64 = dlsym(RTLD_NEXT, "fopen64");
+ dlerror();
+- if (!(origlibc_chown = dlvsym(RTLD_NEXT, "chown", "GLIBC_2.1")))
+- {
+- /* I should really check dlerror, but due to a possible bug in glibc,
+- dlerror doesn't seem to work at all.
+- */
+- const char* d=dlerror();
+- if(!d)
+- {
+- debug_cowdancer("dlerror does not return anything, chown returned NULL but OK");
+- /* success */
+- }
+- else
+- {
+- debug_cowdancer(d);
+- }
+-
+-
+- /* fallback to loading unversioned symbol doing it anyway
+- since glibc does not seem to set dlerror on dlsym failure.
+- */
+- origlibc_chown = dlsym(RTLD_NEXT, "chown");
+-
+- }
++ origlibc_chown = dlsym(RTLD_NEXT, "chown");
+ origlibc_fchown = dlsym(RTLD_NEXT, "fchown");
+ origlibc_lchown = dlsym(RTLD_NEXT, "lchown");
+ origlibc_chmod = dlsym(RTLD_NEXT, "chmod");