Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105954 - dev-libs/cryptlib to 3.2.3a (optional odbc support, gcc-4.x)
Summary: dev-libs/cryptlib to 3.2.3a (optional odbc support, gcc-4.x)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Highest normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords: Inclusion
: 148469 (view as bug list)
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2005-09-14 04:39 UTC by Daniel Plaza
Modified: 2006-10-22 06:51 UTC (History)
1 user (show)

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


Attachments
cryptlib 3.2.2 ebuild (cryptlib-3.2.2.ebuild,1.75 KB, application/octet-stream)
2005-09-14 04:41 UTC, Daniel Plaza
Details
The patch that the ebuild applies (cryptlib-odbc-support.patch,229 bytes, patch)
2005-09-14 04:41 UTC, Daniel Plaza
Details | Diff
Updated ebuild (cryptlib-3.2.2.ebuild,1.82 KB, application/octet-stream)
2005-11-02 03:10 UTC, Daniel Plaza
Details
dev-libs/cryptlib-3.2.3 ebuild (cryptlib-3.2.3.ebuild,1.83 KB, text/plain)
2006-07-10 07:42 UTC, Daniel Plaza
Details
cryptlib ebuild for 3.2.3a version (cryptlib-3.2.3a.ebuild,1.73 KB, text/plain)
2006-08-31 04:02 UTC, Daniel Plaza
Details
cryptlib-3.2.3a.ebuild (cryptlib-3.2.3a.ebuild,1.83 KB, text/plain)
2006-09-04 13:16 UTC, Daniel Black (RETIRED)
Details
Cryptlib 3.3 ebuild (cryptlib-3.3.ebuild,1.81 KB, text/plain)
2006-09-21 01:34 UTC, Daniel Plaza
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Plaza 2005-09-14 04:39:53 UTC
Cryptlib can use databases to store certificates, crls, ... . The easiest way
to do it is to use the odbc interface. I have changed the ebuild to add support
to the odbc inteface in linux using unixODBC (available in portage).

  The way to active odbc support is to add two "defines" in misc/config.h (it's
explained in the cryptlib manual). I have created a patch to add those defines
if odbc use flag (already defined in use.desc) is set, and I have added the
dev-db/unixODBC dependency.

I submmit the ebuild and the patch that the ebuild applies.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Daniel Plaza 2005-09-14 04:41:15 UTC
Created attachment 68451 [details]
cryptlib 3.2.2 ebuild

Ebuild for cryptlib 3.2.2 with odbc support
Comment 2 Daniel Plaza 2005-09-14 04:41:57 UTC
Created attachment 68452 [details, diff]
The patch that the ebuild applies
Comment 3 Daniel Plaza 2005-11-02 03:10:01 UTC
Created attachment 71915 [details]
Updated ebuild

New ebuild based in the new official ebuild in portage.

The patch is the same.
Comment 4 Daniel Black (RETIRED) gentoo-dev 2005-11-12 02:53:16 UTC
Daniel - FYI I'll need to fix these bugs too first. 
 
>>> Install cryptlib-3.2.2-r1 into /var/tmp/portage/cryptlib-3.2.2-r1/image/ 
category dev-libs 
man: 
making executable: /usr/lib/libcl.so.3.2.2 
 
QA Notice: the following files contain runtime text relocations 
 Text relocations require a lot of extra work to be preformed by the 
 dynamic linker which will cause serious performance impact on IA-32 
 and might not function properly on other architectures hppa for example. 
 If you are a programmer please take a closer look at this package and 
 consider writing a patch which addresses this problem. 
TEXTREL usr/lib/libcl.so.3.2.2 
 
 
QA Notice: the following files contain executable stacks 
 Files with executable stacks will not work properly (or at all!) 
 on some architectures/operating systems.  A bug should be filed 
 at http://bugs.gentoo.org/ to make sure the file is fixed. 
RWX --- --- usr/lib/libcl.so.3.2.2 
 
>>> Completed installing cryptlib-3.2.2-r1 
into /var/tmp/portage/cryptlib-3.2.2-r1/image/ 
 
