Bug 65733
Summary: | rpm --rebuild fails | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Gernot Tenchio <g.tenchio> |
Component: | rpm | Assignee: | Jeff Johnson <jbj> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.2 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-05-31 07:22:26 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Gernot Tenchio
2002-05-30 22:15:46 UTC
I won't ask why you're linking rpmbuild against dietlibc, I'm not sure I want to know :-) However, since you're clearly bulding rpm from sources, edit the toplevel debug.h, and add #undef BUFSIZ #define BUFSIZ 8192 as debug.h is included after everything else throughout rpm. Sure its a bug. When I need a static buffer with exactly 8K then i use an buffer with exactly 8K and not a buffer with a size depending of libc's implementation. The reason why i use uclibc is I'am building an development environment completely uclibc based. Look at this rpm statically linked against glibc: -rwxr-xr-x 1 rpm rpm 1580104 Mai 15 09:04 /bin/rpm rpm statically linked against uClibc: -rwxr-xr-x 1 rpm rpm 1022252 May 30 17:06 /bin/rpm When I want a manifest constant that scales throughout my code, I use a #define so that I can change the value, particularly when I'm mistrustful of what constants are set by libraries. Redefine BUFSIZ in <debug.h> and be happy. > Redefine BUFSIZ in <debug.h> and be happy.
This is a real bad idea because it will break all internal
libc routines which depends on BUF_SIZ. (Bufferoverflow)
Example: When I define BUF_SIZ to 8192 in debug.h rpm --rebuild
segfaults when a line is longer than 255 chars in 'package.spec'.
(Seen in dnsmasq.spec)
Regards, Gernot
|