Bug 894367 - Postgresql rpm build fails to build if selinux is disabled
Summary: Postgresql rpm build fails to build if selinux is disabled
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: postgresql
Version: 18
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Tom Lane
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-11 15:24 UTC by Nate Clark
Modified: 2013-02-17 03:29 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-02-11 04:53:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Update to spec so it only includes the contrib directory if selinux is enabled (395 bytes, patch)
2013-01-11 15:24 UTC, Nate Clark
no flags Details | Diff

Description Nate Clark 2013-01-11 15:24:33 UTC
Created attachment 676911 [details]
Update to spec so it only includes the contrib directory if selinux is enabled

Description of problem:
Postgresql rpm build fails when selinux is disabled because the contrib directory is not being created.

Version-Release number of selected component (if applicable):
9.2.2-1


How reproducible:
Always

Steps to Reproduce:
1. Build postgresql from the 9.2.2-1 source rpms with selinux dissabled
  
Actual results:
build fails with:
Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libcom_err.so.2()(64bit) libcrypt
o.so.10()(64bit) libecpg.so.6()(64bit) libgssapi_krb5.so.2()(64bit) libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit) libkrb5.so.3()(64bit) libkrb5.so.3(krb5_3_MIT)(64bit) libldap_r-2.4.so.2()(64bit) libm.so.6()
(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libpgtypes.so.3()(64bit) libpq.so.5()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libssl.so.10()(64bit) rtld(GNU_HASH)
Processing files: postgresql-server-9.2.2-1.fc17.x86_64
error: Directory not found: .../BUILDROOT/postgresql-9.2.2-1.fc17.x86_64/usr/share/pgsql/contrib


RPM build errors:
    Directory not found: .../BUILDROOT/postgresql-9.2.2-1.fc17.x86_64/usr/share/pgsql/contrib


Expected results:
Build succeeds

Additional info:

Comment 1 Tom Lane 2013-01-22 16:19:42 UTC
Hm ... actually the idea is that that directory should be there, and be owned by the postgresql-server RPM, whether or not anything is installed in it at the moment.  So the right fix is to add a mkdir command to make sure that the %install step creates it even if you've disabled all the modules that put files there.  I suppose that in principle the pgsql/extension subdirectory might have the same problem.

Comment 2 Fedora Update System 2013-02-07 16:49:08 UTC
postgresql-9.2.3-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/postgresql-9.2.3-1.fc18

Comment 3 Fedora Update System 2013-02-07 16:49:40 UTC
postgresql-9.1.8-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/postgresql-9.1.8-1.fc17

Comment 4 Fedora Update System 2013-02-08 16:57:05 UTC
Package postgresql-9.2.3-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing postgresql-9.2.3-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-2123/postgresql-9.2.3-1.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-02-11 04:53:30 UTC
postgresql-9.2.3-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2013-02-17 03:29:45 UTC
postgresql-9.1.8-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.