[gentoo-commits] repo/gentoo:master commit in: app-misc/cw/files/
commit: 9071f59809bb17011bacc1455891222161076474 Author: David Seifert gentoo org> AuthorDate: Sun Oct 30 11:26:15 2022 + Commit: David Seifert gentoo org> CommitDate: Sun Oct 30 11:26:15 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9071f598 app-misc/cw: [QA] use git-format-patch style patches Signed-off-by: David Seifert gentoo.org> app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch b/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch index 18f2dba953d2..978c23bb9b71 100644 --- a/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch +++ b/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch @@ -1,5 +1,5 @@ /var/tmp/portage/app-misc/cw-1.0.16-r3/work/cw-1.0.16/src/cw.c -+++ cw-1.0.16/src/cw.c +--- a/src/cw.c b/src/cw.c @@ -1173,7 +1173,7 @@ close(master); return(0);
[gentoo-commits] repo/gentoo:master commit in: app-misc/cw/files/, app-misc/cw/
commit: 43b339616b8cd4ab204fb89b882dfe3d8ca55f78 Author: Alessandro Barbieri gmail com> AuthorDate: Mon Nov 1 16:17:23 2021 + Commit: Sam James gentoo org> CommitDate: Thu Jun 16 00:34:43 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43b33961 app-misc/cw: EAPI 8, fix build Closes: https://bugs.gentoo.org/830507 Closes: https://bugs.gentoo.org/692426 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri gmail.com> Closes: https://github.com/gentoo/gentoo/pull/22782 Signed-off-by: Sam James gentoo.org> app-misc/cw/cw-1.0.16-r4.ebuild| 71 ++ .../cw-1.0.16-replace-isastream-with-fcntl.patch | 20 ++ 2 files changed, 91 insertions(+) diff --git a/app-misc/cw/cw-1.0.16-r4.ebuild b/app-misc/cw/cw-1.0.16-r4.ebuild new file mode 100644 index ..8a1bb807eb9a --- /dev/null +++ b/app-misc/cw/cw-1.0.16-r4.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="A non-intrusive real-time ANSI color wrapper for common unix-based commands" +HOMEPAGE="http://cwrapper.sourceforge.net"; +SRC_URI="mirror://sourceforge/cwrapper/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +PATCHES=( + "${FILESDIR}"/${PV}-ldflags.patch + "${FILESDIR}"/${PV}-path.patch + "${FILESDIR}"/${PV}-collision.patch + "${FILESDIR}"/${PV}-format-security.patch + "${FILESDIR}"/${P}-replace-isastream-with-fcntl.patch +) + +src_unpack() { + default + gunzip "${S}"/man/*.gz || die +} + +src_configure() { + tc-export CC + econf +} + +src_compile() { + emake local +} + +src_install() { + insinto /usr/share/cw + doins etc/* + + exeinto /usr/libexec/cw + doexe def/* + + doman man/cwu.1 + doman man/cwe.1 + newman man/cw.1 color-wrapper + dodoc CHANGES CONTRIB INSTALL README PLATFORM doc/README* + + dobin bin/{cwu,colorcfg} + # app-misc/color currently conflicts; hopefully 'colors' is safe + newbin bin/color colors + # media-radio/unixcw currently conflicts; + newbin bin/cw color-wrapper +} + +pkg_postinst() { + ebegin "Updating definition files" + cwu /usr/libexec/cw /usr/bin/color-wrapper || die # >/dev/null + eend $? + + elog "To enable color-wrapper, as your user, run:" + elog " colorcfg [1|2|3]" + elog "to add relevant environment variables to your ~/.bash_profile" + elog "Run colorcfg without options to see what [1|2|3] means." + elog + elog "After sourcing your ~/.bash_profile, commands for which definitions" + elog "are provided should have colored output." + elog + elog "To enable/disable colored output, run: 'colors [on|off]'." +} diff --git a/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch b/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch new file mode 100644 index ..18f2dba953d2 --- /dev/null +++ b/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch @@ -0,0 +1,20 @@ +--- /var/tmp/portage/app-misc/cw-1.0.16-r3/work/cw-1.0.16/src/cw.c cw-1.0.16/src/cw.c +@@ -1173,7 +1173,7 @@ + close(master); + return(0); + } +- if(isastream(slave)){ ++ if(fcntl(slave,F_GETFD) < 0){ + if(ioctl(slave,I_PUSH,"ptem")<0||ioctl(slave,I_PUSH,"ldterm")<0){ +close(master); +close(slave); +@@ -1211,7 +1211,7 @@ + close(master); + return(0); + } +- if(isastream(slave)){ ++ if(fcntl(slave,F_GETFD) < 0){ + if(ioctl(slave,I_PUSH,"ptem")<0||ioctl(slave,I_PUSH,"ldterm")<0){ +close(master); +close(slave);
[gentoo-commits] repo/gentoo:master commit in: app-misc/cw/files/, app-misc/cw/
commit: 43b339616b8cd4ab204fb89b882dfe3d8ca55f78 Author: Alessandro Barbieri gmail com> AuthorDate: Mon Nov 1 16:17:23 2021 + Commit: Sam James gentoo org> CommitDate: Thu Jun 16 00:34:43 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43b33961 app-misc/cw: EAPI 8, fix build Closes: https://bugs.gentoo.org/830507 Closes: https://bugs.gentoo.org/692426 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri gmail.com> Closes: https://github.com/gentoo/gentoo/pull/22782 Signed-off-by: Sam James gentoo.org> app-misc/cw/cw-1.0.16-r4.ebuild| 71 ++ .../cw-1.0.16-replace-isastream-with-fcntl.patch | 20 ++ 2 files changed, 91 insertions(+) diff --git a/app-misc/cw/cw-1.0.16-r4.ebuild b/app-misc/cw/cw-1.0.16-r4.ebuild new file mode 100644 index ..8a1bb807eb9a --- /dev/null +++ b/app-misc/cw/cw-1.0.16-r4.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="A non-intrusive real-time ANSI color wrapper for common unix-based commands" +HOMEPAGE="http://cwrapper.sourceforge.net"; +SRC_URI="mirror://sourceforge/cwrapper/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +PATCHES=( + "${FILESDIR}"/${PV}-ldflags.patch + "${FILESDIR}"/${PV}-path.patch + "${FILESDIR}"/${PV}-collision.patch + "${FILESDIR}"/${PV}-format-security.patch + "${FILESDIR}"/${P}-replace-isastream-with-fcntl.patch +) + +src_unpack() { + default + gunzip "${S}"/man/*.gz || die +} + +src_configure() { + tc-export CC + econf +} + +src_compile() { + emake local +} + +src_install() { + insinto /usr/share/cw + doins etc/* + + exeinto /usr/libexec/cw + doexe def/* + + doman man/cwu.1 + doman man/cwe.1 + newman man/cw.1 color-wrapper + dodoc CHANGES CONTRIB INSTALL README PLATFORM doc/README* + + dobin bin/{cwu,colorcfg} + # app-misc/color currently conflicts; hopefully 'colors' is safe + newbin bin/color colors + # media-radio/unixcw currently conflicts; + newbin bin/cw color-wrapper +} + +pkg_postinst() { + ebegin "Updating definition files" + cwu /usr/libexec/cw /usr/bin/color-wrapper || die # >/dev/null + eend $? + + elog "To enable color-wrapper, as your user, run:" + elog " colorcfg [1|2|3]" + elog "to add relevant environment variables to your ~/.bash_profile" + elog "Run colorcfg without options to see what [1|2|3] means." + elog + elog "After sourcing your ~/.bash_profile, commands for which definitions" + elog "are provided should have colored output." + elog + elog "To enable/disable colored output, run: 'colors [on|off]'." +} diff --git a/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch b/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch new file mode 100644 index ..18f2dba953d2 --- /dev/null +++ b/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch @@ -0,0 +1,20 @@ +--- /var/tmp/portage/app-misc/cw-1.0.16-r3/work/cw-1.0.16/src/cw.c cw-1.0.16/src/cw.c +@@ -1173,7 +1173,7 @@ + close(master); + return(0); + } +- if(isastream(slave)){ ++ if(fcntl(slave,F_GETFD) < 0){ + if(ioctl(slave,I_PUSH,"ptem")<0||ioctl(slave,I_PUSH,"ldterm")<0){ +close(master); +close(slave); +@@ -1211,7 +1211,7 @@ + close(master); + return(0); + } +- if(isastream(slave)){ ++ if(fcntl(slave,F_GETFD) < 0){ + if(ioctl(slave,I_PUSH,"ptem")<0||ioctl(slave,I_PUSH,"ldterm")<0){ +close(master); +close(slave);
[gentoo-commits] repo/gentoo:master commit in: app-misc/cw/files/, app-misc/cw/
commit: 43b339616b8cd4ab204fb89b882dfe3d8ca55f78 Author: Alessandro Barbieri gmail com> AuthorDate: Mon Nov 1 16:17:23 2021 + Commit: Sam James gentoo org> CommitDate: Thu Jun 16 00:34:43 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43b33961 app-misc/cw: EAPI 8, fix build Closes: https://bugs.gentoo.org/830507 Closes: https://bugs.gentoo.org/692426 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri gmail.com> Closes: https://github.com/gentoo/gentoo/pull/22782 Signed-off-by: Sam James gentoo.org> app-misc/cw/cw-1.0.16-r4.ebuild| 71 ++ .../cw-1.0.16-replace-isastream-with-fcntl.patch | 20 ++ 2 files changed, 91 insertions(+) diff --git a/app-misc/cw/cw-1.0.16-r4.ebuild b/app-misc/cw/cw-1.0.16-r4.ebuild new file mode 100644 index ..8a1bb807eb9a --- /dev/null +++ b/app-misc/cw/cw-1.0.16-r4.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="A non-intrusive real-time ANSI color wrapper for common unix-based commands" +HOMEPAGE="http://cwrapper.sourceforge.net"; +SRC_URI="mirror://sourceforge/cwrapper/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +PATCHES=( + "${FILESDIR}"/${PV}-ldflags.patch + "${FILESDIR}"/${PV}-path.patch + "${FILESDIR}"/${PV}-collision.patch + "${FILESDIR}"/${PV}-format-security.patch + "${FILESDIR}"/${P}-replace-isastream-with-fcntl.patch +) + +src_unpack() { + default + gunzip "${S}"/man/*.gz || die +} + +src_configure() { + tc-export CC + econf +} + +src_compile() { + emake local +} + +src_install() { + insinto /usr/share/cw + doins etc/* + + exeinto /usr/libexec/cw + doexe def/* + + doman man/cwu.1 + doman man/cwe.1 + newman man/cw.1 color-wrapper + dodoc CHANGES CONTRIB INSTALL README PLATFORM doc/README* + + dobin bin/{cwu,colorcfg} + # app-misc/color currently conflicts; hopefully 'colors' is safe + newbin bin/color colors + # media-radio/unixcw currently conflicts; + newbin bin/cw color-wrapper +} + +pkg_postinst() { + ebegin "Updating definition files" + cwu /usr/libexec/cw /usr/bin/color-wrapper || die # >/dev/null + eend $? + + elog "To enable color-wrapper, as your user, run:" + elog " colorcfg [1|2|3]" + elog "to add relevant environment variables to your ~/.bash_profile" + elog "Run colorcfg without options to see what [1|2|3] means." + elog + elog "After sourcing your ~/.bash_profile, commands for which definitions" + elog "are provided should have colored output." + elog + elog "To enable/disable colored output, run: 'colors [on|off]'." +} diff --git a/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch b/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch new file mode 100644 index ..18f2dba953d2 --- /dev/null +++ b/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch @@ -0,0 +1,20 @@ +--- /var/tmp/portage/app-misc/cw-1.0.16-r3/work/cw-1.0.16/src/cw.c cw-1.0.16/src/cw.c +@@ -1173,7 +1173,7 @@ + close(master); + return(0); + } +- if(isastream(slave)){ ++ if(fcntl(slave,F_GETFD) < 0){ + if(ioctl(slave,I_PUSH,"ptem")<0||ioctl(slave,I_PUSH,"ldterm")<0){ +close(master); +close(slave); +@@ -1211,7 +1211,7 @@ + close(master); + return(0); + } +- if(isastream(slave)){ ++ if(fcntl(slave,F_GETFD) < 0){ + if(ioctl(slave,I_PUSH,"ptem")<0||ioctl(slave,I_PUSH,"ldterm")<0){ +close(master); +close(slave);
[gentoo-commits] repo/gentoo:master commit in: app-misc/cw/files/, app-misc/cw/
commit: 43b339616b8cd4ab204fb89b882dfe3d8ca55f78 Author: Alessandro Barbieri gmail com> AuthorDate: Mon Nov 1 16:17:23 2021 + Commit: Sam James gentoo org> CommitDate: Thu Jun 16 00:34:43 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43b33961 app-misc/cw: EAPI 8, fix build Closes: https://bugs.gentoo.org/830507 Closes: https://bugs.gentoo.org/692426 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri gmail.com> Closes: https://github.com/gentoo/gentoo/pull/22782 Signed-off-by: Sam James gentoo.org> app-misc/cw/cw-1.0.16-r4.ebuild| 71 ++ .../cw-1.0.16-replace-isastream-with-fcntl.patch | 20 ++ 2 files changed, 91 insertions(+) diff --git a/app-misc/cw/cw-1.0.16-r4.ebuild b/app-misc/cw/cw-1.0.16-r4.ebuild new file mode 100644 index ..8a1bb807eb9a --- /dev/null +++ b/app-misc/cw/cw-1.0.16-r4.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="A non-intrusive real-time ANSI color wrapper for common unix-based commands" +HOMEPAGE="http://cwrapper.sourceforge.net"; +SRC_URI="mirror://sourceforge/cwrapper/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +PATCHES=( + "${FILESDIR}"/${PV}-ldflags.patch + "${FILESDIR}"/${PV}-path.patch + "${FILESDIR}"/${PV}-collision.patch + "${FILESDIR}"/${PV}-format-security.patch + "${FILESDIR}"/${P}-replace-isastream-with-fcntl.patch +) + +src_unpack() { + default + gunzip "${S}"/man/*.gz || die +} + +src_configure() { + tc-export CC + econf +} + +src_compile() { + emake local +} + +src_install() { + insinto /usr/share/cw + doins etc/* + + exeinto /usr/libexec/cw + doexe def/* + + doman man/cwu.1 + doman man/cwe.1 + newman man/cw.1 color-wrapper + dodoc CHANGES CONTRIB INSTALL README PLATFORM doc/README* + + dobin bin/{cwu,colorcfg} + # app-misc/color currently conflicts; hopefully 'colors' is safe + newbin bin/color colors + # media-radio/unixcw currently conflicts; + newbin bin/cw color-wrapper +} + +pkg_postinst() { + ebegin "Updating definition files" + cwu /usr/libexec/cw /usr/bin/color-wrapper || die # >/dev/null + eend $? + + elog "To enable color-wrapper, as your user, run:" + elog " colorcfg [1|2|3]" + elog "to add relevant environment variables to your ~/.bash_profile" + elog "Run colorcfg without options to see what [1|2|3] means." + elog + elog "After sourcing your ~/.bash_profile, commands for which definitions" + elog "are provided should have colored output." + elog + elog "To enable/disable colored output, run: 'colors [on|off]'." +} diff --git a/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch b/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch new file mode 100644 index ..18f2dba953d2 --- /dev/null +++ b/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch @@ -0,0 +1,20 @@ +--- /var/tmp/portage/app-misc/cw-1.0.16-r3/work/cw-1.0.16/src/cw.c cw-1.0.16/src/cw.c +@@ -1173,7 +1173,7 @@ + close(master); + return(0); + } +- if(isastream(slave)){ ++ if(fcntl(slave,F_GETFD) < 0){ + if(ioctl(slave,I_PUSH,"ptem")<0||ioctl(slave,I_PUSH,"ldterm")<0){ +close(master); +close(slave); +@@ -1211,7 +1211,7 @@ + close(master); + return(0); + } +- if(isastream(slave)){ ++ if(fcntl(slave,F_GETFD) < 0){ + if(ioctl(slave,I_PUSH,"ptem")<0||ioctl(slave,I_PUSH,"ldterm")<0){ +close(master); +close(slave);
[gentoo-commits] repo/gentoo:master commit in: app-misc/cw/files/, app-misc/cw/
commit: 43b339616b8cd4ab204fb89b882dfe3d8ca55f78 Author: Alessandro Barbieri gmail com> AuthorDate: Mon Nov 1 16:17:23 2021 + Commit: Sam James gentoo org> CommitDate: Thu Jun 16 00:34:43 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43b33961 app-misc/cw: EAPI 8, fix build Closes: https://bugs.gentoo.org/830507 Closes: https://bugs.gentoo.org/692426 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri gmail.com> Closes: https://github.com/gentoo/gentoo/pull/22782 Signed-off-by: Sam James gentoo.org> app-misc/cw/cw-1.0.16-r4.ebuild| 71 ++ .../cw-1.0.16-replace-isastream-with-fcntl.patch | 20 ++ 2 files changed, 91 insertions(+) diff --git a/app-misc/cw/cw-1.0.16-r4.ebuild b/app-misc/cw/cw-1.0.16-r4.ebuild new file mode 100644 index ..8a1bb807eb9a --- /dev/null +++ b/app-misc/cw/cw-1.0.16-r4.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="A non-intrusive real-time ANSI color wrapper for common unix-based commands" +HOMEPAGE="http://cwrapper.sourceforge.net"; +SRC_URI="mirror://sourceforge/cwrapper/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +PATCHES=( + "${FILESDIR}"/${PV}-ldflags.patch + "${FILESDIR}"/${PV}-path.patch + "${FILESDIR}"/${PV}-collision.patch + "${FILESDIR}"/${PV}-format-security.patch + "${FILESDIR}"/${P}-replace-isastream-with-fcntl.patch +) + +src_unpack() { + default + gunzip "${S}"/man/*.gz || die +} + +src_configure() { + tc-export CC + econf +} + +src_compile() { + emake local +} + +src_install() { + insinto /usr/share/cw + doins etc/* + + exeinto /usr/libexec/cw + doexe def/* + + doman man/cwu.1 + doman man/cwe.1 + newman man/cw.1 color-wrapper + dodoc CHANGES CONTRIB INSTALL README PLATFORM doc/README* + + dobin bin/{cwu,colorcfg} + # app-misc/color currently conflicts; hopefully 'colors' is safe + newbin bin/color colors + # media-radio/unixcw currently conflicts; + newbin bin/cw color-wrapper +} + +pkg_postinst() { + ebegin "Updating definition files" + cwu /usr/libexec/cw /usr/bin/color-wrapper || die # >/dev/null + eend $? + + elog "To enable color-wrapper, as your user, run:" + elog " colorcfg [1|2|3]" + elog "to add relevant environment variables to your ~/.bash_profile" + elog "Run colorcfg without options to see what [1|2|3] means." + elog + elog "After sourcing your ~/.bash_profile, commands for which definitions" + elog "are provided should have colored output." + elog + elog "To enable/disable colored output, run: 'colors [on|off]'." +} diff --git a/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch b/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch new file mode 100644 index ..18f2dba953d2 --- /dev/null +++ b/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch @@ -0,0 +1,20 @@ +--- /var/tmp/portage/app-misc/cw-1.0.16-r3/work/cw-1.0.16/src/cw.c cw-1.0.16/src/cw.c +@@ -1173,7 +1173,7 @@ + close(master); + return(0); + } +- if(isastream(slave)){ ++ if(fcntl(slave,F_GETFD) < 0){ + if(ioctl(slave,I_PUSH,"ptem")<0||ioctl(slave,I_PUSH,"ldterm")<0){ +close(master); +close(slave); +@@ -1211,7 +1211,7 @@ + close(master); + return(0); + } +- if(isastream(slave)){ ++ if(fcntl(slave,F_GETFD) < 0){ + if(ioctl(slave,I_PUSH,"ptem")<0||ioctl(slave,I_PUSH,"ldterm")<0){ +close(master); +close(slave);
[gentoo-commits] repo/gentoo:master commit in: app-misc/cw/files/, app-misc/cw/
commit: 43b339616b8cd4ab204fb89b882dfe3d8ca55f78 Author: Alessandro Barbieri gmail com> AuthorDate: Mon Nov 1 16:17:23 2021 + Commit: Sam James gentoo org> CommitDate: Thu Jun 16 00:34:43 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43b33961 app-misc/cw: EAPI 8, fix build Closes: https://bugs.gentoo.org/830507 Closes: https://bugs.gentoo.org/692426 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri gmail.com> Closes: https://github.com/gentoo/gentoo/pull/22782 Signed-off-by: Sam James gentoo.org> app-misc/cw/cw-1.0.16-r4.ebuild| 71 ++ .../cw-1.0.16-replace-isastream-with-fcntl.patch | 20 ++ 2 files changed, 91 insertions(+) diff --git a/app-misc/cw/cw-1.0.16-r4.ebuild b/app-misc/cw/cw-1.0.16-r4.ebuild new file mode 100644 index ..8a1bb807eb9a --- /dev/null +++ b/app-misc/cw/cw-1.0.16-r4.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="A non-intrusive real-time ANSI color wrapper for common unix-based commands" +HOMEPAGE="http://cwrapper.sourceforge.net"; +SRC_URI="mirror://sourceforge/cwrapper/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +PATCHES=( + "${FILESDIR}"/${PV}-ldflags.patch + "${FILESDIR}"/${PV}-path.patch + "${FILESDIR}"/${PV}-collision.patch + "${FILESDIR}"/${PV}-format-security.patch + "${FILESDIR}"/${P}-replace-isastream-with-fcntl.patch +) + +src_unpack() { + default + gunzip "${S}"/man/*.gz || die +} + +src_configure() { + tc-export CC + econf +} + +src_compile() { + emake local +} + +src_install() { + insinto /usr/share/cw + doins etc/* + + exeinto /usr/libexec/cw + doexe def/* + + doman man/cwu.1 + doman man/cwe.1 + newman man/cw.1 color-wrapper + dodoc CHANGES CONTRIB INSTALL README PLATFORM doc/README* + + dobin bin/{cwu,colorcfg} + # app-misc/color currently conflicts; hopefully 'colors' is safe + newbin bin/color colors + # media-radio/unixcw currently conflicts; + newbin bin/cw color-wrapper +} + +pkg_postinst() { + ebegin "Updating definition files" + cwu /usr/libexec/cw /usr/bin/color-wrapper || die # >/dev/null + eend $? + + elog "To enable color-wrapper, as your user, run:" + elog " colorcfg [1|2|3]" + elog "to add relevant environment variables to your ~/.bash_profile" + elog "Run colorcfg without options to see what [1|2|3] means." + elog + elog "After sourcing your ~/.bash_profile, commands for which definitions" + elog "are provided should have colored output." + elog + elog "To enable/disable colored output, run: 'colors [on|off]'." +} diff --git a/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch b/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch new file mode 100644 index ..18f2dba953d2 --- /dev/null +++ b/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch @@ -0,0 +1,20 @@ +--- /var/tmp/portage/app-misc/cw-1.0.16-r3/work/cw-1.0.16/src/cw.c cw-1.0.16/src/cw.c +@@ -1173,7 +1173,7 @@ + close(master); + return(0); + } +- if(isastream(slave)){ ++ if(fcntl(slave,F_GETFD) < 0){ + if(ioctl(slave,I_PUSH,"ptem")<0||ioctl(slave,I_PUSH,"ldterm")<0){ +close(master); +close(slave); +@@ -1211,7 +1211,7 @@ + close(master); + return(0); + } +- if(isastream(slave)){ ++ if(fcntl(slave,F_GETFD) < 0){ + if(ioctl(slave,I_PUSH,"ptem")<0||ioctl(slave,I_PUSH,"ldterm")<0){ +close(master); +close(slave);
[gentoo-commits] repo/gentoo:master commit in: app-misc/cw/files/, app-misc/cw/
commit: 43b339616b8cd4ab204fb89b882dfe3d8ca55f78 Author: Alessandro Barbieri gmail com> AuthorDate: Mon Nov 1 16:17:23 2021 + Commit: Sam James gentoo org> CommitDate: Thu Jun 16 00:34:43 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43b33961 app-misc/cw: EAPI 8, fix build Closes: https://bugs.gentoo.org/830507 Closes: https://bugs.gentoo.org/692426 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri gmail.com> Closes: https://github.com/gentoo/gentoo/pull/22782 Signed-off-by: Sam James gentoo.org> app-misc/cw/cw-1.0.16-r4.ebuild| 71 ++ .../cw-1.0.16-replace-isastream-with-fcntl.patch | 20 ++ 2 files changed, 91 insertions(+) diff --git a/app-misc/cw/cw-1.0.16-r4.ebuild b/app-misc/cw/cw-1.0.16-r4.ebuild new file mode 100644 index ..8a1bb807eb9a --- /dev/null +++ b/app-misc/cw/cw-1.0.16-r4.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="A non-intrusive real-time ANSI color wrapper for common unix-based commands" +HOMEPAGE="http://cwrapper.sourceforge.net"; +SRC_URI="mirror://sourceforge/cwrapper/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +PATCHES=( + "${FILESDIR}"/${PV}-ldflags.patch + "${FILESDIR}"/${PV}-path.patch + "${FILESDIR}"/${PV}-collision.patch + "${FILESDIR}"/${PV}-format-security.patch + "${FILESDIR}"/${P}-replace-isastream-with-fcntl.patch +) + +src_unpack() { + default + gunzip "${S}"/man/*.gz || die +} + +src_configure() { + tc-export CC + econf +} + +src_compile() { + emake local +} + +src_install() { + insinto /usr/share/cw + doins etc/* + + exeinto /usr/libexec/cw + doexe def/* + + doman man/cwu.1 + doman man/cwe.1 + newman man/cw.1 color-wrapper + dodoc CHANGES CONTRIB INSTALL README PLATFORM doc/README* + + dobin bin/{cwu,colorcfg} + # app-misc/color currently conflicts; hopefully 'colors' is safe + newbin bin/color colors + # media-radio/unixcw currently conflicts; + newbin bin/cw color-wrapper +} + +pkg_postinst() { + ebegin "Updating definition files" + cwu /usr/libexec/cw /usr/bin/color-wrapper || die # >/dev/null + eend $? + + elog "To enable color-wrapper, as your user, run:" + elog " colorcfg [1|2|3]" + elog "to add relevant environment variables to your ~/.bash_profile" + elog "Run colorcfg without options to see what [1|2|3] means." + elog + elog "After sourcing your ~/.bash_profile, commands for which definitions" + elog "are provided should have colored output." + elog + elog "To enable/disable colored output, run: 'colors [on|off]'." +} diff --git a/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch b/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch new file mode 100644 index ..18f2dba953d2 --- /dev/null +++ b/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch @@ -0,0 +1,20 @@ +--- /var/tmp/portage/app-misc/cw-1.0.16-r3/work/cw-1.0.16/src/cw.c cw-1.0.16/src/cw.c +@@ -1173,7 +1173,7 @@ + close(master); + return(0); + } +- if(isastream(slave)){ ++ if(fcntl(slave,F_GETFD) < 0){ + if(ioctl(slave,I_PUSH,"ptem")<0||ioctl(slave,I_PUSH,"ldterm")<0){ +close(master); +close(slave); +@@ -1211,7 +1211,7 @@ + close(master); + return(0); + } +- if(isastream(slave)){ ++ if(fcntl(slave,F_GETFD) < 0){ + if(ioctl(slave,I_PUSH,"ptem")<0||ioctl(slave,I_PUSH,"ldterm")<0){ +close(master); +close(slave);
[gentoo-commits] repo/gentoo:master commit in: app-misc/cw/files/, app-misc/cw/
commit: 43b339616b8cd4ab204fb89b882dfe3d8ca55f78 Author: Alessandro Barbieri gmail com> AuthorDate: Mon Nov 1 16:17:23 2021 + Commit: Sam James gentoo org> CommitDate: Thu Jun 16 00:34:43 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43b33961 app-misc/cw: EAPI 8, fix build Closes: https://bugs.gentoo.org/830507 Closes: https://bugs.gentoo.org/692426 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri gmail.com> Closes: https://github.com/gentoo/gentoo/pull/22782 Signed-off-by: Sam James gentoo.org> app-misc/cw/cw-1.0.16-r4.ebuild| 71 ++ .../cw-1.0.16-replace-isastream-with-fcntl.patch | 20 ++ 2 files changed, 91 insertions(+) diff --git a/app-misc/cw/cw-1.0.16-r4.ebuild b/app-misc/cw/cw-1.0.16-r4.ebuild new file mode 100644 index ..8a1bb807eb9a --- /dev/null +++ b/app-misc/cw/cw-1.0.16-r4.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="A non-intrusive real-time ANSI color wrapper for common unix-based commands" +HOMEPAGE="http://cwrapper.sourceforge.net"; +SRC_URI="mirror://sourceforge/cwrapper/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +PATCHES=( + "${FILESDIR}"/${PV}-ldflags.patch + "${FILESDIR}"/${PV}-path.patch + "${FILESDIR}"/${PV}-collision.patch + "${FILESDIR}"/${PV}-format-security.patch + "${FILESDIR}"/${P}-replace-isastream-with-fcntl.patch +) + +src_unpack() { + default + gunzip "${S}"/man/*.gz || die +} + +src_configure() { + tc-export CC + econf +} + +src_compile() { + emake local +} + +src_install() { + insinto /usr/share/cw + doins etc/* + + exeinto /usr/libexec/cw + doexe def/* + + doman man/cwu.1 + doman man/cwe.1 + newman man/cw.1 color-wrapper + dodoc CHANGES CONTRIB INSTALL README PLATFORM doc/README* + + dobin bin/{cwu,colorcfg} + # app-misc/color currently conflicts; hopefully 'colors' is safe + newbin bin/color colors + # media-radio/unixcw currently conflicts; + newbin bin/cw color-wrapper +} + +pkg_postinst() { + ebegin "Updating definition files" + cwu /usr/libexec/cw /usr/bin/color-wrapper || die # >/dev/null + eend $? + + elog "To enable color-wrapper, as your user, run:" + elog " colorcfg [1|2|3]" + elog "to add relevant environment variables to your ~/.bash_profile" + elog "Run colorcfg without options to see what [1|2|3] means." + elog + elog "After sourcing your ~/.bash_profile, commands for which definitions" + elog "are provided should have colored output." + elog + elog "To enable/disable colored output, run: 'colors [on|off]'." +} diff --git a/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch b/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch new file mode 100644 index ..18f2dba953d2 --- /dev/null +++ b/app-misc/cw/files/cw-1.0.16-replace-isastream-with-fcntl.patch @@ -0,0 +1,20 @@ +--- /var/tmp/portage/app-misc/cw-1.0.16-r3/work/cw-1.0.16/src/cw.c cw-1.0.16/src/cw.c +@@ -1173,7 +1173,7 @@ + close(master); + return(0); + } +- if(isastream(slave)){ ++ if(fcntl(slave,F_GETFD) < 0){ + if(ioctl(slave,I_PUSH,"ptem")<0||ioctl(slave,I_PUSH,"ldterm")<0){ +close(master); +close(slave); +@@ -1211,7 +1211,7 @@ + close(master); + return(0); + } +- if(isastream(slave)){ ++ if(fcntl(slave,F_GETFD) < 0){ + if(ioctl(slave,I_PUSH,"ptem")<0||ioctl(slave,I_PUSH,"ldterm")<0){ +close(master); +close(slave);
[gentoo-commits] repo/gentoo:master commit in: app-misc/cw/files/, app-misc/cw/
commit: 9c83c91ab52747439175091db2509e34c2a89122 Author: Sam James gentoo org> AuthorDate: Thu Oct 20 03:49:45 2022 + Commit: Sam James gentoo org> CommitDate: Thu Oct 20 03:50:11 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c83c91a app-misc/cw: respect CPPFLAGS Bug: https://bugs.gentoo.org/870751 Fixes: af397b3d6dec93a39eb752d80dd10695d654958a Signed-off-by: Sam James gentoo.org> app-misc/cw/cw-1.0.16-r5.ebuild| 8 +++- app-misc/cw/files/cw-1.0.16-Respect-CPPFLAGS.patch | 21 + 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/app-misc/cw/cw-1.0.16-r5.ebuild b/app-misc/cw/cw-1.0.16-r5.ebuild index c66048665427..055fddd637fe 100644 --- a/app-misc/cw/cw-1.0.16-r5.ebuild +++ b/app-misc/cw/cw-1.0.16-r5.ebuild @@ -21,23 +21,21 @@ PATCHES=( "${FILESDIR}"/${PV}-format-security.patch "${FILESDIR}"/${P}-replace-isastream-with-fcntl.patch "${FILESDIR}"/${P}-fix-configure-for-newer-autotools.patch + "${FILESDIR}"/${P}-Respect-CPPFLAGS.patch ) -src_unpack() { +src_prepare() { default gunzip "${S}"/man/*.gz || die -} -src_prepare() { - default eautoreconf } src_configure() { tc-export CC - append-flags -D_XOPEN_SOURCE=500 -D_GNU_SOURCE + append-cppflags -D_GNU_SOURCE econf } diff --git a/app-misc/cw/files/cw-1.0.16-Respect-CPPFLAGS.patch b/app-misc/cw/files/cw-1.0.16-Respect-CPPFLAGS.patch new file mode 100644 index ..b1ae96daf4a4 --- /dev/null +++ b/app-misc/cw/files/cw-1.0.16-Respect-CPPFLAGS.patch @@ -0,0 +1,21 @@ +From 64249a5b7e2aaa4b53e41deb767a164cf5b68421 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Thu, 20 Oct 2022 04:48:48 +0100 +Subject: [PATCH] Respect CPPFLAGS + +--- a/Makefile.in b/Makefile.in +@@ -19,11 +19,11 @@ all: + + cw: + @$(ECHO) "* Compiling cw(color wrapper)..." +- $(CC) $(CFLAGS) $(LDFLAGS) src/cw.c -o bin/cw @CFLAGS@ @LIBS@ @DEFS@ ++ $(CC) $(CPPFLAGS) @DEFS@ $(CFLAGS) @CFLAGS@ $(LDFLAGS) src/cw.c -o bin/cw @LIBS@ + + cwu: + @$(ECHO) "* Compiling cwu(color wrapper directive updater)..." +- $(CC) $(CFLAGS) $(LDFLAGS) src/cwu.c -o bin/cwu ++ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) src/cwu.c -o bin/cwu + + local: cw cwu +
[gentoo-commits] repo/gentoo:master commit in: app-misc/cw/files/, app-misc/cw/
commit: 168b50a0f6e705286b28213f7c77f5421ec8b915 Author: Pascal Jäger leimstift de> AuthorDate: Wed Oct 19 19:56:07 2022 + Commit: Sam James gentoo org> CommitDate: Thu Oct 20 03:50:05 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=168b50a0 app-misc/cw: 1.0.16 revbump, fix build for clang16 Fixes: af397b3d6dec93a39eb752d80dd10695d654958a Closes: https://bugs.gentoo.org/870751 Signed-off-by: Pascal Jäger leimstift.de> Closes: https://github.com/gentoo/gentoo/pull/27857 Signed-off-by: Sam James gentoo.org> app-misc/cw/{cw-1.0.16-r4.ebuild => cw-1.0.16-r5.ebuild} | 9 - .../cw/files/cw-1.0.16-fix-configure-for-newer-autotools.patch | 10 ++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/app-misc/cw/cw-1.0.16-r4.ebuild b/app-misc/cw/cw-1.0.16-r5.ebuild similarity index 90% rename from app-misc/cw/cw-1.0.16-r4.ebuild rename to app-misc/cw/cw-1.0.16-r5.ebuild index b738753f2715..c66048665427 100644 --- a/app-misc/cw/cw-1.0.16-r4.ebuild +++ b/app-misc/cw/cw-1.0.16-r5.ebuild @@ -3,7 +3,8 @@ EAPI=8 -inherit flag-o-matic toolchain-funcs +WANT_AUTOMAKE="none" +inherit autotools flag-o-matic toolchain-funcs DESCRIPTION="A non-intrusive real-time ANSI color wrapper for common unix-based commands" HOMEPAGE="http://cwrapper.sourceforge.net"; @@ -19,6 +20,7 @@ PATCHES=( "${FILESDIR}"/${PV}-collision.patch "${FILESDIR}"/${PV}-format-security.patch "${FILESDIR}"/${P}-replace-isastream-with-fcntl.patch + "${FILESDIR}"/${P}-fix-configure-for-newer-autotools.patch ) src_unpack() { @@ -27,6 +29,11 @@ src_unpack() { gunzip "${S}"/man/*.gz || die } +src_prepare() { + default + eautoreconf +} + src_configure() { tc-export CC diff --git a/app-misc/cw/files/cw-1.0.16-fix-configure-for-newer-autotools.patch b/app-misc/cw/files/cw-1.0.16-fix-configure-for-newer-autotools.patch new file mode 100644 index ..038e30074371 --- /dev/null +++ b/app-misc/cw/files/cw-1.0.16-fix-configure-for-newer-autotools.patch @@ -0,0 +1,10 @@ +--- a/configure.in b/configure.in +@@ -17,7 +17,6 @@ ORIG_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -Wall" + AC_TRY_COMPILE(,[return 0;],AC_MSG_RESULT(yes),AC_MSG_RESULT(no);CFLAGS="$ORIG_CFLAGS") + AC_CONFIG_HEADER(config.h) +-AC_REQUIRE([AC_HEADER_STDC]) + AC_CHECK_LIB(util, openpty) + AC_CHECK_FILE("/dev/ptmx", AC_DEFINE(HAVE_DEV_PTMX, 1, Have /dev/ptmx.)) + AC_CHECK_FUNCS(getpt isatty isxdigit openpty putenv regcomp setenv setproctitle setsid sigaction sscanf uname unsetenv vsnprintf waitpid)