This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: OpenBSD updates for build process
Type: Stage:
Components: Build Versions:
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: loewis, mattbehrens
Priority: normal Keywords: patch

Created on 2002-05-11 00:20 by mattbehrens, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
openbsd_2_1.patch mattbehrens, 2002-05-11 00:20 OpenBSD patches for Python 2.1
Messages (8)
msg39975 - (view) Author: Matt Behrens (mattbehrens) Date: 2002-05-11 00:20
The following patches are currently in our packaging 
system.  A brief summary:

- Use 'cc -shared' to build shared libraries, as is 
strictly correct on OpenBSD.

- Use -fPIC instead of -fpic.

- Use OpenBSD threads.

- Fix the test_fcntl test.

Another patch item will be posted shortly for Python 
2.2, for similar items.
msg39976 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-05-12 16:49
Logged In: YES 
user_id=21627

The -shared chunk looks frightening. What is the first BSD
release where ld -Bshareable stops working? Could you
rearrange this to integrate the version numbers into the
OpenBSD* match? Also, what releases need the ELF test? Could
that be restricted to the older releases, too?

Would it be acceptable to stop supporting OpenBSD 0 and 1?

Is usage of -fPIC correct on OpenBSD 0.x? If not, what is
the first release that supports -fPIC?

It looks like that 'OpenBSD threads' are 'POSIX threads'?
Why does the existing test for Posix threads fail to detect
their presence?
msg39977 - (view) Author: Matt Behrens (mattbehrens) Date: 2002-05-20 12:17
Logged In: YES 
user_id=240525

Okay, well let's comment in this bug then.  Changing the
subject and closing out 554719.  I'll put all patches on
this bug.

I am trying to verify most of this with brad@openbsd.org,
who has contributed some parts of these patches.

On cc -shared, this is my understanding:

-  All OpenBSD ELF architectures have always used cc -shared.

-  Before OpenBSD 2.8, a.out architectures used ld -Bshareable.

-  As of OpenBSD 2.8, cc -shared worked on a.out
architectures as well, and ld -Bshareable became deprecated.
On -fPIC: -fPIC has always worked.  The difference between
-fpic and -fPIC is simply that -fpic is less efficient.

On threads, I am still waiting for an answer from brad@,
this is his change.  I'll ask him again today.

Thanks.
msg39978 - (view) Author: Matt Behrens (mattbehrens) Date: 2002-05-20 22:47
Logged In: YES 
user_id=240525

From brad@:

> There isn't a test for -pthread option so Python will not
correctly
> compile with threads support. Testing for libc_r is NOT
correct.

So, the answer is no, the standard POSIX threads test does
not work.
msg39979 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-05-21 09:25
Logged In: YES 
user_id=21627

What architectures have been using ELF before OpenBSD 2.8?
I'd still like to simplify this logic, perhaps by removing
support for systems that nobody uses anymore.

As for -pthread: the test for OpenBSD specifically should
go. Instead, I propose to integrate this with the -Kpthread
logic: there should be a sequence of options tested, and the
first one shown to enable pthreads should be used. The set
of options should be -Kpthread (for SysV), -pthread (for BSD
and Linux), -pthreads (for gcc on Solaris).

I'd be willing to accept a test-for-system for 2.1, since it
does not have the -Kpthread test, but for 2.2 and 2.3, we
should remove the set of tests used.

Also, why does it AC_DEFINE _REENTRANT and _POSIX_THREADS?
Those two should be implied by -pthread.

Also, what OpenBSD releases could be deprecated without
losing users?
msg39980 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-07-28 10:03
Logged In: YES 
user_id=21627

Are you still interested in this patch? If so, what are the
answers to these questions?
msg39981 - (view) Author: Matt Behrens (mattbehrens) Date: 2002-09-11 13:35
Logged In: YES 
user_id=240525

I am no longer involved in OpenBSD.  Chris Humphries took
over the Python ports, he is reachable at
<chumphries@drauku.net>.  I let him know about these patches
in early July.
msg39982 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-09-11 16:03
Logged In: YES 
user_id=21627

Ok, closing this patch. If Chris Humphries shows any
interest, we can reopen it, or he can submit a new patch.
History
Date User Action Args
2022-04-10 16:05:18adminsetgithub: 36586
2002-05-11 00:20:16mattbehrenscreate