Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366621 - dev-db/postgresql-server-9.0.4 fails to compile with "lvalue required" w/ Perl 5.14.0
Summary: dev-db/postgresql-server-9.0.4 fails to compile with "lvalue required" w/ Per...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
: 376655 (view as bug list)
Depends on:
Blocks: perl-5.14.0
  Show dependency tree
 
Reported: 2011-05-09 16:47 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2011-09-26 19:43 UTC (History)
1 user (show)

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


Attachments
Output log for postgresql-server-9.0.4 (postgresql-server-9.0.4.out,435.04 KB, text/plain)
2011-05-09 16:47 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details
9.0.4 perl 5.14.0 patch. (0001-GvCV_set-patch-from-http-archives.postgresql.org-pgs.patch,1.43 KB, patch)
2011-05-11 07:48 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2011-05-09 16:47:59 UTC
Created attachment 272639 [details]
Output log for postgresql-server-9.0.4

"/usr/bin/perl" ./text2macro.pl --strip='^(\#.*|\s*)$' plc_perlboot.pl plc_trusted.pl > perlchunks.h
"/usr/bin/perl" plperl_opmask.pl plperl_opmask.h
x86_64-pc-linux-gnu-gcc -march=native -mtune=native -O2 -pipe --param l2-cache-size=3040 -mfpmath=sse -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msahf -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../src/include -fpic -I. -I. -I../../../src/include -march=native -mtune=native -O2 -pipe --param l2-cache-size=3040 -mfpmath=sse -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msahf -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/postgresql-9.0/ -I/usr/lib64/perl5/5.14.0/x86_64-linux-thread-multi/CORE  -c -o plperl.o plperl.c -MMD -MP -MF .deps/plperl.Po
plperl.c: In function 'plperl_trusted_init':
plperl.c:877:3: error: lvalue required as left operand of assignment


Miscellaneous --info/perl -V data available here: https://gist.github.com/7d6756b1656ac2203c50
Comment 1 Aaron W. Swenson gentoo-dev 2011-05-09 18:17:35 UTC
Upstream has a very nice fix for this.

http://archives.postgresql.org/pgsql-hackers/2011-04/msg01283.php
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2011-05-11 07:48:36 UTC
Created attachment 272831 [details, diff]
9.0.4 perl 5.14.0 patch.

I've mangled the upstream patch into one vs our current 9.0.4 build and it permits compilation w/ 5.14.0

http://git.overlays.gentoo.org/gitweb/?p=proj/perl-overlay.git;a=blob;f=dev-db/postgresql-server/files/9.0.4/0001-GvCV_set-patch-from-http-archives.postgresql.org-pgs.patch;hb=perl514

For the lazy, there is also a -r1 ebuild on the perl514 branch of the perl-experimental overlay which builds for me.

http://git.overlays.gentoo.org/gitweb/?p=proj/perl-overlay.git;a=blob;f=dev-db/postgresql-server/postgresql-server-9.0.4-r1.ebuild;hb=perl514
Comment 3 Aaron W. Swenson gentoo-dev 2011-07-27 22:40:10 UTC
*** Bug 376655 has been marked as a duplicate of this bug. ***
Comment 4 Markus Ullmann (RETIRED) gentoo-dev 2011-09-21 18:14:35 UTC
Any reason to not merge it to ~arch?
Comment 5 Aaron W. Swenson gentoo-dev 2011-09-26 19:43:48 UTC
Fixed with today's security bump(bug 384539).