* [gentoo-dev] RFC: pax-utils.eclass, downgrade from elog to einfo to avoid flooding logs
@ 2012-04-03 13:55 Anthony G. Basile
2012-04-06 17:56 ` Anthony G. Basile
0 siblings, 1 reply; 2+ messages in thread
From: Anthony G. Basile @ 2012-04-03 13:55 UTC (permalink / raw
To: Gentoo Development
Hi everyone,
pax-utils.eclass generates a lot of log messages when marking a large
number of files, for example icedtea-bin. These messages are not that
useful, so I propose downgrading all elog's to einfo's to avoid
flooding. See bug #407503. If there are no objections, I'll commit the
following in a few days:
--- pax-utils.eclass.orig 2012-04-03 09:29:41.000000000 -0400
+++ pax-utils.eclass 2012-04-03 09:30:49.000000000 -0400
@@ -58,8 +58,8 @@
# Try paxctl, then scanelf. paxctl is preferred.
if type -p paxctl> /dev/null&& has PT ${PAX_MARKINGS}; then
# Try paxctl, the upstream supported tool.
- elog "PT PaX marking -${flags}"
- _pax_list_files elog "$@"
+ einfo "PT PaX marking -${flags}"
+ _pax_list_files einfo "$@"
for f in "$@"; do
# First, try modifying the existing PAX_FLAGS header
paxctl -q${flags} "${f}"&& continue
@@ -91,8 +91,8 @@
elif type -p scanelf> /dev/null&& [[ ${PAX_MARKINGS} != "none" ]]; then
# Try scanelf, the Gentoo swiss-army knife ELF utility
# Currently this sets PT if it can, no option to control what it does.
- elog "Fallback PaX marking -${flags}"
- _pax_list_files elog "$@"
+ einfo "Fallback PaX marking -${flags}"
+ _pax_list_files einfo "$@"
scanelf -Xxz ${flags} "$@"
elif [[ ${PAX_MARKINGS} != "none" ]]; then
# Out of options!
--
Anthony G. Basile, Ph.D.
Gentoo Linux Developer [Hardened]
E-Mail : blueness@gentoo.org
GnuPG FP : 8040 5A4D 8709 21B1 1A88 33CE 979C AF40 D045 5535
GnuPG ID : D0455535
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-dev] RFC: pax-utils.eclass, downgrade from elog to einfo to avoid flooding logs
2012-04-03 13:55 [gentoo-dev] RFC: pax-utils.eclass, downgrade from elog to einfo to avoid flooding logs Anthony G. Basile
@ 2012-04-06 17:56 ` Anthony G. Basile
0 siblings, 0 replies; 2+ messages in thread
From: Anthony G. Basile @ 2012-04-06 17:56 UTC (permalink / raw
To: gentoo-dev
Okay no feedback. I'm assuming no one had any issues. I'm committing.
On 04/03/2012 09:55 AM, Anthony G. Basile wrote:
> Hi everyone,
>
> pax-utils.eclass generates a lot of log messages when marking a large
> number of files, for example icedtea-bin. These messages are not that
> useful, so I propose downgrading all elog's to einfo's to avoid
> flooding. See bug #407503. If there are no objections, I'll commit
> the following in a few days:
>
> --- pax-utils.eclass.orig 2012-04-03 09:29:41.000000000 -0400
> +++ pax-utils.eclass 2012-04-03 09:30:49.000000000 -0400
> @@ -58,8 +58,8 @@
> # Try paxctl, then scanelf. paxctl is preferred.
> if type -p paxctl> /dev/null&& has PT ${PAX_MARKINGS}; then
> # Try paxctl, the upstream supported tool.
> - elog "PT PaX marking -${flags}"
> - _pax_list_files elog "$@"
> + einfo "PT PaX marking -${flags}"
> + _pax_list_files einfo "$@"
> for f in "$@"; do
> # First, try modifying the existing PAX_FLAGS header
> paxctl -q${flags} "${f}"&& continue
> @@ -91,8 +91,8 @@
> elif type -p scanelf> /dev/null&& [[ ${PAX_MARKINGS} != "none"
> ]]; then
> # Try scanelf, the Gentoo swiss-army knife ELF utility
> # Currently this sets PT if it can, no option to control what
> it does.
> - elog "Fallback PaX marking -${flags}"
> - _pax_list_files elog "$@"
> + einfo "Fallback PaX marking -${flags}"
> + _pax_list_files einfo "$@"
> scanelf -Xxz ${flags} "$@"
> elif [[ ${PAX_MARKINGS} != "none" ]]; then
> # Out of options!
>
>
>
--
Anthony G. Basile, Ph.D.
Gentoo Linux Developer [Hardened]
E-Mail : blueness@gentoo.org
GnuPG FP : 8040 5A4D 8709 21B1 1A88 33CE 979C AF40 D045 5535
GnuPG ID : D0455535
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-06 17:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-03 13:55 [gentoo-dev] RFC: pax-utils.eclass, downgrade from elog to einfo to avoid flooding logs Anthony G. Basile
2012-04-06 17:56 ` Anthony G. Basile
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox