[prev in list] [next in list] [prev in thread] [next in thread] 

List:       spacewalk-list
Subject:    Re: [Spacewalk-list] upgrading postgres (8.4 > 9.x) on the spacewalk server ?
From:       Andreas Dijkman <Andreas.Dijkman () cygnis ! nl>
Date:       2014-07-24 7:11:36
Message-ID: 0FDE23F6-4024-4B6E-8FC9-89BC87E6816B () cygnis ! nl
[Download RAW message or body]

Hi,

The RPM isn=92t actually looking at the file but at the file specs of all a=
vailable RPM=92s. You need to install and rpm that provides the binary /usr=
/bin/psql in it=92s metadata. You could build an metadata-only-rpm that dep=
ends on all the postgresql-9.x-stuff and provides the necessary files in it=
=92s metadata and secretly creates symlinks underneath.

Met vriendelijke groet,

Andreas Dijkman
Oracle Technical Consultant
Phone: +31(0)50-210 0132 | Mobile: +31(0)6-8115 2982
Cygnis<http://www.cygnis.nl/> | Stationsweg 3B | 9726 AC Groningen
Op maandag afwezig

On 23 Jul, 2014, at 23:42 , Boyd, Robert <Robert.Boyd@peoplefluent.com<mail=
to:Robert.Boyd@peoplefluent.com>> wrote:

I tried changing the link for /usr/bin/psql to directly link to the binary.=
  That didn't help.

I tried removing the link and copying the binary to /usr/bin/psql -- that d=
idn't help either.

I take it this means that the error message I'm getting isn't telling me th=
e truth about what the real error is.

Robert Boyd
Sr. Systems Engineer
PeopleFluent
p. 919-645-2972 | c. 919-306-4681
e. Robert.Boyd@PeopleFluent.com<mailto:Robert.Boyd@PeopleFluent.com>

-----Original Message-----
From: Boyd, Robert
Sent: Wednesday, July 23, 2014 5:33 PM
To: 'spacewalk-list@redhat.com<mailto:spacewalk-list@redhat.com>'
Subject: RE: [Spacewalk-list] upgrading postgres (8.4 > 9.x) on the spacewa=
lk server ?

I'm attempting an install of spacewalk 2.2 using postgresql-9.3.

I installed and manually configured postgresql.

When I attempt to install spacewalk I get this error:

 yum install spacewalk-postgresql

 ... many dependencies resolved ... etc ...

 Error: Package: spacewalk-postgresql-2.2.2-1.el6.noarch (spacewalk)
          Requires: /usr/bin/psql

However there is clearly something there:

[root ~]# ll /usr/bin/psql
lrwxrwxrwx. 1 root root 28 Jul 21 12:35 /usr/bin/psql -> /etc/alternatives/=
pgsql-psql

[root ~]# ll /etc/alternatives/pgsql-psql
lrwxrwxrwx. 1 root root 23 Jul 21 12:35 /etc/alternatives/pgsql-psql -> /us=
r/pgsql-9.3/bin/psql

[root ~]# ll /usr/pgsql-9.3/bin/psql
-rwxr-xr-x. 1 root root 447560 Mar 18 03:19 /usr/pgsql-9.3/bin/psql

What is this package expecting to find there?  Is a symbolic link not good =
enough?  Can I fake it out by copying over the real binary or changing the =
link to point directly to the binary instead of an intermediate link?


Robert Boyd
Sr. Systems Engineer
PeopleFluent
p. 919-645-2972 | c. 919-306-4681
e. Robert.Boyd@PeopleFluent.com<mailto:Robert.Boyd@PeopleFluent.com>

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list@redhat.com<mailto:Spacewalk-list@redhat.com>
https://www.redhat.com/mailman/listinfo/spacewalk-list



