- Notifications
You must be signed in to change notification settings - Fork28
Commitd2ab117
committed
Fix cross-shlib linking in temporary installs on HPUX 10.
Turns out this has been broken for years and we'd not noticed. The onecase that was getting exercised in the buildfarm, or probably anywhereelse, was postgres_fdw.sl's reference to libpq.sl; and it turns out thatthat was always going to libpq.sl in the actual installation directorynot the temporary install. We'd not noticed because the buildfarm scriptdoes "make install" before it tests contrib. However, the recent additionof a logical-replication test to the core regression scripts resulted intrying to use libpqwalreceiver.sl before "make install" happens, and thatfailed for lack of finding libpq.sl, as shown by failures on buildfarmmembers gaur and pademelon.There are two changes needed to fix it: the magic environment variable tospecify shlib search path at runtime is SHLIB_PATH not LD_LIBRARY_PATH,and the shlib link command needs to specify the +s switch else the librarywill not honor SHLIB_PATH.I'm not quite sure why buildfarm members anole and gharial (HPUX 11) didn'tshow the same failure. Consulting man pages on the web says that HPUX 11honors both LD_LIBRARY_PATH and SHLIB_PATH, which would explain half of it,and the rather confusing wording I've been able to find suggests that +smight effectively be the default in HPUX 11. But it seems at least aslikely that there's just a libpq.so installed in /usr/lib on that machine;as long as it's not too ancient, that would satisfy the test. In any caseI do not think this patch will break HPUX 11.At the moment I don't see a need to back-patch this, since it only mattersfor testing purposes, not to mention that HPUX 10 is probably dead in thereal world anyway.1 parentf21a563 commitd2ab117
3 files changed
+4
-2
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
344 | 344 |
| |
345 | 345 |
| |
346 | 346 |
| |
347 |
| - | |
| 347 | + | |
348 | 348 |
| |
349 | 349 |
| |
350 | 350 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
193 | 193 |
| |
194 | 194 |
| |
195 | 195 |
| |
196 |
| - | |
| 196 | + | |
197 | 197 |
| |
198 | 198 |
| |
199 | 199 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
| 86 | + | |
| 87 | + | |
86 | 88 |
| |
87 | 89 |
| |
88 | 90 |
| |
|
0 commit comments
Comments
(0)