Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[COOK-4095] remove explicit ref to libpq-dev package #99

Merged
merged 1 commit into from
Apr 29, 2014

Conversation

javornikolov
Copy link
Contributor

This is to address https://tickets.opscode.com/browse/COOK-4095 - explicit reference of libpq-dev in postgresql::ruby is aborting the recipe execution.

There is no libpq-dev package on RedHat 6 (maybe other versions too). There is already code which installs client packages - this is supposed to be the way to deal with installing postgresql devel packages.

  • The explicit reference to libpq-dev has been removed
  • Tested and works fine on CentOS 6.3, chef 11.8.2 where pq devel is configured (in my case in Vagrant file) as:
        "client" => {
          "packages" => ["postgresql92", "postgresql92-devel"]
        }

There is no libpq-dev package on RedHat 6 (maybe other versions too).

There is already code which installs client packages - this is supposed
to deal with installing postgresql devel packages.
@javornikolov
Copy link
Contributor Author

Now I can see there was another PR (#96) which attempts to address the same problem. However it tries to keep the old behaviour unchanged for ubuntu and debian - this seems brittle too.

There is a configuration with default attributes - it already includes libpq-dev as default for the relevant platforms.

If we want a more convenient configuration: maybe makes sense to have a separate [devel][packages] configuration in addition to client and server.

@jeremyolliver
Copy link

👍 to this, I've been following the PR's where it got added (#88), and I suggested this exact change, to remove this block then, but it wasn't before it got merged.

@javornikolov
Copy link
Contributor Author

I rebased that branch to fix my e-mail.

@jeremyolliver
Copy link

Bump.

Has this PR been reviewed or considered by a maintainer yet? As I mentioned before, I'd been following the issues around this, and definitely agree this is the change that should be made to fix the existing situation of being currently broken on all platforms other than debian/ubuntu

@javornikolov
Copy link
Contributor Author

About a week ago the jira ticket has been updated changing status to reviewed: Status: Fix Reviewed (was: Fix Provided). I'm not sure what that means, seems it takes some time before having something accepted here.

@szechyjs
Copy link

please merge this already!

@jarosser06
Copy link

Can we get this merged?

@bflad
Copy link

bflad commented Mar 31, 2014

What else needs to happen to get this merged? How can we help? Thanks.

@jeremyolliver
Copy link

Ping @fnichol @portertech who's the right person to take a look at this? This relatively simple PR has been waiting to get merged for a while, and without it this cookbook is broken on all non-debian platforms. I'm happy to talk to someone through to help grok the changes if need be.

@eanrollings
Copy link

selfishly +1'ing this to keep track on when this gets merged in :)

@dje dje added yes and removed yes labels Apr 21, 2014
@dje
Copy link

dje commented Apr 22, 2014

This has been merged into https://github.com/hw-cookbooks/postgresql/tree/develop. We'll add some minimal testing around this branch and hopefully generate a new release within a week. Thank you.

@dje dje merged commit f4c96ef into sous-chefs:master Apr 29, 2014
@dje dje removed the yes label Apr 29, 2014
@javornikolov
Copy link
Contributor Author

Thanks!

michaelkirk added a commit to jackpine/postgresql that referenced this pull request Jun 8, 2014
FIXES sous-chefs#114

To recap
--------

This package was originally added as a mis-fix because someone inadvertently
clobbered their client packages.

sous-chefs#88

Apart from being "the wrong way" to fix the problem, it also resulted in
breaking centos/redhat. CentOS was fixed by wrapping in an "if debian?" here:

https://github.com/hw-cookbooks/postgresql/pull/96/files

But really it never should have been added, per @jeremyolliver

sous-chefs#96 (comment)

This block was to be removed in sous-chefs#99

But somehow this code is still [in
develop](https://github.com/hw-cookbooks/postgresql/blob/develop/recipes/ruby.rb#L57).

It looks like sous-chefs#99 targeted a different base branch than sous-chefs#96, so perhaps there was a botched merge.

Phew!
@lock
Copy link

lock bot commented Jul 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants