FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 11-04-2008, 11:02 AM
"Loïc Grenié"
 
Default Eliminate libm dependency for casper-md5check

Package: casper
Version: 1.132ubuntu0.2
Severity: wishlist
Tags: patch

casper-md5check needs libm to run for the single floorl function that
is called in a single point to create an integer. The floorl function
is useless where it is called, the automatic conversion is sufficient.
I propose the following patch, which allows to remove libm from the
initramfs (150Kb on i386).

-- System Information:
Debian Release: lenny/sid
APT prefers hardy-updates
APT policy: (500, 'hardy-updates'), (500, 'hardy-security'), (500,
'hardy-backports'), (500, 'hardy')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-21-generic (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages casper depends on:
ii busybox-initramfs 1:1.1.3-5ubuntu12 Standalone shell setup for initram
ii dmsetup 2:1.02.20-2ubuntu2 The Linux Kernel Device Mapper use
ii eject 2.1.5-6ubuntu1 ejects CDs and operates CD-Changer
ii initramfs-tools 0.85eubuntu39.2 tools for generating an initramfs
ii localechooser-data 1.42ubuntu5 Lists of locales supported by the
ii sudo 1.6.9p10-1ubuntu3.3 Provide limited super user privile
ii user-setup 1.16ubuntu5 Set up initial user and password
ii uuid-runtime 1.40.8-2ubuntu2 universally unique id library

casper recommends no packages.

-- no debconf information
--- casper-1.132ubuntu0.2/casper-md5check/casper-md5check.c.orig 2008-11-04 12:50:28.000000000 +0100
+++ casper-1.132ubuntu0.2/casper-md5check/casper-md5check.c 2008-11-04 12:50:44.000000000 +0100
@@ -285,7 +285,7 @@

while (rsize > 0) {
csize += rsize;
- usplash_progress(pipe_fd, floorl(100*((long double)csize)/tsize));
+ usplash_progress(pipe_fd, 100*((long double)csize)/tsize);

md5_append(&state, (const md5_byte_t *)buf, rsize);
rsize = read(check_fd, buf, sizeof(buf));
--- casper-1.132ubuntu0.2/casper-md5check/Makefile.orig 2008-11-04 12:50:50.000000000 +0100
+++ casper-1.132ubuntu0.2/casper-md5check/Makefile 2008-11-04 12:54:09.000000000 +0100
@@ -1,6 +1,5 @@

CC=gcc
-LDFLAGS=-lm
CFLAGS=$(getconf LFS_CFLAGS) -Wall -O2

casper-md5check: casper-md5check.c md5.c
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-04-2008, 12:38 PM
Charlie Kravetz
 
Default Eliminate libm dependency for casper-md5check

On Tue, 4 Nov 2008 13:02:22 +0100
"Loïc Grenié" <loic.grenie@gmail.com> wrote:

> Package: casper
> Version: 1.132ubuntu0.2
> Severity: wishlist
> Tags: patch
>
> casper-md5check needs libm to run for the single floorl function that
> is called in a single point to create an integer. The floorl function
> is useless where it is called, the automatic conversion is sufficient.
> I propose the following patch, which allows to remove libm from the
> initramfs (150Kb on i386).
>
> -- System Information:
> Debian Release: lenny/sid
> APT prefers hardy-updates
> APT policy: (500, 'hardy-updates'), (500, 'hardy-security'), (500,
> 'hardy-backports'), (500, 'hardy')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 2.6.24-21-generic (SMP w/2 CPU cores)
> Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages casper depends on:
> ii busybox-initramfs 1:1.1.3-5ubuntu12 Standalone shell setup
> for initram ii dmsetup 2:1.02.20-2ubuntu2 The Linux
> Kernel Device Mapper use ii eject 2.1.5-6ubuntu1
> ejects CDs and operates CD-Changer ii initramfs-tools
> 0.85eubuntu39.2 tools for generating an initramfs ii
> localechooser-data 1.42ubuntu5 Lists of locales supported
> by the ii sudo 1.6.9p10-1ubuntu3.3 Provide limited
> super user privile ii user-setup 1.16ubuntu5 Set
> up initial user and password ii uuid-runtime
> 1.40.8-2ubuntu2 universally unique id library
>
> casper recommends no packages.
>
> -- no debconf information

Can you file this on launchpad? I know the system sent it to the users
mailing list, but it never gets worked if it stays here.

The right place to file bug reports is:
https://bugs.launchpad.net/ubuntu

That will give the developers a chance to see if they can fix it.

Thanks.

--
Charlie Kravetz
Linux Registered User Number 425914 [http://counter.li.org/]
Never let anyone steal your DREAM. [http://keepingdreams.com]

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-04-2008, 01:09 PM
"Loïc Grenié"
 
Default Eliminate libm dependency for casper-md5check

2008/11/4 Charlie Kravetz <cjk@teamcharliesangels.com>:
> On Tue, 4 Nov 2008 13:02:22 +0100
> "Loïc Grenié" <loic.grenie@gmail.com> wrote:
>
>> Package: casper
>> Version: 1.132ubuntu0.2
>> Severity: wishlist
>> Tags: patch
[snip]
> Can you file this on launchpad? I know the system sent it to the users
> mailing list, but it never gets worked if it stays here.
>
> The right place to file bug reports is:
> https://bugs.launchpad.net/ubuntu
>
> That will give the developers a chance to see if they can fix it.

Thank you for the suggestion. Done.

Loïc Grenié

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-04-2008, 05:13 PM
Charlie Kravetz
 
Default Eliminate libm dependency for casper-md5check

On Tue, 4 Nov 2008 15:09:24 +0100
"Loïc Grenié" <loic.grenie@gmail.com> wrote:

> 2008/11/4 Charlie Kravetz <cjk@teamcharliesangels.com>:
> > On Tue, 4 Nov 2008 13:02:22 +0100
> > "Loïc Grenié" <loic.grenie@gmail.com> wrote:
> >
> >> Package: casper
> >> Version: 1.132ubuntu0.2
> >> Severity: wishlist
> >> Tags: patch
> [snip]
> > Can you file this on launchpad? I know the system sent it to the
> > users mailing list, but it never gets worked if it stays here.
> >
> > The right place to file bug reports is:
> > https://bugs.launchpad.net/ubuntu
> >
> > That will give the developers a chance to see if they can fix it.
>
> Thank you for the suggestion. Done.
>
> Loïc Grenié

You are welcome

--
Charlie Kravetz
Linux Registered User Number 425914 [http://counter.li.org/]
Never let anyone steal your DREAM. [http://keepingdreams.com]

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 09:00 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org