diff options
author | Ladislav Hagara | 2011-01-13 00:09:38 +0100 |
---|---|---|
committer | Ladislav Hagara | 2011-01-13 00:09:38 +0100 |
commit | 7ce03ea5123b88fde4aa770da286cebee4a0f8b5 (patch) | |
tree | f2ed614a2e1643c7eb6a6de4ad26d367dc04fe81 /xorg-extras/libpthread-stubs | |
parent | 966315111463053ca798377fef9502cd1a425c0e (diff) |
libpthread-stubs: UP_TRIGGERS updated and fake libpthread-stubs.la
installed
Diffstat (limited to 'xorg-extras/libpthread-stubs')
-rw-r--r-- | xorg-extras/libpthread-stubs/HISTORY | 4 | ||||
-rwxr-xr-x | xorg-extras/libpthread-stubs/INSTALL | 3 | ||||
-rwxr-xr-x | xorg-extras/libpthread-stubs/UP_TRIGGERS | 28 | ||||
-rwxr-xr-x | xorg-extras/libpthread-stubs/libpthread-stubs.la | 41 |
4 files changed, 65 insertions, 11 deletions
diff --git a/xorg-extras/libpthread-stubs/HISTORY b/xorg-extras/libpthread-stubs/HISTORY index a4ed52b896..7d7fcf3b70 100644 --- a/xorg-extras/libpthread-stubs/HISTORY +++ b/xorg-extras/libpthread-stubs/HISTORY @@ -1,3 +1,7 @@ +2011-01-12 Ladislav Hagara <hgr@vabo.cz> + * UP_TRIGGERS: updated to re-cast all spells needed libpthread-stubs.so + * INSTALL, libpthread-stubs.la: fake libpthread-stubs.la installed + 2010-12-22 Pol Vinogradov <vin.public@gmail.com> * UP_TRIGGERS: added to fix depends after update diff --git a/xorg-extras/libpthread-stubs/INSTALL b/xorg-extras/libpthread-stubs/INSTALL new file mode 100755 index 0000000000..7967c30183 --- /dev/null +++ b/xorg-extras/libpthread-stubs/INSTALL @@ -0,0 +1,3 @@ +default_install && + +install -m 0755 $SPELL_DIRECTORY/libpthread-stubs.la ${INSTALL_ROOT}/usr/lib/ diff --git a/xorg-extras/libpthread-stubs/UP_TRIGGERS b/xorg-extras/libpthread-stubs/UP_TRIGGERS index ad78298d08..2cbdab2b45 100755 --- a/xorg-extras/libpthread-stubs/UP_TRIGGERS +++ b/xorg-extras/libpthread-stubs/UP_TRIGGERS @@ -1,12 +1,18 @@ -local OLD_SPELL_VERSION="" -spell_ok $SPELL && OLD_SPELL_VERSION="$(installed_version $SPELL)" -if [ "${VERSION:1:2}" != "${OLD_SPELL_VERSION:1:2}" ]; then - message "This is a possibly incompatible update of libpthread-stubs..." - message "Figuring out what spells need to be recast, this may take a while." - for each in $(show_up_depends $SPELL 3); do - if gaze install-spell $each | xargs readelf -d 2> /dev/null | - grep -q libpthread-stubs; then - up_trigger $each cast_self - fi - done +if spell_ok $SPELL; then + local OLD_SPELL_VERSION="$(installed_version $SPELL)" + if [[ "${VERSION}" != "${OLD_SPELL_VERSION}" ]]; then + message "This is an ABI incompatible update of libpthread-stubs..." + message "Determining which spells need to be recast, this may take a while." + + for other_spell in $(gaze installed | cut -d: -f1); do + if gaze install $other_spell \ + | xargs file -e apptype -e ascii -e compress -e tar \ + | grep '\<ELF\>.*\<dynamically linked\>' \ + | cut -d: -f1 \ + | xargs readelf -d 2> /dev/null \ + | grep -q -P 'NEEDED\)\s*Shared library: \[libpthread-stubs.so.0'; then + up_trigger $other_spell cast_self + fi + done + fi fi diff --git a/xorg-extras/libpthread-stubs/libpthread-stubs.la b/xorg-extras/libpthread-stubs/libpthread-stubs.la new file mode 100755 index 0000000000..7d5d063cf7 --- /dev/null +++ b/xorg-extras/libpthread-stubs/libpthread-stubs.la @@ -0,0 +1,41 @@ +# libpthread-stubs.la - a libtool library file +# Generated by ltmain.sh (GNU libtool) 2.2.6 Debian-2.2.6a-4 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='' + +# Names of this library. +library_names='libc.so' + +# The name of the static archive. +old_library='' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='' + +# Libraries that this one depends upon. +dependency_libs='' + +# Names of additional weak libraries provided by this library +weak_library_names='' + +# Version information for libpthread-stubs. +current=0 +age=0 +revision=0 + +# Is this an already installed library? +installed=yes + +# Should we warn about portability when linking against -modules? +shouldnotlink=no + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='/usr/lib' |