pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Georgi Georgiev <georgi-georgiev-pgsql@japannext.co.jp>
To: Devrim GÜNDÜZ <devrim@gunduz.org>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7823: PGDG packaged pgadmin3_92 removes its /usr/bin/pgadmin3 link
Date: Thu, 24 Jan 2013 12:55:31 +0900
Message-ID: <20130124035531.GA18407@jnext-0060.corp.japannext.co.jp> (raw)
In-Reply-To: <1358968269.19842.4.camel@lenovo01-laptop03.gunduz.org>
References: <E1TxhPs-0000Pl-O5@wrigleys.postgresql.org>
	<1358968269.19842.4.camel@lenovo01-laptop03.gunduz.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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@japannext.co.jp
> wrote:
> > The following bug has been logged on the website:
> > 
> > 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:        
> > 
> > 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-    /                                             /


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (6+ messages)  latest in thread

Message-ID: <20130124035531.GA18407@jnext-0060.corp.japannext.co.jp>
Permalink:  ../20130124035531.GA18407@jnext-0060.corp.japannext.co.jp/
Also on:    postgresql.org/message-id/20130124035531.GA18407@jnext-0060.corp.japannext.co.jp

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: georgi-georgiev-pgsql@japannext.co.jp, devrim@gunduz.org
  Subject: Re: BUG #7823: PGDG packaged pgadmin3_92 removes its /usr/bin/pgadmin3 link
  In-Reply-To: <20130124035531.GA18407@jnext-0060.corp.japannext.co.jp>
  References: <E1TxhPs-0000Pl-O5@wrigleys.postgresql.org> <1358968269.19842.4.camel@lenovo01-laptop03.gunduz.org> <20130124035531.GA18407@jnext-0060.corp.japannext.co.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox