Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 105954
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Crypto team <crypto@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Daniel Plaza <daniel.plaza.espi@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
cryptlib-3.2.2.ebuild cryptlib 3.2.2 ebuild application/octet-stream Daniel Plaza 2005-09-14 04:41 0000 1.75 KB Details
cryptlib-odbc-support.patch The patch that the ebuild applies patch Daniel Plaza 2005-09-14 04:41 0000 229 bytes Details | Diff
cryptlib-3.2.2.ebuild Updated ebuild application/octet-stream Daniel Plaza 2005-11-02 03:10 0000 1.82 KB Details
cryptlib-3.2.3.ebuild dev-libs/cryptlib-3.2.3 ebuild text/plain Daniel Plaza 2006-07-10 07:42 0000 1.83 KB Details
cryptlib-3.2.3a.ebuild cryptlib ebuild for 3.2.3a version text/plain Daniel Plaza 2006-08-31 04:02 0000 1.73 KB Details
cryptlib-3.2.3a.ebuild cryptlib-3.2.3a.ebuild text/plain Daniel Black 2006-09-04 13:16 0000 1.83 KB Details
cryptlib-3.3.ebuild Cryptlib 3.3 ebuild text/plain Daniel Plaza 2006-09-21 01:34 0000 1.81 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 105954 depends on: Show dependency tree
Bug 105954 blocks: 117482
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-09-14 04:39 0000
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 From Daniel Plaza 2005-09-14 04:41:15 0000 -------
Created an attachment (id=68451) [details]
cryptlib 3.2.2 ebuild

Ebuild for cryptlib 3.2.2 with odbc support

------- Comment #2 From Daniel Plaza 2005-09-14 04:41:57 0000 -------
Created an attachment (id=68452) [details]
The patch that the ebuild applies

------- Comment #3 From Daniel Plaza 2005-11-02 03:10:01 0000 -------
Created an attachment (id=71915) [details]
Updated ebuild

New ebuild based in the new official ebuild in portage.

The patch is the same.

------- Comment #4 From Daniel Black 2005-11-12 02:53:16 0000 -------
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 From Daniel Plaza 2006-05-24 02:43:44 0000 -------
(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 From Daniel Plaza 2006-07-10 07:42:59 0000 -------
Created an attachment (id=91365) [details]
dev-libs/cryptlib-3.2.3 ebuild

------- Comment #7 From Daniel Plaza 2006-07-10 07:44:32 0000 -------
  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 From Daniel Plaza 2006-08-29 08:46:39 0000 -------
(From update of attachment 68452 [details])
This path is not needed with cryptlib-3.2.3a

------- Comment #9 From Daniel Plaza 2006-08-29 08:50:58 0000 -------
Version 3.2.3a is out.

------- Comment #10 From Daniel Plaza 2006-08-31 04:02:12 0000 -------
Created an attachment (id=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 From Daniel Ceregatti 2006-09-04 11:08:36 0000 -------
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 From Daniel Black 2006-09-04 13:15:34 0000 -------
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 From Daniel Black 2006-09-04 13:16:34 0000 -------
Created an attachment (id=96004) [details]
cryptlib-3.2.3a.ebuild

fixes minor stuff

------- Comment #14 From Jakub Moc (RETIRED) 2006-09-21 01:22:08 0000 -------
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 From Jakub Moc (RETIRED) 2006-09-21 01:34:04 0000 -------
*** Bug 148469 has been marked as a duplicate of this bug. ***

------- Comment #16 From Daniel Plaza 2006-09-21 01:34:06 0000 -------
Created an attachment (id=97615) [details]
Cryptlib 3.3 ebuild

  New ebuild for version 3.3. Compile and works fine but still have QA
problems.

------- Comment #17 From Jakub Moc (RETIRED) 2006-09-21 01:36:15 0000 -------
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 From Daniel Plaza 2006-09-21 01:50:42 0000 -------
(In reply to comment #17)

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

------- Comment #19 From Jakub Moc (RETIRED) 2006-10-22 05:25:28 0000 -------
# 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 From Alon Bar-Lev (RETIRED) 2006-10-22 06:51:39 0000 -------
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.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug