Re: BUG #7823: PGDG packaged pgadmin3_92 removes its /usr/bin/pgadmin3 link - Mailing list pgsql-bugs

From Georgi Georgiev
Subject Re: BUG #7823: PGDG packaged pgadmin3_92 removes its /usr/bin/pgadmin3 link
Date
Msg-id 20130124035531.GA18407@jnext-0060.corp.japannext.co.jp
Whole thread Raw
In response to Re: BUG #7823: PGDG packaged pgadmin3_92 removes its /usr/bin/pgadmin3 link  (Devrim GÜNDÜZ <devrim@gunduz.org>)
Responses Re: BUG #7823: PGDG packaged pgadmin3_92 removes its /usr/bin/pgadmin3 link
List pgsql-bugs
Quoting Devrim G=DCND=DCZ at 23/01/2013-21:11:09(+0200):
>=20
> Hi,
>=20
> On Tue, 2013-01-22 at 17:13 +0000, georgi-georgiev-pgsql@japannext.co.j=
p
> wrote:
> > The following bug has been logged on the website:
> >=20
> > Bug reference:      7823
> > Logged by:          Georgi Georgiev
> > Email address:      georgi-georgiev-pgsql@japannext.co.jp
> > PostgreSQL version: 9.2.2
> > Operating system:   CentOS 6.3
> > Description:       =20
> >=20
> > Updating pgadmin3_92 removes the /usr/bin/pgadmin3 symlink. There is =
also a
> > harmless warning from the post-install scriptlet when it tries to cre=
ate
> > that symlink and it is already there (happens on an update).
>=20
> Should be fixed with 1.16.1-2. Please check.

Thanks for the quick turnaround. But there seems to be a typo now, so
the %post is not working:

$ sudo yum update pgadmin3_92
Running Transaction
  Updating   : pgadmin3_92-1.16.1-2.rhel6.x86_64                         =
   1/2=20
Non-fatal POSTIN scriptlet failure in rpm package pgadmin3_92-1.16.1-2.rh=
el6.x86_64
/var/tmp/rpm-tmp.uHi9h7: line 1: {_sbindir}/update-alternatives: No such =
file or directory
warning: %post(pgadmin3_92-1.16.1-2.rhel6.x86_64) scriptlet failed, exit =
status 127
...

$ rpm -q pgadmin3_92 --scripts
postinstall scriptlet (using /bin/sh):
{_sbindir}/update-alternatives --install /usr/bin/pgadmin3 pgadmin3 /usr/=
pgsql-9.2/bin/pgadmin3 920
preuninstall scriptlet (using /bin/sh):
/usr/sbin/update-alternatives --remove pgadmin3 /usr/pgsql-9.2/bin/pgadmi=
n3

--=20
 /   Georgi Georgiev    / I go on working for the same reason a hen   /
\     Sysadmin Head    \  goes on laying eggs. -- H.L. Mencken       \
 /   -SBI Japannext-    /                                             /

pgsql-bugs by date:

Previous
From: Ben Morgan
Date:
Subject: Re: psql \d command hides objects from "lower" schemas
Next
From: Tom Lane
Date:
Subject: Re: cache lookup failed from empty plpythonu function