From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 7F89613829B for ; Sun, 29 May 2016 06:02:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 06173142B4; Sun, 29 May 2016 06:02:26 +0000 (UTC) Received: from mail-io0-f180.google.com (mail-io0-f180.google.com [209.85.223.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EF1321421F for ; Sun, 29 May 2016 06:02:25 +0000 (UTC) Received: by mail-io0-f180.google.com with SMTP id 190so93623476iow.1 for ; Sat, 28 May 2016 23:02:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to; bh=s4b6BVpHYpysdEHmIFocxzYqI+yMaszpOpepE6Bnhxs=; b=RuYdNEUJzrlhabbh7IhswmH1fhwGyHtFGcqBNRozj0N6X/CMIJ/RNJdbrwkJuSaCrp 0Wz6PjHNi0wzJGC96Tg6itYlzM1f4XhGJ3uN6IFV2CfNHzyW7t9G1l31+7BxFJPR9pxe yz5H2/+0zbcB+p99u8Tw33EcYP07IJfZrJJ+p9f44nf0NTEg3e4RYpxXCZc0HGTaiG+C z17+HSzTL0F3MsuOtGKIZul25kQE7QLrAEfxJ/wI5P00Eatxt4kVOkhcoCW6rWEgoRqD qhk/HHhnGm4khp3cu97ykE5u8VymqYt2EIt2LVZZBVPy053pfPNFd4d98eLWKp2CSWli 9W7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to; bh=s4b6BVpHYpysdEHmIFocxzYqI+yMaszpOpepE6Bnhxs=; b=gcijoPg8laerZ11WBcwm3QqpxtMlXc5ykb1An1fjE/R1+bj/faHsL2DB50AJIkmrzF 9y/ModA35yfu39xEamkHLS9sQAxN1C3yafyIaTTD98rEqXbXiFJK6CCEEZpQ/CW2YsO9 MSSScQGa6nRrCVmhxu76ChbbIqbScH/e+mZZc3AtiAMCofSwp8LJ5ypviQ5VjsycD9PY VgUpw71h88jyrpO3gG6aCXBlXLxFDbzmYXpGo0LDPeV5n/CSAyTXuaY/buEQvXlm1ZMH zZtkJdHTDVuQZ4BVeOG5d1uDu1sUfbd+KZtMJWRjvljeHJwKAadx0Dsa4fFXArTQN0/b 7mLQ== X-Gm-Message-State: ALyK8tJb2ncGhbXDYfuDeh8A41f8Z+ht13+PW32ZxJ4XK3Fla3ziDbYc0gqABUXZz3VwbjcqumMKoPG1+fi+hQ== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.107.184.70 with SMTP id i67mr18003011iof.26.1464501745284; Sat, 28 May 2016 23:02:25 -0700 (PDT) Sender: freemanrich@gmail.com Received: by 10.64.159.8 with HTTP; Sat, 28 May 2016 23:02:25 -0700 (PDT) In-Reply-To: <66d4acaa-4c75-540f-eb65-4f7b40e40b02@gentoo.org> References: <66d4acaa-4c75-540f-eb65-4f7b40e40b02@gentoo.org> Date: Sun, 29 May 2016 02:02:25 -0400 X-Google-Sender-Auth: DtI5zIs6gCLstHYHgv5dvqBgvGE Message-ID: Subject: Re: [gentoo-dev] What are eblits? From: Rich Freeman To: gentoo-dev Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 2a1466b4-1380-4c6d-8767-466bfa795b56 X-Archives-Hash: 7593f4fdfbff9c848aca5e781e27a180 On Sat, May 28, 2016 at 9:11 PM, Joshua Kinard wrote: > > Whether the idea is useful in the present day and age, eh, who knows. For the > mips-sources ebuilds, eblits let me centralize the per-machine notes and > unpacking logic, which reduced each ebuild's size from ~18KB a few years ago > down to ~4.9KB today. It sounds pretty useful to me. I've seen eclasses used by a single package or two at most and full of conditional logic to handle all the times upstream changed their distribution scheme. Eblits sound a whole lot better. Since they're limited in scope there isn't really a need for list review/etc, and they can be created/deleted/etc at will. I wouldn't use them just to turn every 50 line ebuild into a 10 line ebuild, but when you have substantial amounts of code re-used across ebuilds refactoring it just makes sense. What I would love to see is this be standardized. An eclass or a GLEP seems like the logical approach. -- Rich