From: "Vladimir V. Kamarzin" <vvk@altlinux.ru> To: devel@lists.altlinux.org Subject: [devel] ldconfig и %post Date: Thu, 12 Aug 2010 12:13:42 +0600 Message-ID: <m3y6ccl5nt.fsf@vvk.distance.ru> (raw) Hi Недавно столкнулся с неприятным последствием неработы ldconfig при вызове из rpm http://git.altlinux.org/gears/g/glibc.git?p=glibc.git;a=commitdiff;h=49e4633da51d71d4bbb1ed3d88996b1381ae4344;hp=21c141ed10e17ffb15245e08b281034340825553 Имеется упакованный в rpm django проект, в %post которого выполняется перезапуск wsgi-сервера uwsgi. Так же в проекте косвенно используется /usr/lib/python2.6/site-packages/django/contrib/gis/gdal/libgdal.py который для поиска libgdal использует find_library() из /usr/lib/python2.6/ctypes/util.py, в котором как раз и используется вызов `ldconfig -p` для поиска библиотек. Таким образом, после рестарта uwsgi из rpm обламывается импорт одного из классов, и проект становится неработоспособен. Локально я конечно решил проблему заданием GDAL_LIBRARY_PATH в settings.py django-проекта, но хотелось бы придумать что-то более дистрибутивное. Например, добавить в ctypes/util.py нечто вроде if os.environ.has_key('RPM_INSTALL_NAME'): os.unsetenv('RPM_INSTALL_NAME') Но это, опять же, узкое решение. -- vvk
reply other threads:[~2010-08-12 6:13 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=m3y6ccl5nt.fsf@vvk.distance.ru \ --to=vvk@altlinux.ru \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git