Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176743 - postgresql-8.2.4 postgresql-8.2.4-no-test.patch fails if USE=-test
Summary: postgresql-8.2.4 postgresql-8.2.4-no-test.patch fails if USE=-test
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-02 00:11 UTC by Christer Ekholm
Modified: 2007-09-23 00:24 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Dont apply no-test.patch (postgresql.patch,363 bytes, patch)
2007-05-02 00:37 UTC, Christer Ekholm
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christer Ekholm 2007-05-02 00:11:11 UTC
I did this:

  02:03:36 poke:~ $sudo emerge -1av postgresql
  
  These are the packages that would be merged, in order:
  
  Calculating dependencies... done!
  [ebuild     U ] dev-db/postgresql-8.2.4 [8.1.8] USE="kerberos nls perl python readline ssl xml zlib -doc -pam -pg-intdatetime (-selinux) -tcl -test" 0 kB 
  
  Total: 1 package (1 upgrade), Size of downloads: 0 kB
  
  Would you like to merge these packages? [Yes/No] 
  >>> Verifying ebuild Manifests...
  
  >>> Emerging (1 of 1) dev-db/postgresql-8.2.4 to /
   * postgresql-base-8.2.4.tar.bz2 RMD160 ;-) ...                                                                                                                                [ ok ]
   * postgresql-base-8.2.4.tar.bz2 SHA1 ;-) ...                                                                                                                                  [ ok ]
   * postgresql-base-8.2.4.tar.bz2 SHA256 ;-) ...                                                                                                                                [ ok ]
   * postgresql-base-8.2.4.tar.bz2 size ;-) ...                                                                                                                                  [ ok ]
   * postgresql-opt-8.2.4.tar.bz2 RMD160 ;-) ...                                                                                                                                 [ ok ]
   * postgresql-opt-8.2.4.tar.bz2 SHA1 ;-) ...                                                                                                                                   [ ok ]
   * postgresql-opt-8.2.4.tar.bz2 SHA256 ;-) ...                                                                                                                                 [ ok ]
   * postgresql-opt-8.2.4.tar.bz2 size ;-) ...                                                                                                                                   [ ok ]
   * checking ebuild checksums ;-) ...                                                                                                                                           [ ok ]
   * checking auxfile checksums ;-) ...                                                                                                                                          [ ok ]
   * checking miscfile checksums ;-) ...                                                                                                                                         [ ok ]
   * checking postgresql-base-8.2.4.tar.bz2 ;-) ...                                                                                                                              [ ok ]
   * checking postgresql-opt-8.2.4.tar.bz2 ;-) ...                                                                                                                               [ ok ]
  >>> Unpacking source...
  >>> Unpacking postgresql-base-8.2.4.tar.bz2 to /var/tmp/portage/dev-db/postgresql-8.2.4/work
  >>> Unpacking postgresql-opt-8.2.4.tar.bz2 to /var/tmp/portage/dev-db/postgresql-8.2.4/work
   * Applying postgresql-8.2.4-gentoo.patch ...
    [ ok ]
   * Applying postgresql-8.2.4-sh.patch ...
    [ ok ]
   * Applying postgresql-8.2.4-no-test.patch ...
  
   * Failed Patch: postgresql-8.2.4-no-test.patch !
   *  ( /usr/portage/dev-db/postgresql/files/postgresql-8.2.4-no-test.patch )
   * 
   * Include in your bugreport the contents of:
   * 
   *   /var/tmp/portage/dev-db/postgresql-8.2.4/temp/postgresql-8.2.4-no-test.patch-2023.out
  
  
  !!! ERROR: dev-db/postgresql-8.2.4 failed.
  Call stack:
    ebuild.sh, line 1614:   Called dyn_unpack
    ebuild.sh, line 751:   Called qa_call 'src_unpack'
    ebuild.sh, line 44:   Called src_unpack
    postgresql-8.2.4.ebuild, line 82:   Called epatch '/usr/portage/dev-db/postgresql/files/postgresql-8.2.4-no-test.patch'
    eutils.eclass, line 341:   Called die
  
  !!! Failed Patch: postgresql-8.2.4-no-test.patch!
  !!! If you need support, post the topmost build error, and the call stack if relevant.
  !!! A complete build log is located at '/var/tmp/portage/dev-db/postgresql-8.2.4/temp/build.log'.


And postgresql-8.2.4-no-test.patch-2023.out contains the following information.

PATCH COMMAND:	 patch -p1 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-db/postgresql/files/postgresql-8.2.4-no-test.patch

==========================================
patching file src/Makefile
Hunk #1 FAILED at 22.
1 out of 1 hunk FAILED -- saving rejects to file src/Makefile.rej
==========================================


I think the problem is that the patch postgresql-8.2.4-no-test.patch is trying to remove a line already removed by postgresql-8.2.4-gentoo.patch
Comment 1 Christer Ekholm 2007-05-02 00:37:21 UTC
Created attachment 117914 [details, diff]
Dont apply no-test.patch

I made this change to a overlay-ebuild, and managed to build. But I also had to copy postgresql.init-8.1 to postgresql.init-8.2 and postgresql.conf-8.1 postgresql.conf-8.2
Comment 2 Konstantin Arkhipov (RETIRED) gentoo-dev 2007-05-02 08:53:32 UTC
fixed in 8.2.4-r1,
thanks for reporting.