Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195496 - sys-fs/cryptsetup-1.0.5: libcryptsetup.h does not match library
Summary: sys-fs/cryptsetup-1.0.5: libcryptsetup.h does not match library
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-11 13:44 UTC by fisch
Modified: 2008-10-05 19:58 UTC (History)
0 users

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


Attachments
patch for libcryptsetup.h (cryptsetup-1.0.5-luksInit_header.patch,703 bytes, patch)
2007-10-11 13:59 UTC, fisch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description fisch 2007-10-11 13:44:46 UTC
In cryptsetup-1.0.5, the header libcryptsetup.h refers to the
function crypt_luksInit(). The library files libcryptsetup.a and
libcryptsetup.so do not contain crypt_luksInit().

crypt_luksInit() seems to be renamed to crypt_luksFormat(). The library does have crypt_luksFormat(), but the change was not made in the header.

Original bugreport is from:
https://bugzilla.redhat.com/show_bug.cgi?id=215349

And there is already a patch:

diff -ru cryptsetup-1.0.5.orig/lib/libcryptsetup.h cryptsetup-1.0.5/lib/libcryptsetup.h
--- cryptsetup-1.0.5.orig/lib/libcryptsetup.h	2006-11-21 10:06:47.000000000 +0100
+++ cryptsetup-1.0.5/lib/libcryptsetup.h	2007-07-26 18:52:20.267303000 +0200
@@ -39,7 +39,7 @@
 int crypt_resize_device(struct crypt_options *options);
 int crypt_query_device(struct crypt_options *options);
 int crypt_remove_device(struct crypt_options *options);
-int crypt_luksInit(struct crypt_options *options);
+int crypt_luksFormat(struct crypt_options *options);
 int crypt_luksOpen(struct crypt_options *options);
 int crypt_luksDelKey(struct crypt_options *options);
 int crypt_luksAddKey(struct crypt_options *options);

Reproducible: Always
Comment 1 fisch 2007-10-11 13:59:48 UTC
Created attachment 133139 [details, diff]
patch for libcryptsetup.h
Comment 2 Benjamin Smee (strerror) (RETIRED) gentoo-dev 2007-10-11 14:12:33 UTC
I'll see if upstream fixes this within a day or so, if not I'll patch ours.
Comment 3 Łukasz Damentko (RETIRED) gentoo-dev 2008-08-11 01:25:58 UTC
Reassigning back to herd since Benjamin has retired as a Gentoo developer (#89719).
Comment 4 SpanKY gentoo-dev 2008-10-05 19:58:44 UTC
this is fixed with version 1.0.6