Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 511986 Details for
Bug 642666
sys-apps/darwin-miscutils: -Wsystem-headers causes large number of warnings
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Updated ebuild with silenced warnings
darwin-miscutils-12.ebuild (text/plain), 4.83 KB, created by
Michael Weiser
on 2017-12-29 18:45:49 UTC
(
hide
)
Description:
Updated ebuild with silenced warnings
Filename:
MIME Type:
Creator:
Michael Weiser
Created:
2017-12-29 18:45:49 UTC
Size:
4.83 KB
patch
obsolete
># Copyright 1999-2017 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > >EAPI="6" > >inherit toolchain-funcs > ># from macOS 10.12 >MISC_VER=34 >SHELL_VER=203 ># from DT 8.1 >DEV_VER=63 ># from 10.7.4 >MD_VER=147 # 148 in 10.8 has no md, bug #428530 > >DESCRIPTION="Miscellaneous commands used on macOS, High Sierra 10.13" >HOMEPAGE="https://www.opensource.apple.com/" >SRC_URI="https://opensource.apple.com/tarballs/misc_cmds/misc_cmds-${MISC_VER}.tar.gz > https://opensource.apple.com/tarballs/shell_cmds/shell_cmds-${SHELL_VER}.tar.gz > https://opensource.apple.com/tarballs/developer_cmds/developer_cmds-${DEV_VER}.tar.gz > https://opensource.apple.com/source/adv_cmds/adv_cmds-${MD_VER}/md/md.c -> adv_cmds-md-${MD_VER}.c > https://opensource.apple.com/source/adv_cmds/adv_cmds-${MD_VER}/md/md.1 -> adv_cmds-md-${MD_VER}.1" > >LICENSE="BSD" >SLOT="0" >KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" >IUSE="" > ># ncal >DEPEND="sys-libs/ncurses" >RDEPEND="${DEPEND}" > >S=${WORKDIR} > >src_prepare() { > cd "${S}"/shell_cmds-${SHELL_VER} || die > eapply "${FILESDIR}"/${PN}-6-w64.patch > > mkdir -p "${S}"/adv_cmds-${MD_VER}/md || die > cp "${DISTDIR}"/adv_cmds-md-${MD_VER}.c \ > "${S}"/adv_cmds-${MD_VER}/md/md.c || die > cp "${DISTDIR}"/adv_cmds-md-${MD_VER}.1 \ > "${S}"/adv_cmds-${MD_VER}/md/md.1 || die > cd "${S}"/adv_cmds-${MD_VER} || die > eapply "${FILESDIR}"/md-147-warnings.patch > > cd "${S}" > eapply_user >} > >src_compile() { > local flags=( > ${CFLAGS} > -I. > -D__FBSDID=__RCSID > -Du_int=uint32_t > -include stdint.h > ) > > local TS=${S}/misc_cmds-${MISC_VER} > # tsort is provided by coreutils > for t in leave units calendar; do > cd "${TS}/${t}" > echo "in ${TS}/${t}:" > echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c > $(tc-getCC) ${LDFLAGS} ${flags[@]} -o ${t} *.c || die "failed to compile $t" > done > # compile cal separately > cd "${TS}/ncal" > echo "in ${TS}/ncal:" > echo "$(tc-getCC) ${flags[@]} -c calendar.c" > $(tc-getCC) ${flags[@]} -c calendar.c || die "failed to compile cal" > echo "$(tc-getCC) ${flags[@]} -c easter.c" > $(tc-getCC) ${flags[@]} -c easter.c || die "failed to compile cal" > echo "$(tc-getCC) ${flags[@]} -c ncal.c" > $(tc-getCC) ${flags[@]} -c ncal.c || die "failed to compile cal" > echo "$(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o" > $(tc-getCC) ${LDFLAGS} ${flags[@]} -o cal calendar.o easter.o ncal.o -lncurses || die "failed to compile cal" > > TS=${S}/shell_cmds-${SHELL_VER} > # only pick those tools not provided by coreutils, findutils > for t in \ > apply getopt hexdump hostname jot kill killall \ > lastcomm renice script shlock time whereis; > do > echo "in ${TS}/${t}:" > echo "$(tc-getCC) ${flags[@]} -o ${t} *.c" > cd "${TS}/${t}" > $(tc-getCC) ${LDFLAGS} ${flags[@]} -o ${t} *.c || die "failed to compile $t" > done > cd "${TS}/w" > sed -i -e '/#include <libutil.h>/d' w.c || die > echo "in ${TS}/w:" > echo "$(tc-getCC) ${flags[@]} -DHAVE_UTMPX=1 -lresolv -o w *.c" > $(tc-getCC) ${LDFLAGS} ${flags[@]} -DHAVE_UTMPX=1 -lresolv -o w *.c \ > || die "failed to compile w" > > TS=${S}/developer_cmds-${DEV_VER} > # only pick those tools that do not conflict (no ctags and indent) > # do not install lorder, mkdep and vgrind as they are a non-prefix-aware > # shell scripts > # don't install rpcgen, as it is heavily related to the OS it runs > # on (and this is the Sierra version) > for t in asa unifdef what ; do > echo "in ${TS}/${t}:" > cd "${TS}/${t}" || die > echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c > $(tc-getCC) ${LDFLAGS} ${flags[@]} -o ${t} *.c || die "failed to compile $t" > done > > # provide this one for gcc-apple > TS=${S}/adv_cmds-${MD_VER} > for t in md ; do > echo "in ${TS}/${t}:" > cd "${TS}/${t}" || die > echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c > $(tc-getCC) ${LDFLAGS} ${flags[@]} -o ${t} *.c || die "failed to compile $t" > done >} > >src_install() { > mkdir -p "${ED}"/bin > mkdir -p "${ED}"/usr/bin > > local TS=${S}/misc_cmds-${MISC_VER} > for t in leave units calendar ; do > cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ > doman "${TS}/${t}/${t}.1" > done > # copy cal separately > cp "${TS}/ncal/cal" "${ED}"/usr/bin/ > dosym ${EPREFIX}/usr/bin/cal /usr/bin/ncal > doman "${TS}/ncal/ncal.1" > dosym ${EPREFIX}/usr/share/man/man1/ncal.1 /usr/share/man/man1/cal.1 > > TS=${S}/shell_cmds-${SHELL_VER} > for t in \ > apply getopt hexdump hostname jot killall lastcomm \ > renice script shlock time w whereis; > do > cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ > [[ -f "${TS}/${t}/${t}.1" ]] && doman "${TS}/${t}/${t}.1" > [[ -f "${TS}/${t}/${t}.8" ]] && doman "${TS}/${t}/${t}.8" > done > cp "${TS}/w/w" "${ED}"/usr/bin/uptime > doman "${TS}/w/uptime.1" > for t in hostname kill; do > cp "${TS}/${t}/${t}" "${ED}"/bin/ > doman "${TS}/${t}/${t}.1" > done > > TS=${S}/developer_cmds-${DEV_VER} > for t in asa unifdef what ; do > cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ > doman "${TS}/${t}/${t}.1" > done > > TS=${S}/adv_cmds-${MD_VER} > for t in md ; do > cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ > doman "${TS}/${t}/${t}.1" > done >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 642666
: 511986 |
511988