LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 08-04-2012, 06:38 PM   #1
Darth Vader
Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 553

Rep: Reputation: 103Reputation: 103
Smile Suggestions for GDBM, XZ, libarchive and usb_modeswitch packages on Current


I want to propose a series of modifications and improvements for packages listed in the thread title.

First, though it seems curious, GDBM is still used in programs, and the team where I work is one of those using it. Of course, GDBM works perfectly for our purposes, but we have a little problem. Still, the installed gdbm.h under GCC 4.7 generates a repeatedly warning that is not pleasing to those who are in the testing team, who insist on using the native & unpatched operating system (in this case, now Slackware 13.37). My suggestion is this little patch, which will have to improve our work relationships and silencing that damn warning.

Code:
diff -urN gdbm-1.8.3.orig/gdbm.proto gdbm-1.8.3/gdbm.proto
--- gdbm-1.8.3.orig/gdbm.proto	1999-05-19 03:16:06.000000000 +0300
+++ gdbm-1.8.3/gdbm.proto	2011-05-28 18:39:44.964862341 +0300
@@ -60,7 +60,7 @@
 
 
 /* The file information header. This is good enough for most applications. */
-typedef struct {int dummy[10];} *GDBM_FILE;
+typedef struct GDBM_FILE_STRUCT {int dummy[10];} *GDBM_FILE;
 
 /* Determine if the C(++) compiler requires complete function prototype  */
 #ifndef __P
OR, much better will be to upgrade to GDBM-1.10.

Second, I suggest the rebuilding of XZ, for installation of the static library. It is a very simple change on the ./configure flags, from --disable-static to --enable-static. To be honest, this will allow me to work with static linking of libarchive, but at the same time, I want to mention that LIBBZ2 and LIBZ offer right now that static libraries. Why not an equal treatment for (LIB)LZMA? Not everything is an GUI app compiled with CMake, right?

As a note, this support on XZ package, could allow writing a static linked (PKG)TAR, especially for Slackware packages, on top of libarchive, to perform various special processing...

Thirdly, while slackware-current ships libarchive-2.8.5, current stable version is 3.0.4.

Even if on this version (3.0.4), the shared library version bumps after the upgrade, everything works perfectly, without any problems. So I suggest the upgrade to that latest version of libarchive and to add the support for static library (using the same change in ./configure flags: --disable-static to --enable-static).

Finally, slackware-current ships now usb_modeswitch-1.1.6 (with data-20101222), while the current stable version is 1.2.3 (with data-20120531).

Note that this latest version includes an integrated TCL interpreter (JIMSH), then I propose the use of static installation (make install-static), to make an stand-alone package, not depending on any TCL shell.

Last edited by Darth Vader; 08-05-2012 at 05:25 AM.
 
Old 08-04-2012, 09:01 PM   #2
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 749

Rep: Reputation: 225Reputation: 225Reputation: 225
On your first point why not suggest upgrading gdbm to 1.10.

It would fix lots of things including your problem.
 
1 members found this post helpful.
Old 08-04-2012, 09:58 PM   #3
Darth Vader
Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 553

Original Poster
Rep: Reputation: 103Reputation: 103
Quote:
Originally Posted by wildwizard View Post
On your first point why not suggest upgrading gdbm to 1.10.

It would fix lots of things including your problem.
My mistake! I became so obsessed with this compilation warning that I overlooked the variant to upgrade the GDBM ...

Last edited by Darth Vader; 08-04-2012 at 10:00 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] usb_modeswitch with Huawei e220 toredo Linux - Software 7 07-23-2011 09:33 AM
[SOLVED] libarchive block size MTK358 Programming 1 07-13-2011 10:22 PM
Unable to install USB_ModeSwitch sudhirpradhan Linux - Newbie 11 07-03-2011 12:22 PM
Distinguish between gdbm 64b to gdbm 32b in rpm spec file. byaron Red Hat 1 10-13-2010 06:35 PM
GDBM Need for zinf install... What's GDBM??? Stevetgn Linux - Software 5 07-16-2004 06:00 AM


All times are GMT -5. The time now is 11:58 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration