Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Need help building pg_dumpfile
Date: Fri, 27 Oct 2006 19:42:01
Message-Id: 7573e9640610271237w627441d1l3d324aaedf2d977c@mail.gmail.com
In Reply to: Re: [gentoo-user] Need help building pg_dumpfile by Richard Broersma Jr
1 On 10/27/06, Richard Broersma Jr <rabroersma@×××××.com> wrote:
2 > > The source directory should point to...well...the package sources.
3 > > That is, wherever you extracted the sources to. Pointing them to
4 > > /usr/lib/postgresql is only valid if you extracted the sources there.
5 > > If you extracted them to your home directory for example, you would
6 > > point to the directory there. Most likely this will the same
7 > > directory where the Makefile is located.
8 >
9 > Richard, thanks for your reply. I believe that PGSQL must point to the postgresql source
10 > directory. I am not sure where these sources are since I used emerge to build PostgreSQL. I
11 > can't remember if emerge removes the sources when it completes its processing. Do you have any
12 > suggestions for me to find/re-add these directories?
13
14 Ah, yes, portage will remove postgresql sources after building. So
15 you'll need to re-create the sources. Probably the easiest thing to
16 do is:
17
18 # ebuild /usr/portage/dev-db/postgresql/postgresql-<version>.ebuild unpack
19
20 Then set the source directory to
21 /var/tmp/portage/dev-db/postgresql-<version>/work/postgresql-<version>
22
23 At least I think the above directory is right...basically you should
24 end up with the source directory under
25 /var/tmp/portage/cat-egory/package-version/work/
26
27 If for some reason pg_filedump needs compiled postgresql sources, you can do:
28
29 # ebuild /usr/portage/dev-db/postgresql/postgresql-<version> compile
30
31 This will let portage recompile postgresql the same way as it is
32 installed, so pg_filedump should be compatible.
33
34 Obviously replace all instances of <version> with the actual
35 postgresql version you have installed.
36
37 -Richard
38
39
40 >
41 > However, I did try your suggest by pointing the PGSQL to the source directory for pg_filedump:
42 > # PGSQL MUST POINT TO pgsql SOURCE DIRECTORY
43 > #PGSQL=../../../../postgres/pgsql
44 > PGSQL=/home/richard/work/pg_filedump-8.1
45 >
46 > However, I am still getting the same error as before:
47 > make
48 > make: *** No rule to make target
49 > `/home/richard/work/pg_filedump-8.1/src/backend/utils/hash/pg_crc.c', needed by `pg_crc.o'. Stop.
50 >
51 > Thanks for your reply.
52 >
53 > Regards,
54 >
55 > Richard Broersma Jr.
56 > --
57 > gentoo-user@g.o mailing list
58 >
59 >
60 --
61 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Need help building pg_dumpfile Richard Broersma Jr <rabroersma@×××××.com>