Packaging afflib for Fedora

0 views
Skip to first unread message

kwizart

unread,
Nov 20, 2007, 5:17:18 AM11/20/07
to aff-discuss
Hello !

I'm planning to package afflib 3.0.1 for Fedora...
see https://bugzilla.redhat.com/show_bug.cgi?id=389471

The problem I have for now is that no headers are installed (nor lib
but I've found how to deal with this..)
So iv'e just copied the lib/*.h into /usr/include/afflib

But this will not work when building sleukit as it complains that
#error PACKAGE_TARNAME not defined; config.h was not included

How can this be fixed properly ?
(I could remove theses line, but that will be a dirty hack)

See two patches used for now:
afflib-3.0.1-shared_lib.patch
-------------------
diff -up afflib-3.0.1/lib/Makefile.am.shared afflib-3.0.1/lib/
Makefile.am
--- afflib-3.0.1/lib/Makefile.am.shared 2007-11-18 15:27:40.000000000
+0100
+++ afflib-3.0.1/lib/Makefile.am 2007-11-18 15:29:24.000000000 +0100
@@ -35,7 +35,7 @@ LZMA_SOURCES = \
@top_srcdir@/lzma443/C/Common/Vector.cpp


-noinst_LTLIBRARIES = libafflib.la
+lib_LTLIBRARIES = libafflib.la
-------------------

afflib-3.0.1-WCtype.patch
-------------------
diff -up afflib-3.0.1/lib/vnode_ewf.cpp.WCtype afflib-3.0.1/lib/
vnode_ewf.cpp
--- afflib-3.0.1/lib/vnode_ewf.cpp.WCtype 2007-11-18
16:28:28.000000000 +0100
+++ afflib-3.0.1/lib/vnode_ewf.cpp 2007-11-18 16:29:15.000000000 +0100
@@ -196,11 +196,11 @@ static int ewf_get_seg(AFFILE *af,const
if(datalen) *datalen = 0;
return 0;
}
-#ifdef HAVE_WIDE_CHARACTER_TYPE
+//*#ifdef HAVE_WIDE_CHARACTER_TYPE
#define the_libewf_char_t wchar_t
-#else
+/*#else
#define the_libewf_char_t char
-#endif
+#endif */
if(strcmp(name,AF_CASE_NUM)==0){
if(data && datalen){
libewf_get_header_value_case_number(handle,(the_libewf_char_t
*)data,*datalen);
-------------------

Simson Garfinkel

unread,
Nov 20, 2007, 10:23:17 AM11/20/07
to aff-d...@googlegroups.com
Thanks for the email.

autoconf.ac is a tarpit. If you can give me information on what to do,
I'd be thrilled.

Questions:

1. Should afflib us a config file different than config.h to avoid
namespace clashes?
2. What's the purpose of defining PACKAGE_TARNAME?
3. What do you mean by "package afflib 3.0.1 for Fedora?" What's the
purpose of the package? What do you want added?

Thanks!

> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google
> Groups "aff-discuss" group.
> To post to this group, send email to aff-d...@googlegroups.com
> To unsubscribe from this group, send email to aff-discuss...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/aff-discuss?hl=en
> -~----------~----~----~----~------~----~------~--~---
>

kwizart

unread,
Nov 29, 2007, 4:14:11 PM11/29/07
to aff-discuss
On 20 nov, 16:23, Simson Garfinkel <sims...@acm.org> wrote:
> Thanks for the email.
>
> autoconf.ac is a tarpit. If you can give me information on what to do,
> I'd be thrilled.
>
> Questions:
>
> 1. Should afflib us a config file different than config.h to avoid
> namespace clashes?
That would be better but some package are using a special directory
also.
[root@kwizatz include]# find . -name config.h
./wx-2.6/wx/config.h
./ode/config.h
./firefox-2.0.0.9/system_wrappers/config.h
./kpathsea/config.h
./wx-2.8/wx/config.h
> 2. What's the purpose of defining PACKAGE_TARNAME?
don't know maybe it could be dropped?
I've also noted that the sleukit uses functions defined in afflib_i.h
So i wonder if this file should be added (Iv'e added all headers for
now - but that's probably stupid)

> 3. What do you mean by "package afflib 3.0.1 for Fedora?" What's the
> purpose of the package? What do you want added?
That would be usefull to have afflib for the sleuthkit.. so it could
be added to
http://fedoraproject.org/wiki/LukeMacken/SecurityLiveCD
> Thanks!
>
> On Nov 20, 2007, at 2:17 AM, kwizart wrote:
>
>
>
> > Hello !
>
> > I'm planning to package afflib 3.0.1 for Fedora...
> > seehttps://bugzilla.redhat.com/show_bug.cgi?id=389471
> smime.p7s
> 3KTélécharger
Reply all
Reply to author
Forward
0 new messages