Re: Version of OpenSSl ?

2025-02-10 Thread Grant Edwards via Python-list
On 2025-02-09, Left Right via Python-list  wrote:

> You need the sources of the OpenSSL library, not the compiled library.
> On Ubuntu, the packages with sources are typically named xxx-dev where
> xxx is the package that provides the library. I don't have a Ubuntu
> currently, but try looking for something like openssl-dev or
> libopenssl-dev etc.

Do the -dev packages on Ubuntu really contain the sources for
the libraries?

I knew they contained the static libraries and the include files
required to build against the libraries, but I didn't think they
contained the library sources.

--
Grant

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Version of OpenSSl ?

2025-02-10 Thread Chris Angelico via Python-list
On Tue, 11 Feb 2025 at 04:04, Grant Edwards via Python-list
 wrote:
>
> On 2025-02-09, Left Right via Python-list  wrote:
>
> > You need the sources of the OpenSSL library, not the compiled library.
> > On Ubuntu, the packages with sources are typically named xxx-dev where
> > xxx is the package that provides the library. I don't have a Ubuntu
> > currently, but try looking for something like openssl-dev or
> > libopenssl-dev etc.
>
> Do the -dev packages on Ubuntu really contain the sources for
> the libraries?

No they don't, and Mr "Left Right" is talking out his, uhh, "Back". :)

> I knew they contained the static libraries and the include files
> required to build against the libraries, but I didn't think they
> contained the library sources.

They contain everything you need to link to the library. That usually
means headers and libraries, and also pkgconfig files to point to
their locations, plus anything else you might need. But no sources.
That's the job of source archives.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Version of OpenSSl ?

2025-02-10 Thread Grant Edwards via Python-list
On 2025-02-10, Chris Angelico via Python-list  wrote:
> On Tue, 11 Feb 2025 at 04:04, Grant Edwards via Python-list 
>  wrote:
>> On 2025-02-09, Left Right via Python-list  wrote:
>>
>>> You need the sources of the OpenSSL library, not the compiled library.
>>> On Ubuntu, the packages with sources are typically named xxx-dev [...]
>>
>> Do the -dev packages on Ubuntu really contain the sources for
>> the libraries?
>
> No they don't, and Mr "Left Right" is talking out his, uhh, "Back". :)
>
>> I knew they contained the static libraries and the include files
>> required to build against the libraries, but I didn't think they
>> contained the library sources.
>
> They contain everything you need to link to the library. That
> usually means headers and libraries, and also pkgconfig files to
> point to their locations, plus anything else you might need. But no
> sources. That's the job of source archives.

Yep, I got curious and ssh'ed into one of the Ubuntu server machines I
maintain and looked at the files installed by some of the -dev
packages.  [Those machines aren't used for development so didn't have
many of them.]

The -dev packages also contain the man pages for the libraries. It
surprised me at first that the man pages weren't installed by the
"normal" lib packages. But, if you're not writing/building apps that
link with library X, you don't need the man pages for library X.

--
Grant

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Version of OpenSSl ?

2025-02-10 Thread Chris Angelico via Python-list
On Tue, 11 Feb 2025 at 05:56, Grant Edwards via Python-list
 wrote:
> The -dev packages also contain the man pages for the libraries. It
> surprised me at first that the man pages weren't installed by the
> "normal" lib packages. But, if you're not writing/building apps that
> link with library X, you don't need the man pages for library X.
>

Exactly, yeah. You may find though that there are some files installed
by both  such as license files.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list