Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

postgresql is blocking libpq - ????

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
32 posts
  • Previous
  • 1
  • 2
Author
Message
dopey
Apprentice
Apprentice
Posts: 235
Joined: Mon Feb 10, 2003 11:09 pm

  • Quote

Post by dopey » Mon Dec 18, 2006 6:26 am

This is a problem with the ebuild. If you look at the pkg_setup() function in the postgresql ebuild if {PG_DiR}/data/PG_VERSION exists, it checks the PG_VERSION file to see if you need to dump/restore the database.

There's also a check to see if postgresql was built with the pg-hier useflag. Due to the blocker, postgresql needs to be unmerged first. This prevents the built_with_use call from working because postgresql isn't actually installed.

Assuming you never used pg-hier useflag, you should be able to mv {PG_DIR}/data out of the way, emerge postgresql, then move the data dir back.
Top
cgmoller
n00b
n00b
Posts: 56
Joined: Thu Sep 21, 2006 8:16 am
Location: Boston, MA, USA

Emerge Postgres 8.0.9 fails after libpq update - solved

  • Quote

Post by cgmoller » Mon Dec 18, 2006 6:54 am

That did it.

I checked the ebuild and found the complete error message that emerge was not showing. It is in fact a problem with the data directory. I did a pg_dumpall, deleted the data directory and was able to re-emerge with no errors.
Now I just have to reload the databases.
Now that I think about it - I could have been smarter about that and just did a mv. :?
Top
cmulcahy
n00b
n00b
User avatar
Posts: 64
Joined: Tue Aug 03, 2004 2:51 pm
Location: Minneapolis, MN

  • Quote

Post by cmulcahy » Mon Dec 18, 2006 12:04 pm

I finally resolved my blocking issue. I stopped Postgresql, mv'ed the data directory, unmerged Postgresql and libpq. I then emerged libpq, emerged Postgresql and mv'ed my data directory back.

Frightening and more work than I would have expected from an upgrade but I had to get it back up and running. Autovacuum does not seem to be working now, though.
Having a non-smoking section in a restaraunt is as effective as having a non-peeing section in a pool.
Top
ElCondor
Guru
Guru
User avatar
Posts: 520
Joined: Wed Apr 10, 2002 6:49 am
Location: Vienna, Austria, Europe
Contact:
Contact ElCondor
Website

  • Quote

Post by ElCondor » Mon Dec 18, 2006 1:59 pm

I'm also stuck with the impossible emerge of postgresql-8.0.9-r1 ... this is NOT funny, I'm running into serious problems on this machine (luckily I tried on a devel-machine first ... )

* ElCondor postgresqless pasa *
Here I am the victim of my own choices and I'm just starting!
Top
dopey
Apprentice
Apprentice
Posts: 235
Joined: Mon Feb 10, 2003 11:09 pm

  • Quote

Post by dopey » Mon Dec 18, 2006 6:37 pm

fyi, if you use the -collision-protect or whatever that method is, you won't need to deal with mv'ing the data dir out of the way.
Top
mlybarger
Guru
Guru
User avatar
Posts: 482
Joined: Wed Sep 04, 2002 1:03 am

  • Quote

Post by mlybarger » Fri Dec 22, 2006 8:49 am

i'm getting the same problem here. arggghhh.
cmulcahy wrote:Greetings, all:

I'm trying to get by this error as well. I'm trying the -collision-protect and --nodeps ideas. It's still not working. It is like it is not acknowledging my options. Thoughts?

Thanks!

Code: Select all

gentoobox chris # FEATURES="-collision-protect" emerge --nodeps libpq
Calculating dependencies... done!

!!! Error: the >=dev-db/libpq-8.0.9 package conflicts with another package;
!!!        the two packages cannot be installed on the same system together.
!!!        Please use 'emerge --pretend' to determine blockers.

For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked

gentoobox chris # FEATURES="-collision-protect" emerge --nodeps libpq -p

These are the packages that would be merged, in order:

Calculating dependencies... done!
[blocks B     ] >=dev-db/libpq-8.0.9 (is blocking dev-db/postgresql-8.0.8)
[ebuild  N    ] dev-db/libpq-8.0.9  USE="nls pam readline ssl zlib -kerberos -pg-intdatetime -threads"
gentoobox chris #

Top
sunegn
n00b
n00b
User avatar
Posts: 7
Joined: Sat Sep 17, 2005 1:45 pm
Location: Snekkersten, DK

  • Quote

Post by sunegn » Mon Jan 08, 2007 4:59 pm

By mistake I accidently added an extra dash to -collision-protect:

Code: Select all

FEATURES="--collision-protect" emerge --nodeps libpq 
emerge postgresql
It seem to work like a charm. Can anyone else confirm this?
mark_lybarger wrote:i'm getting the same problem here. arggghhh.
cmulcahy wrote:Greetings, all:

I'm trying to get by this error as well. I'm trying the -collision-protect and --nodeps ideas. It's still not working. It is like it is not acknowledging my options. Thoughts?

Thanks!

Code: Select all

gentoobox chris # FEATURES="-collision-protect" emerge --nodeps libpq
Calculating dependencies... done!

!!! Error: the >=dev-db/libpq-8.0.9 package conflicts with another package;
!!!        the two packages cannot be installed on the same system together.
!!!        Please use 'emerge --pretend' to determine blockers.

For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked

gentoobox chris # FEATURES="-collision-protect" emerge --nodeps libpq -p

These are the packages that would be merged, in order:

Calculating dependencies... done!
[blocks B     ] >=dev-db/libpq-8.0.9 (is blocking dev-db/postgresql-8.0.8)
[ebuild  N    ] dev-db/libpq-8.0.9  USE="nls pam readline ssl zlib -kerberos -pg-intdatetime -threads"
gentoobox chris #

--
Sunegn
Top
Post Reply

32 posts
  • Previous
  • 1
  • 2

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic