1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00

Cleanup packing lists.

- Use BUREMOVE to strip binutils tools not installed by the base/binutils
  package.
- Update BUREMOVE logic in devel/binutils to cope with the base package
  which installs tools without a BUTARGET- prefix.
- Use MANPREFIX for BUREMOVE to handle the PREFIX=/usr case used by
  base/binutils.
- Remove binutils headers and libraries explicitly from the staging area
  for base/binutils.
- Add missing plist entries for binutils binaries installed under a
  BUTARGET subdirectory.
- Drop plist entries from devel/binutils that are now properly removed.
  Previously the binaries for Windows tools like dlltool were removed
  from the staging area but the manpages were still left in the package.
- Bump PORTREVISION.

This is a recommit of r476186 but with the update to the pkg-plist of
devel/binutils and PORTREVISION bump.

PR:		230278
Reviewed by:	antoine
Differential Revision:	https://reviews.freebsd.org/D16582
This commit is contained in:
John Baldwin 2018-08-20 09:17:45 +00:00
parent 0da300d4a6
commit 795bd50679
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=477638
4 changed files with 27 additions and 6 deletions

View File

@ -23,11 +23,27 @@ BUTARGET= ${TARGETARCH}-unknown-${OPSYS:tl}${OSREL}
CONFIGURE_ARGS+= --disable-host-shared
PREFIX= /usr
BUREMOVE= addr2line \
ar \
c++filt \
dlltool \
elfedit \
gprof \
nlmconv \
nm \
ranlib \
readelf \
size \
strings \
strip \
windmc \
windres
.include "${MASTERDIR}/Makefile"
.if ${OSVERSION} >= 1100100
PLIST_SUB+= OBJCOPY="@comment "
BUREMOVE+= objcopy
.else
PLIST_SUB+= OBJCOPY=""
.endif

View File

@ -8,6 +8,11 @@ bin/%%BUTARGET%%-ld
bin/%%BUTARGET%%-ld.bfd
%%OBJCOPY%%bin/%%BUTARGET%%-objcopy
bin/%%BUTARGET%%-objdump
%%BUTARGET%%/bin/as
%%BUTARGET%%/bin/ld
%%BUTARGET%%/bin/ld.bfd
%%OBJCOPY%%%%BUTARGET%%/bin/objcopy
%%BUTARGET%%/bin/objdump
%%I386%%%%BUTARGET%%/lib/ldscripts/elf_i386.x
%%I386%%%%BUTARGET%%/lib/ldscripts/elf_i386.xbn
%%I386%%%%BUTARGET%%/lib/ldscripts/elf_i386.xc

View File

@ -3,7 +3,7 @@
PORTNAME= binutils
PORTVERSION= 2.30
PORTREVISION= 4
PORTREVISION= 5
PORTEPOCH?= 1
CATEGORIES?= devel
MASTER_SITES= SOURCEWARE/binutils/releases
@ -145,11 +145,15 @@ post-install:
${MV} ${STAGEDIR}/${MANDIR}1/objdump.1 ${STAGEDIR}/${MANDIR}1/${BUTARGET}-objdump.1
${GZIP_CMD} ${STAGEDIR}/${MANDIR}1/${BUTARGET}-objdump.1
${LN} -fs ${BUTARGET}-objdump.1.gz ${STAGEDIR}/${MANDIR}1/objdump.1.gz
@${RM} -r ${STAGEDIR}${PREFIX}/include
@${RM} -r ${STAGEDIR}${PREFIX}/lib
.endif
.endif
.for tool in ${BUREMOVE}
@${RM} ${STAGEDIR}${PREFIX}/bin/${BUTARGET}-${tool} \
${STAGEDIR}${PREFIX}/man/man1/${BUTARGET}-${tool}.1 \
${STAGEDIR}${PREFIX}/bin/${tool} \
${STAGEDIR}${MANPREFIX}/man/man1/${BUTARGET}-${tool}.1 \
${STAGEDIR}${MANPREFIX}/man/man1/${tool}.1 \
${STAGEDIR}${PREFIX}/${BUTARGET}/bin/${tool}
.endfor
.if defined(BUREMOVE) && ${BUREMOVE:Mld}

View File

@ -28,10 +28,8 @@ man/man1/ar.1.gz
man/man1/as.1.gz
man/man1/c++filt.1.gz
man/man1/gprof.1.gz
man/man1/dlltool.1.gz
man/man1/elfedit.1.gz
man/man1/ld.1.gz
man/man1/nlmconv.1.gz
man/man1/nm.1.gz
man/man1/objcopy.1.gz
man/man1/objdump.1.gz
@ -40,8 +38,6 @@ man/man1/readelf.1.gz
man/man1/size.1.gz
man/man1/strings.1.gz
man/man1/strip.1.gz
man/man1/windmc.1.gz
man/man1/windres.1.gz
%%NLS%%share/locale/bg/LC_MESSAGES/binutils.mo
%%NLS%%share/locale/bg/LC_MESSAGES/gprof.mo
%%NLS%%share/locale/bg/LC_MESSAGES/ld.mo