[Attachment #3 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: \
after-white-space;"> Hi,
<div><br>
</div>
<div>The RPM isn’t actually looking at the file but at the file specs of all \
available RPM’s. You need to install and rpm that provides the binary /usr/bin/psql \
in it’s metadata. You could build an metadata-only-rpm that depends on all the \
postgresql-9.x-stuff  and provides the necessary files in it’s metadata and secretly \
creates symlinks underneath.</div> <div><br>
<div>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: \
start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; \
word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; \
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"> <div style="color: \
rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; \
font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; \
text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: \
normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: \
break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"> \
<div>Met vriendelijke groet,<br> <br>
Andreas Dijkman<br>
<span style="font-size: 11px;">Oracle Technical Consultant<br>
Phone: &#43;31(0)50-210 0132 | Mobile:&nbsp;&#43;31(0)6-8115 2982</span></div>
<div><span style="font-size: 11px;"><a href="http://www.cygnis.nl/">Cygnis</a>&nbsp;| \
Stationsweg 3B |&nbsp;9726 AC&nbsp;Groningen</span></div> <div><span \
style="font-size: 11px;">Op maandag afwezig</span></div> </div>
</div>
</div>
<br>
<div>
<div>On 23 Jul, 2014, at 23:42 , Boyd, Robert &lt;<a \
href="mailto:Robert.Boyd@peoplefluent.com">Robert.Boyd@peoplefluent.com</a>&gt; \
wrote:</div> <br class="Apple-interchange-newline">
<blockquote type="cite">I tried changing the link for /usr/bin/psql to directly link \
to the binary. &nbsp;That didn't help. <br>
<br>
I tried removing the link and copying the binary to /usr/bin/psql -- that didn't help \
either. <br>
<br>
I take it this means that the error message I'm getting isn't telling me the truth \
about what the real error is.<br> <br>
Robert Boyd<br>
Sr. Systems Engineer <br>
PeopleFluent<br>
p. 919-645-2972 | c. 919-306-4681<br>
e. <a href="mailto:Robert.Boyd@PeopleFluent.com">Robert.Boyd@PeopleFluent.com</a><br>
<br>
-----Original Message-----<br>
From: Boyd, Robert <br>
Sent: Wednesday, July 23, 2014 5:33 PM<br>
To: '<a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a>'<br>
Subject: RE: [Spacewalk-list] upgrading postgres (8.4 &gt; 9.x) on the spacewalk \
server ?<br> <br>
I'm attempting an install of spacewalk 2.2 using postgresql-9.3. &nbsp;<br>
<br>
I installed and manually configured postgresql.<br>
<br>
When I attempt to install spacewalk I get this error:<br>
<br>
&nbsp;yum install spacewalk-postgresql<br>
<br>
&nbsp;... many dependencies resolved ... etc ...<br>
<br>
&nbsp;Error: Package: spacewalk-postgresql-2.2.2-1.el6.noarch (spacewalk)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Requires: \
/usr/bin/psql<br> <br>
However there is clearly something there:<br>
<br>
[root ~]# ll /usr/bin/psql<br>
lrwxrwxrwx. 1 root root 28 Jul 21 12:35 /usr/bin/psql -&gt; \
/etc/alternatives/pgsql-psql <br>
<br>
[root ~]# ll /etc/alternatives/pgsql-psql <br>
lrwxrwxrwx. 1 root root 23 Jul 21 12:35 /etc/alternatives/pgsql-psql -&gt; \
/usr/pgsql-9.3/bin/psql <br>
<br>
[root ~]# ll /usr/pgsql-9.3/bin/psql <br>
-rwxr-xr-x. 1 root root 447560 Mar 18 03:19 /usr/pgsql-9.3/bin/psql<br>
<br>
What is this package expecting to find there? &nbsp;Is a symbolic link not good \
enough? &nbsp;Can I fake it out by copying over the real binary or changing the link \
to point directly to the binary instead of an intermediate link?<br> <br>
<br>
Robert Boyd<br>
Sr. Systems Engineer<br>
PeopleFluent<br>
p. 919-645-2972 | c. 919-306-4681<br>
e. <a href="mailto:Robert.Boyd@PeopleFluent.com">Robert.Boyd@PeopleFluent.com</a><br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
https://www.redhat.com/mailman/listinfo/spacewalk-list<br>
<br>
</blockquote>
</div>
<br>
</div>
</body>
</html>



_______________________________________________
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list
--===============6967172040758320805==--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic