Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 849210 Details for
Bug 1052063
revamp postgresql-setup a little
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
move script generation to proper place
0004-spec-move-script-generation-to-proper-place.patch (text/plain), 3.18 KB, created by
Pavel Raiskup
on 2014-01-13 09:10:24 UTC
(
hide
)
Description:
move script generation to proper place
Filename:
MIME Type:
Creator:
Pavel Raiskup
Created:
2014-01-13 09:10:24 UTC
Size:
3.18 KB
patch
obsolete
>From 44cd816532a7bb51f9bd957793b851f5a593ea6c Mon Sep 17 00:00:00 2001 >From: Pavel Raiskup <praiskup@redhat.com> >Date: Thu, 9 Jan 2014 19:05:15 +0100 >Subject: [PATCH 4/5] spec: move script generation to proper place > >Generate postgresql-setup and postgresql-check-db-dir in %prep >rather then in %install. It is (a) better place and (b) it speeds >up its testing ('rpmbuild -bp *.spec' is able to generate them). > >Version: 9.3.2-4 >--- > postgresql.spec | 30 +++++++++++++++++------------- > 1 file changed, 17 insertions(+), 13 deletions(-) > >diff --git a/postgresql.spec b/postgresql.spec >index e1e21e7..6f4c83c 100644 >--- a/postgresql.spec >+++ b/postgresql.spec >@@ -359,6 +359,22 @@ cp -p config/config.sub postgresql-%{prevversion}/config/config.sub > # remove .gitignore files to ensure none get into the RPMs (bug #642210) > find . -type f -name .gitignore | xargs rm > >+# prep the setup script, including insertion of some values it needs >+sed -e 's|^PGVERSION=.*$|PGVERSION=%{version}|' \ >+ -e 's|^PGENGINE=.*$|PGENGINE=%{_bindir}|' \ >+ -e 's|^PREVMAJORVERSION=.*$|PREVMAJORVERSION=%{prevmajorversion}|' \ >+ -e 's|^PREVPGENGINE=.*$|PREVPGENGINE=%{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin|' \ >+ -e 's|^README_RPM_DIST=.*$|README_RPM_DIST=%{_pkgdocdir}/%(basename %{SOURCE8})|' \ >+ <%{SOURCE9} >postgresql-setup >+touch -r %{SOURCE9} postgresql-setup >+ >+# prep the startup check script, including insertion of some values it needs >+sed -e 's|^PGVERSION=.*$|PGVERSION=%{version}|' \ >+ -e 's|^PREVMAJORVERSION=.*$|PREVMAJORVERSION=%{prevmajorversion}|' \ >+ -e 's|^PGDOCDIR=.*$|PGDOCDIR=%{_pkgdocdir}|' \ >+ <%{SOURCE4} >postgresql-check-db-dir >+touch -r %{SOURCE4} postgresql-check-db-dir >+ > %build > > # fail quickly and obviously if user tries to build as root >@@ -617,21 +633,8 @@ esac > install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/pgsql/tutorial > cp -p src/tutorial/* $RPM_BUILD_ROOT%{_libdir}/pgsql/tutorial > >-# prep the setup script, including insertion of some values it needs >-sed -e 's|^PGVERSION=.*$|PGVERSION=%{version}|' \ >- -e 's|^PGENGINE=.*$|PGENGINE=%{_bindir}|' \ >- -e 's|^PREVMAJORVERSION=.*$|PREVMAJORVERSION=%{prevmajorversion}|' \ >- -e 's|^PREVPGENGINE=.*$|PREVPGENGINE=%{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin|' \ >- <%{SOURCE9} >postgresql-setup >-touch -r %{SOURCE9} postgresql-setup > install -m 755 postgresql-setup $RPM_BUILD_ROOT%{_bindir}/postgresql-setup > >-# prep the startup check script, including insertion of some values it needs >-sed -e 's|^PGVERSION=.*$|PGVERSION=%{version}|' \ >- -e 's|^PREVMAJORVERSION=.*$|PREVMAJORVERSION=%{prevmajorversion}|' \ >- -e 's|^PGDOCDIR=.*$|PGDOCDIR=%{_pkgdocdir}|' \ >- <%{SOURCE4} >postgresql-check-db-dir >-touch -r %{SOURCE4} postgresql-check-db-dir > install -m 755 postgresql-check-db-dir $RPM_BUILD_ROOT%{_bindir}/postgresql-check-db-dir > > install -d $RPM_BUILD_ROOT%{_unitdir} >@@ -1127,6 +1130,7 @@ fi > - postgresql-setup(upgrade): don't stop old server when it can not be started > - postgresql-setup(initdb, upgrade): add $PGSETUP_INITDB_OPTIONS > - postgresql-setup: do not pretend 'sh' compatibility >+- move script generation to proper place > > * Fri Jan 10 2014 Pavel Raiskup <praiskup@redhat.com> - 9.3.2-3 > - build with -O3 on ppc64 (private #1051075) >-- >1.8.4.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1052063
:
849207
|
849208
|
849209
| 849210 |
849211