Re: PostgreSQL 7.2.1-2PGDG RPMs available for RedHat-skipjack
От | Warwick Hunter |
---|---|
Тема | Re: PostgreSQL 7.2.1-2PGDG RPMs available for RedHat-skipjack |
Дата | |
Msg-id | 3CBFAA66.7030906@oz.agile.tv обсуждение исходный текст |
Ответ на | PostgreSQL 7.2.1-2PGDG RPMs available for RedHat-skipjack 7.2.93 and RedHat 6.2/SPARC (Lamar Owen <lamar.owen@wgcr.org>) |
Список | pgsql-ports |
Lamar > RPMs for 7.2.1 are immediately available for download from > ftp://ftp.postgresql.org/pub/binary/v7.2.1/RPMS Is the attached message one of the patches that has yet to be applied? Without this patch the RPM needs some patching to get it to compile on a MIPS machine. make -C lmgr SUBSYS.o make[4]: Entering directory `/ws/whunter/dev/rpm/BUILD/postgresql-7.2.1/src/backend/storage/lmgr' [snip] gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include -I/usr/kerberos/include -c -o s_lock.o s_lock.c s_lock.c:170: warning: `tas_dummy' defined but not used /tmp/ccuQB808.s: Assembler messages: /tmp/ccuQB808.s:173: Error: opcode not supported on this processor: R3000 (MIPS1) `ll $14,0($4)' /tmp/ccuQB808.s:175: Error: opcode not supported on this processor: R3000 (MIPS1) `sc $15,0($4)' Warwick PS: forgive me if this is the wrong place to send this. -- Warwick Hunter Agile TV Corporation Voice: +61 7 5584 5912 Fax: +61 7 5575 9550 mailto:whunter@oz.agile.tv http://www.agile.tv -----Forwarded Message----- From: rmurray@debian.org To: 139003@bugs.debian.org Cc: control@bugs.debian.org Subject: Bug#139003: a little bit more is needed... Date: 27 Mar 2002 00:21:18 -0800 reopen 139003 thanks Looks like a small patch is needed as well to do the right thing on Linux. The patch enables the mips2 ISA for the ll/sc operations, and then restores it when done. The kernel/libc emulation code will take over on CPUs without ll/sc, and on CPUs with it, it'll use the operations provided by the CPU. Combined with the earlier fix (removing -mips2), postgresql builds again on mips and mipsel. The patch is against 7.2-7. diff -urN postgresql-7.2/src/backend/storage/lmgr/s_lock.c postgresql-7.2.fixed/src/backend/storage/lmgr/s_lock.c --- postgresql-7.2/src/backend/storage/lmgr/s_lock.c Mon Nov 5 18:46:28 2001 +++ postgresql-7.2.fixed/src/backend/storage/lmgr/s_lock.c Wed Mar 27 07:46:59 2002 @@ -173,9 +173,12 @@ .global tas \n\ tas: \n\ .frame $sp, 0, $31 \n\ + .set push \n\ + .set mips2 \n\n ll $14, 0($4) \n\ or $15, $14, 1 \n\ sc $15, 0($4) \n\ + .set pop \n\ beq $15, 0, fail\n\ bne $14, 0, fail\n\ li $2, 0 \n\
Вложения
В списке pgsql-ports по дате отправления: