[gentoo-dev] Re: Importance of SLOTs on Java dependencies
On Wed, 8 Apr 2015 16:25:20 +0100 James Le Cuirot ch...@gentoo.org wrote: On Wed, 8 Apr 2015 17:10:30 +0200 Patrice Clement monsie...@gentoo.org wrote: Tuesday 07 Apr 2015 20:41:05, Pacho Ramos wrote : Wouldn't be possible to show a repoman warning when a dependency on any dev-java/${PN} doesn't specify a SLOT? That would save of from forgetting this in some years ;) Chewi suggested a similar solution in #gentoo-java. How do we get started with contributing to repoman? The change I intend to make is not to repoman but java-utils-2.eclass where there is already a check to ensure that a dependency has been added, it just doesn't check the SLOT at the moment. It outputs an error message by default but dies if you have JAVA_PKG_STRICT set, which all Java devs should do. I just got this warning and had to do some digging to figure out where it came from and what it wanted me to do. Can you add a comment to the eclass (maybe a link to your mail which explained things well) and a pointer to the eclass in the message? -- Ryan Hillpsn: dirtyepic_sk gcc-porting/toolchain/wxwidgets @ gentoo.org 47C3 6D62 4864 0E49 8E9E 7F92 ED38 BD49 957A 8463 pgpFJ2VxJ9OCK.pgp Description: OpenPGP digital signature
RE: [gentoo-dev] Re: bug-wrangling (was: [warning] the bug queue has 111 bugs)
Ian Stakenvicius wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 17/04/15 12:13 PM, Franz Fellner wrote: Alex Alexander wrote: Our bug queue has 111 bugs! If you have some spare time, please help assign/sort a few bugs. To view the bug queue, click here: http://bit.ly/m8PQS5 Thanks! Is there something non-devs could do? Would it be OK to just CC HERD mail from epkginfo (as I am not allowed to reassign). Because I at least once a day browse the bug database and could at least CC some of the new bugs. A few years before I became I dev, I did a short stint as a bug-wrangler -- iirc all you need to do is train yourself via the bug-wrangling guide and find someone to vouch for you in order to obtain write-access to bugzilla. I don't know who you would talk to about this right now (NP-Hardass maybe??) but I'm sure that we could use the help, if you wanted to lend a hand. Ian, thx for your answer! I thought about it if I really want to become a DEV, and I still don't know. I think I will just go and contact bug-wranglers and look what's happending ;) It just hurts to see those daily messages about un-assigned bugs :/ -BEGIN PGP SIGNATURE- Version: GnuPG v2 iF4EAREIAAYFAlUxSJgACgkQ2ugaI38ACPCQJwD9HCxFXXsnUXR5WU3dHBsvO93Z v7u2nzotdNAREAOBRekBAKRpu8xdSfxeE5GIBF0KOEGBqNMZ3Mtl2jjluN7EQZfs =qR8R -END PGP SIGNATURE-
[gentoo-dev] Automated Package Removal and Addition Tracker, for the week ending 2015-04-19 23:59 UTC
The attached list notes all of the packages that were added or removed from the tree, for the week ending 2015-04-19 23:59 UTC. Removals: app-vim/xolox-misc 2015-04-13 18:50:36 radhermit net-im/pymsn-t 2015-04-14 19:55:51 mrueg net-im/pebrot 2015-04-14 19:56:35 mrueg net-im/msnlib 2015-04-14 19:57:34 mrueg net-libs/libmsn 2015-04-14 19:58:29 mrueg dev-perl/Cgi-Simple 2015-04-18 19:16:20 dilfridge Additions: app-emacs/bison-mode2015-04-13 19:31:41 nicolasbock games-board/chessx 2015-04-13 20:53:06 mr_bones_ dev-java/jutils 2015-04-13 22:18:12 chewi dev-java/jinput 2015-04-13 22:21:38 chewi sci-electronics/Stage 2015-04-14 10:31:01 aballier app-admin/logstash-bin 2015-04-14 11:21:06 idella4 dev-libs/console_bridge 2015-04-14 12:09:50 aballier dev-libs/urdfdom_headers2015-04-14 12:27:17 aballier dev-libs/urdfdom2015-04-14 12:37:32 aballier dev-libs/sdformat 2015-04-14 12:41:19 aballier sci-electronics/gazebo 2015-04-14 15:51:09 aballier sci-visualization/labplot 2015-04-15 15:10:28 dilfridge app-eselect/eselect-scala 2015-04-17 14:36:02 gienah dev-perl/CGI-Simple 2015-04-18 19:13:36 dilfridge games-roguelike/dwarf-fortress 2015-04-19 01:40:24 creffett dev-java/sbt2015-04-19 05:55:53 gienah -- Robin Hugh Johnson Gentoo Linux Developer E-Mail : robb...@gentoo.org GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85 Removed Packages: app-vim/xolox-misc,removed,radhermit,2015-04-13 18:50:36 net-im/pymsn-t,removed,mrueg,2015-04-14 19:55:51 net-im/pebrot,removed,mrueg,2015-04-14 19:56:35 net-im/msnlib,removed,mrueg,2015-04-14 19:57:34 net-libs/libmsn,removed,mrueg,2015-04-14 19:58:29 dev-perl/Cgi-Simple,removed,dilfridge,2015-04-18 19:16:20 Added Packages: app-emacs/bison-mode,added,nicolasbock,2015-04-13 19:31:41 games-board/chessx,added,mr_bones_,2015-04-13 20:53:06 dev-java/jutils,added,chewi,2015-04-13 22:18:12 dev-java/jinput,added,chewi,2015-04-13 22:21:38 sci-electronics/Stage,added,aballier,2015-04-14 10:31:01 app-admin/logstash-bin,added,idella4,2015-04-14 11:21:06 dev-libs/console_bridge,added,aballier,2015-04-14 12:09:50 dev-libs/urdfdom_headers,added,aballier,2015-04-14 12:27:17 dev-libs/urdfdom,added,aballier,2015-04-14 12:37:32 dev-libs/sdformat,added,aballier,2015-04-14 12:41:19 sci-electronics/gazebo,added,aballier,2015-04-14 15:51:09 sci-visualization/labplot,added,dilfridge,2015-04-15 15:10:28 app-eselect/eselect-scala,added,gienah,2015-04-17 14:36:02 dev-perl/CGI-Simple,added,dilfridge,2015-04-18 19:13:36 games-roguelike/dwarf-fortress,added,creffett,2015-04-19 01:40:24 dev-java/sbt,added,gienah,2015-04-19 05:55:53 Done.
[gentoo-portage-dev] [PATCH 2/2] MEDIUM: misc-functions: Be more verbose when removing INSTALL_MASK glob
From: Bertrand Jacquin bertr...@jacquin.bzh When glob are defined in INSTALL_MASK, no output is given on what file has been deleted. The following patch provide more information to user about what is actually removed. Example: # INSTALL_MASK='*.h' emerge -va1t x11-proto/xproto .. Installing (1 of 2) x11-proto/xproto-7.0.27::gentoo * Removing /usr/include/X11/Xproto.h * Removing /usr/include/X11/keysym.h * Removing /usr/include/X11/HPkeysym.h * Removing /usr/include/X11/Xthreads.h * Removing /usr/include/X11/Xalloca.h * Removing /usr/include/X11/Xwinsock.h * Removing /usr/include/X11/DECkeysym.h * Removing /usr/include/X11/XWDFile.h * Removing /usr/include/X11/Xos_r.h * Removing /usr/include/X11/XF86keysym.h * Removing /usr/include/X11/Xarch.h * Removing /usr/include/X11/Xfuncs.h * Removing /usr/include/X11/keysymdef.h * Removing /usr/include/X11/Xwindows.h * Removing /usr/include/X11/Xw32defs.h * Removing /usr/include/X11/Xdefs.h * Removing /usr/include/X11/Xprotostr.h * Removing /usr/include/X11/Xatom.h * Removing /usr/include/X11/Xpoll.h * Removing /usr/include/X11/Xos.h * Removing /usr/include/X11/ap_keysym.h * Removing /usr/include/X11/Xosdefs.h * Removing /usr/include/X11/Xmd.h * Removing /usr/include/X11/Sunkeysym.h * Removing /usr/include/X11/Xfuncproto.h * Removing /usr/include/X11/X.h * checking 1 files for package collisions Merging x11-proto/xproto-7.0.27 to / Signed-off-by: Bertrand Jacquin bertr...@jacquin.bzh --- bin/misc-functions.sh | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 36a3bb8..a7c431c 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -275,8 +275,12 @@ install_mask() { fi # we also need to handle globs (*.a, *.h, etc) - find ${root} \( -path ${no_inst} -or -name ${no_inst} \) \ - -exec rm -fR {} \; /dev/null 21 + find ${root} \( -path ${no_inst} -or -name ${no_inst} \) 2 /dev/null \ + | while read; do + __quiet_mode || einfo Removing /${REPLY#${root}} + rm -Rf ${REPLY} /dev/null + done + done # set everything back the way we found it set +o noglob
[gentoo-portage-dev] [PATCH 1/2] MEDIUM: misc-functions: Be more quiet when removing non existing INSTALL_MASK
From: Bertrand Jacquin bertr...@jacquin.bzh When FEATURES=nodoc noinfo noman is used, you will get the following output for every packages, even virtual that contain no file: # FEATURES=nodoc noinfo noman emerge -va1t virtual/cron .. Installing (1 of 1) virtual/cron-0::gentoo * Removing /usr/share/man * Removing /usr/share/info * Removing /usr/share/doc * checking 0 files for package collisions Merging virtual/cron-0 to / The following patch makes the output as: # FEATURES=nodoc noinfo noman emerge -va1t virtual/cron .. Installing (1 of 1) virtual/cron-0::gentoo * checking 0 files for package collisions Merging virtual/cron-0 to / Signed-off-by: Bertrand Jacquin bertr...@jacquin.bzh --- bin/misc-functions.sh | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index e08c228..36a3bb8 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -267,9 +267,12 @@ install_mask() { local no_inst for no_inst in ${install_mask}; do set +o noglob - __quiet_mode || einfo Removing ${no_inst} + # normal stuff - rm -Rf ${root}/${no_inst} /dev/null + if [[ -e ${root}/${no_inst} ]] ; then + __quiet_mode || einfo Removing ${no_inst} + rm -Rf ${root}/${no_inst} /dev/null + fi # we also need to handle globs (*.a, *.h, etc) find ${root} \( -path ${no_inst} -or -name ${no_inst} \) \
Re: [gentoo-portage-dev] [PATCH 2/2] MEDIUM: misc-functions: Be more verbose when removing INSTALL_MASK glob
On 04/19/2015 03:35 PM, Bertrand Jaquin wrote: + find ${root} \( -path ${no_inst} -or -name ${no_inst} \) 2 /dev/null \ + | while read; do + __quiet_mode || einfo Removing /${REPLY#${root}} + rm -Rf ${REPLY} /dev/null + done + Please use find -print0 | while read -r -d '' to ensure that it works will all possible paths. -- Thanks, Zac
[gentoo-portage-dev] [PATCH] _doebuild_path: add fallback for temp PORTAGE_BIN_PATH (bug 547086)
X-Gentoo-Bug: 547086 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=547086 --- pym/portage/package/ebuild/doebuild.py | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py index 1be83ad..4d926c7 100644 --- a/pym/portage/package/ebuild/doebuild.py +++ b/pym/portage/package/ebuild/doebuild.py @@ -195,7 +195,10 @@ def _doebuild_path(settings, eapi=None): # Note: PORTAGE_BIN_PATH may differ from the global constant # when portage is reinstalling itself. - portage_bin_path = settings[PORTAGE_BIN_PATH] + portage_bin_path = [settings[PORTAGE_BIN_PATH]] + if portage_bin_path[0] != portage.const.PORTAGE_BIN_PATH: + # Add a fallback path for restarting failed builds (bug 547086) + portage_bin_path.append(portage.const.PORTAGE_BIN_PATH) eprefix = portage.const.EPREFIX prerootpath = [x for x in settings.get(PREROOTPATH, ).split(:) if x] rootpath = [x for x in settings.get(ROOTPATH, ).split(:) if x] @@ -210,18 +213,22 @@ def _doebuild_path(settings, eapi=None): path = overrides if xattr in settings.features: - path.append(os.path.join(portage_bin_path, ebuild-helpers, xattr)) + for x in portage_bin_path: + path.append(os.path.join(x, ebuild-helpers, xattr)) if uid != 0 and \ unprivileged in settings.features and \ fakeroot not in settings.features: - path.append(os.path.join(portage_bin_path, - ebuild-helpers, unprivileged)) + for x in portage_bin_path: + path.append(os.path.join(x, + ebuild-helpers, unprivileged)) if settings.get(USERLAND, GNU) != GNU: - path.append(os.path.join(portage_bin_path, ebuild-helpers, bsd)) + for x in portage_bin_path: + path.append(os.path.join(x, ebuild-helpers, bsd)) - path.append(os.path.join(portage_bin_path, ebuild-helpers)) + for x in portage_bin_path: + path.append(os.path.join(x, ebuild-helpers)) path.extend(prerootpath) for prefix in prefixes: -- 2.3.1
[gentoo-dev] Last rites: dev-ruby/json_pure
# Hans de Graaff gra...@gentoo.org (19 Apr 2015) # Pure-ruby implementation of dev-ruby/json for uses where a compiled # version is not possible. This implementation is not needed on Gentoo # and slower than the compiled version, so all packages should depend # on dev-ruby/json instead. Nothing depends on this package. # Removal in 30 days. dev-ruby/json_pure signature.asc Description: This is a digitally signed message part
[gentoo-portage-dev] [PATCH] UseManager: handle newlines for USE_EXPAND prefixes (bug 546512)
From: Albert Safin xzf...@gmail.com Since commit b65e1fc5fe723bd07bf034f6e08878fa3eb033cb, USE_EXPAND prefixes affected subsequent lines of the same atom in package.use. Fixes: b65e1fc5fe72 (Support USE_EXPAND prefixes in package.use and relevant files) X-Gentoo-Bug: 546512 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=546512 --- pym/portage/package/ebuild/_config/UseManager.py | 8 +++- pym/portage/util/__init__.py | 10 +++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/pym/portage/package/ebuild/_config/UseManager.py b/pym/portage/package/ebuild/_config/UseManager.py index a93ea5c..6041802 100644 --- a/pym/portage/package/ebuild/_config/UseManager.py +++ b/pym/portage/package/ebuild/_config/UseManager.py @@ -208,6 +208,9 @@ class UseManager(object): useflags = [] use_expand_prefix = '' for prefixed_useflag in v: + if extended_syntax and prefixed_useflag == \n: + use_expand_prefix = + continue if extended_syntax and prefixed_useflag[-1] == :: use_expand_prefix = prefixed_useflag[:-1].lower() + _ continue @@ -236,11 +239,14 @@ class UseManager(object): ret = ExtendedAtomDict(dict) if user_config: pusedict = grabdict_package( - os.path.join(location, file_name), recursive=1, allow_wildcard=True, allow_repo=True, verify_eapi=False) + os.path.join(location, file_name), recursive=1, newlines=1, allow_wildcard=True, allow_repo=True, verify_eapi=False) for k, v in pusedict.items(): l = [] use_expand_prefix = '' for flag in v: + if flag == \n: + use_expand_prefix = + continue if flag[-1] == :: use_expand_prefix = flag[:-1].lower() + _ continue diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py index 4b82e71..48cd1b7 100644 --- a/pym/portage/util/__init__.py +++ b/pym/portage/util/__init__.py @@ -340,7 +340,7 @@ def stack_lists(lists, incremental=1, remember_source_file=False, else: return list(new_list) -def grabdict(myfilename, juststrings=0, empty=0, recursive=0, incremental=1): +def grabdict(myfilename, juststrings=0, empty=0, recursive=0, incremental=1, newlines=0): This function grabs the lines in a file, normalizes whitespace and returns lines in a dictionary @@ -354,6 +354,8 @@ def grabdict(myfilename, juststrings=0, empty=0, recursive=0, incremental=1): @type recursive: Boolean (integer) @param incremental: Append to the return list, don't overwrite @type incremental: Boolean (integer) + @param newlines: Append newlines + @type newlines: Boolean (integer) @rtype: Dictionary @return: 1. Returns the lines in a file in a dictionary, for example: @@ -379,6 +381,8 @@ def grabdict(myfilename, juststrings=0, empty=0, recursive=0, incremental=1): continue if len(myline) 1 and empty == 1: continue + if newlines: + myline.append(\n) if incremental: newdict.setdefault(myline[0], []).extend(myline[1:]) else: @@ -424,7 +428,7 @@ def read_corresponding_eapi_file(filename, default=0): return default return eapi -def grabdict_package(myfilename, juststrings=0, recursive=0, +def grabdict_package(myfilename, juststrings=0, recursive=0, newlines=0, allow_wildcard=False, allow_repo=False, allow_build_id=False, verify_eapi=False, eapi=None, eapi_default=0): Does the same thing as grabdict except it validates keys @@ -438,7 +442,7 @@ def grabdict_package(myfilename, juststrings=0, recursive=0, atoms = {} for filename in file_list: d = grabdict(filename, juststrings=False, - empty=True, recursive=False, incremental=True) + empty=True, recursive=False, incremental=True, newlines=newlines) if not d: continue if verify_eapi and eapi is None: -- 2.3.1
Re: [gentoo-portage-dev] [PATCHv2 2/2] MEDIUM: misc-functions: Be more verbose when removing INSTALL_MASK glob
On 04/19/2015 05:01 PM, Bertrand Jaquin wrote: diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 36a3bb8..4c37f10 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -276,7 +276,13 @@ install_mask() { # we also need to handle globs (*.a, *.h, etc) find ${root} \( -path ${no_inst} -or -name ${no_inst} \) \ - -exec rm -fR {} \; /dev/null 21 + -print0 2 /dev/null \ + | sort \ sort -z Maybe also set LANG=C for locale independence? -- Thanks, Zac
Re: [gentoo-portage-dev] [PATCHv2 2/2] MEDIUM: misc-functions: Be more verbose when removing INSTALL_MASK glob
On Sun, 19 Apr 2015 20:26:35 -0700 Zac Medico zmed...@gentoo.org wrote: On 04/19/2015 05:01 PM, Bertrand Jaquin wrote: diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 36a3bb8..4c37f10 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -276,7 +276,13 @@ install_mask() { # we also need to handle globs (*.a, *.h, etc) find ${root} \( -path ${no_inst} -or -name ${no_inst} \) \ - -exec rm -fR {} \; /dev/null 21 + -print0 2 /dev/null \ + | sort \ sort -z Maybe also set LANG=C for locale independence? Looks good, Zac can you just edit those changes in while you merge it please. -- Brian Dolbec dolsen