Comment 5 Daniel Plaza 2006-05-24 02:43:44 UTC
(In reply to comment #4)

  Text relocations problem is solved in the latest snapshot of cryptlib. So next upstream stable release won't have text relocations.

  About executable stacks, I've installed cryptlib in x86 and amd64 and I don't get the error neither.


Comment 6 Daniel Plaza 2006-07-10 07:42:59 UTC
Created attachment 91365 [details]
dev-libs/cryptlib-3.2.3 ebuild
Comment 7 Daniel Plaza 2006-07-10 07:44:32 UTC
  Cryptlib 3.2.3 is out. See attached ebuild for cryptlib 3.2.3 with odbc support. This version doesn't have text relocations.
Comment 8 Daniel Plaza 2006-08-29 08:46:39 UTC
Comment on attachment 68452 [details, diff]
The patch that the ebuild applies

This path is not needed with cryptlib-3.2.3a
Comment 9 Daniel Plaza 2006-08-29 08:50:58 UTC
Version 3.2.3a is out.
Comment 10 Daniel Plaza 2006-08-31 04:02:12 UTC
Created attachment 95549 [details]
cryptlib ebuild for 3.2.3a version

Ebuild for last version (based on cryptlib-3.2.2.ebuild in portage) with odbc support.
Comment 11 Daniel Ceregatti 2006-09-04 11:08:36 UTC
This needs to get pushed out ASAP, as all versions of cryptlib currently in portage fail to compile with gcc 4.1.1. 3.2.3a compiles and works.
Comment 12 Daniel Black (RETIRED) gentoo-dev 2006-09-04 13:15:34 UTC
I'm thinking this product needs a bit more work.

Have you got time to look into solutions for these problems.
http://www.gentoo.org/proj/en/hardened/pic-fix-guide.xml
http://www.gentoo.org/proj/en/hardened/gnu-stack.xml

there are a few more references on the bottom of http://www.gentoo.org/proj/en/hardened/

QA Notice: the following shared libraries lack a SONAME
 /var/tmp/portage/cryptlib-3.2.3a/image/usr/lib/libcl.so.3.2.3


QA Notice: the following files contain runtime text relocations
 Text relocations force the dynamic linker to perform extra
 work at startup, waste system resources, and may pose a security
 risk.  On some architectures, the code may not even function
 properly, if at all.
 For more information, see http://hardened.gentoo.org/pic-fix-guide.xml
 Please include this file in your report:
 /var/tmp/portage/cryptlib-3.2.3a/temp/scanelf-textrel.log
TEXTREL usr/lib/libcl.so.3.2.3


QA Notice: the following files contain executable stacks
 Files with executable stacks will not work properly (or at all!)
 on some architectures/operating systems.  A bug should be filed
 at http://bugs.gentoo.org/ to make sure the file is fixed.
 For more information, see http://hardened.gentoo.org/gnu-stack.xml
 Please include this file in your report:
 /var/tmp/portage/cryptlib-3.2.3a/temp/scanelf-execstack.log
RWX --- --- usr/lib/libcl.so.3.2.3


!!! ERROR: dev-libs/cryptlib-3.2.3a failed.
Comment 13 Daniel Black (RETIRED) gentoo-dev 2006-09-04 13:16:34 UTC
Created attachment 96004 [details]
cryptlib-3.2.3a.ebuild

fixes minor stuff
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2006-09-21 01:22:08 UTC
The file doesn't exist anywhere:

<snip>
>>> Downloading 'http://www.cypherpunks.to/~peter/cl323a.zip'
--10:19:27--  http://www.cypherpunks.to/~peter/cl323a.zip
           => `/usr/portage/distfiles/cl323a.zip'
Resolving www.cypherpunks.to... 82.94.251.194, 2001:888:2133:0:b7:a9:69:b8
Connecting to www.cypherpunks.to|82.94.251.194|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
10:19:27 ERROR 404: Not Found.
</snip>
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2006-09-21 01:34:04 UTC
*** Bug 148469 has been marked as a duplicate of this bug. ***
Comment 16 Daniel Plaza 2006-09-21 01:34:06 UTC
Created attachment 97615 [details]
Cryptlib 3.3 ebuild

  New ebuild for version 3.3. Compile and works fine but still have QA problems.
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2006-09-21 01:36:15 UTC
OK, 3.2.3 at least compiles w/ gcc-4.1.1. In addition to Comment #12, I also get 

QA Notice: pre-stripped files found:
/var/tmp/portage/cryptlib-3.2.3/image/usr/lib/libcl.so.3.2.3

Well, at least it compiles, someone should stick it into the tree. No idea where 3.2.3a grows.
Comment 18 Daniel Plaza 2006-09-21 01:50:42 UTC
(In reply to comment #17)

 Library is automagically striped in makefile. Should be added RESTRICT="nostrip" in ebuild?

Comment 19 Jakub Moc (RETIRED) gentoo-dev 2006-10-22 05:25:28 UTC
# pquery --raw --revdep dev-libs/cryptlib
dev-python/cryptlib_py-3.2.2

dev-python/cryptlib_py is one of 3 || ( ) deps for dev-python/tlslite so we can live without it just fine. So, crypto folks, unless this can be fixed, I'd suggest sending this thing to treecleaners, been sitting here for over a year (and while the new versions compile, they have many QA issues).



Comment 20 Alon Bar-Lev (RETIRED) gentoo-dev 2006-10-22 06:51:39 UTC
This was next in my list :)
Version bump to 3.3 was committed.

I've removed assembly parts, and added some minor modifications.
So it will run slow, but run.

If someone thinks that without the assembly part this package is useless, reopen and reassign to treecleaner.