head	1.4;
access;
symbols
	rpm-4_4_8-release:1.3.6.2
	rpm-4_4_7-release:1.3.6.2
	rpm-4_4_6-release:1.3.6.2
	rpm-4_4_5-release:1.3.6.2
	rpm-4_4_4-release:1.3.6.2
	rpm-4_4_3-release:1.3.6.2
	jbj_before_tklcpatches:1.3.6.2
	rpm-4_4_2-release:1.3.6.2
	pjones-sparse-experiment:1.4.0.2
	rpm-4_4_1-release:1.3.6.1
	rpm-4_4-release:1.3
	rpm-4_4:1.3.0.6
	rpm-4_3_1-start:1.3
	rpm-4_3:1.3.0.4
	rpm-4_2_1-release:1.3
	rpm-4_1_1-release:1.2.6.1
	rpm-4_2-release:1.3
	rpm-4_2:1.3.0.2
	rpm-4_1-release:1.2
	rpm-4_1:1.2.0.6
	rpm-4_0_4-release:1.2
	jbj-before-beecrypt:1.2
	rpm-4_0_3-release:1.2
	jbj_b4_rollback:1.2
	rpm-4_0_2-release:1.2
	rpm-4_0_1-release:1.2
	rpm-3_0_6-release:1.1.2.1
	rpm-4_0-release:1.2
	rpm-3_0_6:1.1.2.1
	rpm-4_0:1.2.0.4
	rpm-3_0_5:1.1.2.1.0.2
	jbj_sparc64:1.2.0.2
	rpm-3_0_4:1.1.0.2;
locks; strict;
comment	@# @;


1.4
date	2005.05.30.06.43.45;	author jbj;	state Exp;
branches;
next	1.3;

1.3
date	2002.11.15.18.02.43;	author jbj;	state Exp;
branches
	1.3.6.1;
next	1.2;

1.2
date	2000.05.08.12.24.23;	author jbj;	state Exp;
branches
	1.2.6.1;
next	1.1;

1.1
date	2000.01.07.17.32.28;	author jbj;	state Exp;
branches
	1.1.2.1;
next	;

1.1.2.1
date	2000.06.20.14.22.00;	author jbj;	state Exp;
branches;
next	;

1.2.6.1
date	2003.03.01.20.23.13;	author jbj;	state Exp;
branches;
next	;

1.3.6.1
date	2005.01.25.05.24.50;	author jbj;	state Exp;
branches;
next	1.3.6.2;

1.3.6.2
date	2005.05.30.06.43.17;	author jbj;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Permit file names with spaces.
@
text
@#!/bin/sh
# If using normal root, avoid changing anything.
if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
	exit 0
fi

case `uname -a` in
Darwin*) exit 0 ;;
*) ;;
esac

# 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 {} \; | \
        grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug"  | \
	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
@


1.3
log
@- update to elfutils-0.56.
- have debug sub-subpackage use external, not internal, elfutils.
@
text
@d7 5
d22 1
a22 1
	strip -R .comment $note $f || :
@


1.3.6.1
log
@macosx/opendarwin hackery, take 1.
@
text
@a6 5
case `uname -a` in
Darwin*) exit 0 ;;
*) ;;
esac

@


1.3.6.2
log
@Permit file names with spaces.
@
text
@d22 1
a22 1
	strip -R .comment $note "$f" || :
@


1.2
log
@here's a patch to make rpm (3.1-0.14) work on current FreeBSD versions
(tried 4.0-RELEASE and 5.0-CURRENT).

It adds freebsdelf.prov and freebsdelf.req in autodeps, modifies brp-strip
and brp-strip-comment-note to work with find versions that don't support
-perm +something and strip versions that fail with an error when they
can't strip a file, and modifies the configure check for GNU glob to check
for GLOB_PERIOD additionally.
This is required because FreeBSD's glob has some (but not all) of the GNU
extensions, but doesn't work the way rpm assumes (segfault as soon as
globbing is used in %files); GLOB_PERIOD can be used to tell the BSD
version apart from the GNU one.
@
text
@d10 1
@


1.2.6.1
log
@Backport db-4.1.25 changes, more, from rpm-4.2.
@
text
@a9 1
        grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug"  | \
@


1.1
log
@add several BuildRoot FTW policies.
@
text
@d9 1
a9 1
for f in `find $RPM_BUILD_ROOT -type f -a -perm +111 -exec file {} \; | \
d16 1
a16 1
	strip -R .comment $note $f
@


1.1.2.1
log
@- update brp-* scripts from rpm-4.0.
@
text
@d9 1
a9 1
for f in `find $RPM_BUILD_ROOT -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \
d16 1
a16 1
	strip -R .comment $note $f || :
@


