861ac185a6
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
17 lines
456 B
Diff
17 lines
456 B
Diff
From Frugalware:
|
|
|
|
* disable library destructor
|
|
it triggers a glibc bug where elf dynamically loaded libraries
|
|
are freed before the library constructor is ever called
|
|
|
|
--- a/src/vdpau_wrapper.c 2013-01-24 18:55:06.000000000 -0600
|
|
+++ b/src/vdpau_wrapper.c 2013-07-15 20:14:40.221679876 -0500
|
|
@@ -47,7 +47,7 @@
|
|
|
|
#if defined(__GNUC__)
|
|
|
|
-static void _vdp_close_driver(void) __attribute__((destructor));
|
|
+static void _vdp_close_driver(void);
|
|
|
|
#endif
|
|
|