Re: BUG #7823: PGDG packaged pgadmin3_92 removes its /usr/bin/pgadmin3 link

From: Georgi Georgiev <georgi-georgiev-pgsql(at)japannext(dot)co(dot)jp>
To: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #7823: PGDG packaged pgadmin3_92 removes its /usr/bin/pgadmin3 link
Date: 2013-01-24 03:55:31
Message-ID: 20130124035531.GA18407@jnext-0060.corp.japannext.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Quoting Devrim GÜNDÜZ at 23/01/2013-21:11:09(+0200):
>
> Hi,
>
> On Tue, 2013-01-22 at 17:13 +0000, georgi-georgiev-pgsql(at)japannext(dot)co(dot)jp
> wrote:
> > The following bug has been logged on the website:
> >
> > Bug reference: 7823
> > Logged by: Georgi Georgiev
> > Email address: georgi-georgiev-pgsql(at)japannext(dot)co(dot)jp
> > PostgreSQL version: 9.2.2
> > Operating system: CentOS 6.3
> > Description:
> >
> > Updating pgadmin3_92 removes the /usr/bin/pgadmin3 symlink. There is also a
> > harmless warning from the post-install scriptlet when it tries to create
> > that symlink and it is already there (happens on an update).
>
> 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
Non-fatal POSTIN scriptlet failure in rpm package pgadmin3_92-1.16.1-2.rhel6.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/pgadmin3

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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Mark Kirkwood 2013-01-24 04:21:06 PL/R Median Busts Commit (Postgres 9.1.6 + plr 8.3.0.13 on Ubuntu 12.10 64 bit)
Previous Message Tom Lane 2013-01-24 03:11:12 Re: BUG #7814: Rotation of the log is not carried out.