summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2013-08-02 16:24:23 +0200
committerPetr Mladek <pmladek@suse.cz>2013-08-02 16:34:28 +0200
commitdcb386d787e5d3dbcd67a029569dd9b1cfba9274 (patch)
treea371547ed9bb0a57c89faa49d5dfdb585b3a29ee
parent051b59ca35b30ec44226c7e5d429c46c00076ad5 (diff)
let's own the packaged stuff by root:root again (fdo#67388)
We have started to use -fvisibility=hidden globally with GCC. The hacky libgetuid.so does not work if the symbols are hidden. In addition, the library was renamed from getuid.so to libgetuid.so during gbuildisation; There was more location where it was not fixed; The result was that the packages and files in the Linux download tarballs were owned by some "ugly" user and group. Change-Id: I22f62b861c373f2553dcccc85a84dddabaf1f418
-rw-r--r--setup_native/Library_getuid.mk8
-rw-r--r--solenv/bin/modules/installer/download.pm2
2 files changed, 9 insertions, 1 deletions
diff --git a/setup_native/Library_getuid.mk b/setup_native/Library_getuid.mk
index 764128dcb96a..fa98773f4d06 100644
--- a/setup_native/Library_getuid.mk
+++ b/setup_native/Library_getuid.mk
@@ -14,6 +14,14 @@ $(eval $(call gb_Library_add_defs,getuid,\
-D_GNU_SOURCE \
))
endif
+
+# the library is used by LD_PRELOAD; make sure that we see the symbols ;-)
+ifeq ($(COM),GCC)
+$(eval $(call gb_Library_add_cflags,getuid,\
+ -fvisibility=default \
+))
+endif
+
$(eval $(call gb_Library_add_cobjects,getuid,\
setup_native/scripts/source/getuid \
))
diff --git a/solenv/bin/modules/installer/download.pm b/solenv/bin/modules/installer/download.pm
index 408dc3680521..6f83943d7ad7 100644
--- a/solenv/bin/modules/installer/download.pm
+++ b/solenv/bin/modules/installer/download.pm
@@ -194,7 +194,7 @@ sub get_path_for_library
{
my ($includepatharrayref) = @_;
- my $getuidlibraryname = "getuid.so";
+ my $getuidlibraryname = "libgetuid.so";
my $getuidlibraryref = "";