diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-03-14 06:17:27 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-03-14 06:17:27 +0800 |
commit | a1abd0e9a0fac9fdecafe0b9e83ddff8265260ae (patch) | |
tree | a5136a0586bbf8836253d5503ba1fe2be887669c /mail/evolution | |
parent | 075c4fd41ae309ef3d1842a533cadbc3e35c056a (diff) | |
download | marcuscom-ports-a1abd0e9a0fac9fdecafe0b9e83ddff8265260ae.tar marcuscom-ports-a1abd0e9a0fac9fdecafe0b9e83ddff8265260ae.tar.gz marcuscom-ports-a1abd0e9a0fac9fdecafe0b9e83ddff8265260ae.tar.bz2 marcuscom-ports-a1abd0e9a0fac9fdecafe0b9e83ddff8265260ae.tar.lz marcuscom-ports-a1abd0e9a0fac9fdecafe0b9e83ddff8265260ae.tar.xz marcuscom-ports-a1abd0e9a0fac9fdecafe0b9e83ddff8265260ae.tar.zst marcuscom-ports-a1abd0e9a0fac9fdecafe0b9e83ddff8265260ae.zip |
Make sure we don't duplicate the g_module symbols in the modules.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13816 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'mail/evolution')
-rwxr-xr-x | mail/evolution/files/fix-plugins.sh | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/mail/evolution/files/fix-plugins.sh b/mail/evolution/files/fix-plugins.sh index 0236aa54a..c8e6c5361 100755 --- a/mail/evolution/files/fix-plugins.sh +++ b/mail/evolution/files/fix-plugins.sh @@ -36,10 +36,15 @@ for i in ${module_srcs}; do continue fi cp ${WRKSRC}/modules/${i} ${WRKSRC}/modules/${i}.bak - printf "const char * g_module_check_init (gpointer module);\n" >> ${WRKSRC}/modules/${i} - printf "const char *\ng_module_check_init (gpointer module) {\n\treturn NULL;\n}\n" >> ${WRKSRC}/modules/${i} - printf "void g_module_unload (gpointer module);\n" >> ${WRKSRC}/modules/${i} - printf "void\ng_module_unload (gpointer module) {\n\treturn;\n}\n" >> ${WRKSRC}/modules/${i} + dir=$(dirname ${WRKSRC}/modules/${i}) + if ! grep -q g_module_check_init ${dir}/*.c; then + printf "const char * g_module_check_init (gpointer module);\n" >> ${WRKSRC}/modules/${i} + printf "const char *\ng_module_check_init (gpointer module) {\n\treturn NULL;\n}\n" >> ${WRKSRC}/modules/${i} + fi + if ! grep g_module_unload ${dir}/*.c; then + printf "void g_module_unload (gpointer module);\n" >> ${WRKSRC}/modules/${i} + printf "void\ng_module_unload (gpointer module) {\n\treturn;\n}\n" >> ${WRKSRC}/modules/${i} + fi done |