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

Re: How can I do this from my .SPEC file?



On Mon, 15 Sep 2003, Trevor wrote:

> Hello all,
> 
> I commented out the following code from the
> "/usr/lib/rpm/brp-strip-comment-note" that was causing problems for a
> specific RPM file that I was trying to create:
> 
> #!/bin/sh
> # If using normal root, avoid changing anything.
> if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
> 	exit 0
> fi
> 
> # Strip .comment and .note sections (the latter only if it is not allocated)
> # for already stripped elf files in the build root
> #for f in `find $RPM_BUILD_ROOT -type f
> \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \
> #	sed -n -e 's/^\(.*\):[ 	]*ELF.*, stripped/\1/p'`; do
> #	note="-R .note"
> #	if objdump -h $f | grep '^[ 	]*[0-9]*[ 	]*.note[ 	]' -A 1 | \
> #		grep ALLOC >/dev/null; then
> #		note=
> #	fi
> #	strip -R .comment $note $f || :
> #done
> 
> How can I bypass the "brp-strip-comment-note" code from within my .SPEC
> file?  Is this even possible?
>
If you don't care about stripping at all then you can simply exit 
the your %install explicitly, as the different strip scripts are just
tacked on to the end of your %install scriptlet.

Cheers...james 
> Trev.
> 
> 
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@redhat.com
> https://www.redhat.com/mailman/listinfo/rpm-list
> 




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