Modify

Opened 10 years ago

Closed 10 years ago

#3424 closed enhancement (fixed)

libgcrypt: reduce size by disabling ciphers

Reported by: Simon Josefsson <simon@…> Owned by: nico
Priority: normal Milestone:
Component: packages Version:
Keywords: Cc:

Description

Hi!

First, thanks for applying my earlier libgpg-error/libgcrypt/libtasn1/gnutls patches!

I played around with libgcrypt build parameters, and disabling stuff almost halves the size of the library.

Before: 204K libgcrypt_1.4.1-1_mipsel.ipk
After: 108K libgcrypt_1.4.1-1_mipsel.ipk

This patch aggresively removes weird stuff. I guess some of the algorithms could be re-introduced if some application really need them, but I doubt many will care.

What do you think?

Note that there are two attachments, the first is a patch against the makefile, and the second a new diff file to go in the patches/ directory. The patch has been reported upstream to libgcrypt maintainers:
http://permalink.gmane.org/gmane.comp.encryption.gpg.libgcrypt.devel/1974

Thanks,
Simon

Attachments (2)

openwrt-libgcrypt.diff (1.3 KB) - added by Simon Josefsson <simon@…> 10 years ago.
makefile patch to disable algorithms
001-handle-minimal-build.patch (14.6 KB) - added by Simon Josefsson <simon@…> 10 years ago.
libgcrypt patches/ file to deal with build problems

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by Simon Josefsson <simon@…>

makefile patch to disable algorithms

Changed 10 years ago by Simon Josefsson <simon@…>

libgcrypt patches/ file to deal with build problems

comment:1 Changed 10 years ago by anonymous

Maybe ask one of the core developers to give you write access at least to the four packages you mentoined. Then you can maintain the OpenWrt package Makefiles directly by yourself in the OpenWrt subversion repository.

comment:2 Changed 10 years ago by nico

  • Owner changed from developers to nico
  • Status changed from new to assigned

comment:3 Changed 10 years ago by nico

  • Resolution set to fixed
  • Status changed from assigned to closed

Applied in [11104], thanks!

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.