From: "Ian Stakenvicius" <axs@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/mozilla:master commit in: mail-client/thunderbird/
Date: Tue, 14 Mar 2017 13:50:27 +0000 (UTC) [thread overview]
Message-ID: <1489499398.e481f4aac24f197d01536262418ceedd2b9a5b4e.axs@gentoo> (raw)
commit: e481f4aac24f197d01536262418ceedd2b9a5b4e
Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 14 13:49:48 2017 +0000
Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Tue Mar 14 13:49:58 2017 +0000
URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=e481f4aa
mail-client/thunderbird: fix enigmail symlink installation
Limitations in package managers prevent a symbolic link from replacing a directory
at merge time. This patch addresses that issue by removing the directory belonging
to the currently installed thunderbird in pkg_preinst(). It's been tested against
a direct upgrade form 45.7.0 as well as a reinstall, and seems to do the 'right thing'
in all cases.
Package-Manager: portage-2.3.3
mail-client/thunderbird/thunderbird-45.8.0.ebuild | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/mail-client/thunderbird/thunderbird-45.8.0.ebuild b/mail-client/thunderbird/thunderbird-45.8.0.ebuild
index aefbb24..adf0d1b 100644
--- a/mail-client/thunderbird/thunderbird-45.8.0.ebuild
+++ b/mail-client/thunderbird/thunderbird-45.8.0.ebuild
@@ -303,9 +303,9 @@ src_install() {
fi
if use crypt ; then
- emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' /usr/share/enigmail/install.rdf)
+ emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' "${EPREFIX}"/usr/share/enigmail/install.rdf)
if [[ -n ${emid} ]]; then
- dosym /usr/share/enigmail ${MOZILLA_FIVE_HOME}/extensions/${emid}
+ dosym "${EPREFIX}"/usr/share/enigmail ${MOZILLA_FIVE_HOME}/extensions/${emid}
else
die "<EM:ID> tag for installed enigmail could not be found!"
fi
@@ -326,6 +326,20 @@ src_install() {
pkg_preinst() {
gnome2_icon_savelist
+
+ # Because PM's dont seem to properly merge a symlink replacing a directory
+ if use crypt ; then
+ local emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' "${EPREFIX}"/usr/share/enigmail/install.rdf)
+ if [[ -d "${EPREFIX}${MOZILLA_FIVE_HOME}/extensions/${emid}" ]] ; then
+ rm -Rf "${EPREFIX}${MOZILLA_FIVE_HOME}/extensions/${emid}" || (
+ eerror "Could not remove enigmail directory from previous installation,"
+ eerror "You must remove this by hand and rename the symbolic link yourself:"
+ eerror
+ eerror "\t cd ${EPREFIX}${MOZILLA_FIVE_HOME}/extensions"
+ eerror "\t rm -Rf ${emid}"
+ eerror "\t mv ${emid}.backup* ${emid}" )
+ fi
+ fi
}
pkg_postinst() {
next reply other threads:[~2017-03-14 13:50 UTC|newest]
Thread overview: 166+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-14 13:50 Ian Stakenvicius [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-01-26 2:46 [gentoo-commits] proj/mozilla:master commit in: mail-client/thunderbird/ Thomas Deutschmann
2022-01-11 19:59 Thomas Deutschmann
2022-01-09 16:19 Joonas Niilola
2020-04-10 3:59 Jory Pratt
2020-03-14 17:25 Jory Pratt
2020-01-07 18:25 Jory Pratt
2019-12-18 10:36 Jory Pratt
2019-10-31 16:06 Thomas Deutschmann
2019-10-21 0:57 Jory Pratt
2019-10-08 21:18 Thomas Deutschmann
2019-09-06 14:41 Thomas Deutschmann
2019-09-04 2:46 Jory Pratt
2019-09-01 14:17 Jory Pratt
2019-09-01 7:03 Jory Pratt
2019-08-31 16:45 Jory Pratt
2019-08-29 18:46 Jory Pratt
2019-08-12 15:57 Jory Pratt
2019-05-18 21:32 Jory Pratt
2019-04-26 23:32 Jory Pratt
2019-04-24 10:56 Jory Pratt
2019-04-17 7:11 Jory Pratt
2019-04-16 19:30 Jory Pratt
2019-04-15 7:40 Jory Pratt
2019-04-05 19:29 Jory Pratt
2019-03-28 0:53 Thomas Deutschmann
2019-03-25 20:07 Thomas Deutschmann
2019-03-20 19:26 Thomas Deutschmann
2018-12-20 21:55 Ian Stakenvicius
2018-12-07 18:16 Ian Stakenvicius
2018-11-01 22:59 Ian Stakenvicius
2018-11-01 17:30 Ian Stakenvicius
2018-10-23 16:58 Thomas Deutschmann
2018-10-23 0:53 Thomas Deutschmann
2018-10-17 20:39 Ian Stakenvicius
2018-10-17 19:59 Ian Stakenvicius
2018-10-17 19:59 Ian Stakenvicius
2018-08-08 20:36 Ian Stakenvicius
2018-07-04 19:34 Ian Stakenvicius
2018-07-04 17:44 Jory Pratt
2018-05-22 18:17 Ian Stakenvicius
2018-01-31 15:35 Ian Stakenvicius
2018-01-10 14:28 Jory Pratt
2018-01-04 15:51 Ian Stakenvicius
2018-01-04 14:25 Ian Stakenvicius
2017-11-24 21:20 Ian Stakenvicius
2017-11-24 16:22 Ian Stakenvicius
2017-11-23 19:53 Ian Stakenvicius
2017-11-23 19:47 Ian Stakenvicius
2017-10-07 13:57 Ian Stakenvicius
2017-10-06 20:09 Ian Stakenvicius
2017-10-06 16:51 Ian Stakenvicius
2017-09-19 0:33 Jory Pratt
2017-08-08 12:30 Lars Wendler
2017-06-25 16:14 Jory Pratt
2017-06-20 19:55 Jory Pratt
2017-06-16 14:53 Ian Stakenvicius
2017-06-05 14:36 Jory Pratt
2017-05-18 13:33 Ian Stakenvicius
2017-05-01 21:42 Ian Stakenvicius
2017-04-08 18:31 Jory Pratt
2017-04-04 15:02 Ian Stakenvicius
2017-03-07 22:01 Ian Stakenvicius
2017-02-16 18:39 Ian Stakenvicius
2017-01-30 1:30 Jory Pratt
2017-01-29 18:01 Jory Pratt
2017-01-29 17:04 Lars Wendler
2017-01-26 20:02 Ian Stakenvicius
2016-11-18 21:55 Ian Stakenvicius
2016-10-01 13:57 Ian Stakenvicius
2016-09-22 14:39 Ian Stakenvicius
2016-08-30 12:58 Ian Stakenvicius
2016-08-19 17:20 Ian Stakenvicius
2016-07-05 1:15 Ian Stakenvicius
2016-06-02 15:19 Ian Stakenvicius
2016-05-11 17:51 Ian Stakenvicius
2016-04-21 21:24 Ian Stakenvicius
2016-04-20 20:26 Ian Stakenvicius
2016-04-18 15:05 Ian Stakenvicius
2016-03-31 13:52 Ian Stakenvicius
2016-03-18 14:59 Ian Stakenvicius
2016-03-18 14:59 Ian Stakenvicius
2016-03-14 20:16 Ian Stakenvicius
2016-02-22 21:20 Ian Stakenvicius
2016-02-16 18:51 Ian Stakenvicius
2016-02-10 21:39 Ian Stakenvicius
2015-12-30 3:02 Jory Pratt
2015-12-23 21:43 Ian Stakenvicius
2015-11-21 23:21 Jory Pratt
2015-08-17 13:38 Ian Stakenvicius
2015-07-16 17:48 Ian Stakenvicius
2015-07-16 15:41 Ian Stakenvicius
2015-07-14 22:16 Ian Stakenvicius
2015-06-19 1:11 Jory Pratt
2015-06-16 16:42 Jory Pratt
2015-06-14 14:14 Jory Pratt
2015-06-14 0:09 Jory Pratt
2015-04-19 15:38 Jory Pratt
2015-01-14 1:32 Jory Pratt
2015-01-04 20:04 Jory Pratt
2014-10-22 16:00 Ian Stakenvicius
2014-09-03 22:08 Ian Stakenvicius
2014-04-15 23:08 Jory Pratt
2014-03-20 16:01 Lars Wendler
2013-11-21 2:08 Jory Pratt
2013-11-09 4:00 Ian Stakenvicius
2013-09-25 0:08 Jory Pratt
2013-09-25 0:07 Jory Pratt
2013-07-28 19:16 Jory Pratt
2013-07-08 2:23 Jory Pratt
2013-06-10 12:59 Jory Pratt
2013-06-10 12:26 Jory Pratt
2013-04-25 23:31 Jory Pratt
2013-04-04 3:11 Jory Pratt
2013-01-10 22:07 Jory Pratt
2012-12-31 15:44 Jory Pratt
2012-12-13 18:40 Jory Pratt
2012-11-26 17:26 Jory Pratt
2012-11-12 15:50 Jory Pratt
2012-09-24 22:19 Jory Pratt
2012-09-11 23:45 Jory Pratt
2012-08-31 1:01 Jory Pratt
2012-07-12 13:23 Jory Pratt
2012-07-01 17:15 Jory Pratt
2012-06-07 13:10 Jory Pratt
2012-06-06 13:26 Jory Pratt
2012-06-06 12:03 Jory Pratt
2012-05-25 0:17 Jory Pratt
2012-04-30 16:40 Jory Pratt
2012-04-21 2:46 Jory Pratt
2012-04-10 0:41 Jory Pratt
2012-03-30 0:17 Jory Pratt
2012-03-21 12:27 Jory Pratt
2012-03-14 13:45 Jory Pratt
2012-02-28 15:50 Jory Pratt
2012-02-12 23:25 Jory Pratt
2012-02-12 22:51 Jory Pratt
2012-02-12 20:52 Jory Pratt
2012-02-05 17:10 Jory Pratt
2012-02-05 4:52 Nirbheek Chauhan
2012-02-01 3:42 Jory Pratt
2012-01-15 20:41 Jory Pratt
2012-01-10 23:41 Lars Wendler
2012-01-04 23:45 Jory Pratt
2011-12-13 12:34 Jory Pratt
2011-11-20 20:38 Jory Pratt
2011-11-16 13:26 Jory Pratt
2011-11-14 19:47 Jory Pratt
2011-11-14 18:34 Jory Pratt
2011-11-14 18:25 Jory Pratt
2011-11-14 15:56 Nirbheek Chauhan
2011-11-14 15:46 Nirbheek Chauhan
2011-11-13 16:58 Jory Pratt
2011-11-10 13:19 Jory Pratt
2011-10-07 19:15 Nirbheek Chauhan
2011-09-20 22:00 Jory Pratt
2011-09-14 1:21 Jory Pratt
2011-06-30 0:59 Jory Pratt
2011-05-16 2:20 Jory Pratt
2011-05-09 23:05 Jory Pratt
2011-04-04 2:25 Jory Pratt
2011-03-16 14:16 Jory Pratt
2011-03-14 19:41 Jory Pratt
2011-03-14 19:37 Jory Pratt
2011-03-04 5:43 Lars Wendler
2011-02-04 6:05 anarchy
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=1489499398.e481f4aac24f197d01536262418ceedd2b9a5b4e.axs@gentoo \
--to=axs@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox