Re: building an RPM w/ LZO support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sep 25, 2014, at 1:38 PM, Dave Anderson <anderson@xxxxxxxxxx>
 wrote:
> 
> You can modify the crash.spec file by adding
> 
>  < BuildRequires: ncurses-devel zlib-devel bison
>> BuildRequires: ncurses-devel zlib-devel lzo-devel bison snappy-devel
> 
>  < make RPMPKG="%{version}"
>> make RPMPKG="%{version}" lzo snappy
> 
> And then create a new src.rpm with rpmbuild.
> 
> Alternatively, you could add this patch to the crash.spec file, which
> is taken from the Fedora and RHEL7 distros: 
> 
> --- crash-7.0.2/diskdump.c.orig
> +++ crash-7.0.2/diskdump.c
> @@ -23,6 +23,8 @@
>  * GNU General Public License for more details.
>  */
> 
> +#define LZO
> +#define SNAPPY
> #include "defs.h"
> #include "diskdump.h"
> 
> --- crash-7.0.2/Makefile.orig
> +++ crash-7.0.2/Makefile
> @@ -223,7 +223,7 @@ all: make_configure
> gdb_merge: force
>        @if [ ! -f ${GDB}/README ]; then \
>          make --no-print-directory gdb_unzip; fi
> -       @echo "${LDFLAGS} -lz -ldl -rdynamic" > ${GDB}/gdb/mergelibs
> +       @echo "${LDFLAGS} -lz -llzo2 -lsnappy -ldl -rdynamic" > ${GDB}/gdb/mergelibs
>        @echo "../../${PROGRAM} ../../${PROGRAM}lib.a" > ${GDB}/gdb/mergeobj
>        @rm -f ${PROGRAM}
>        @if [ ! -f ${GDB}/config.status ]; then \
Thank you!
--
Mark 


--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility




[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux