Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 6D9E222376B for <~alpine/devel@lists.alpinelinux.org>; Sat, 21 Jan 2023 09:56:17 +0000 (UTC) Received: by mail-pj1-x1036.google.com with SMTP id v6-20020a17090ad58600b00229eec90a7fso3250085pju.0 for <~alpine/devel@lists.alpinelinux.org>; Sat, 21 Jan 2023 01:56:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:cc:organization:from :content-language:references:to:subject:reply-to:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=2NfpfSAue2bfhfBseY2nRFSGiuWGrGDtBRAuOF70/wU=; b=U/gF+12xvIxrvHQ7GL2BpXLxmmhEUWJVNHXp/Gx8KAlMdCijiSBSTTENTDFMsHD/6U k4XXMe+gIadfylSdL/s4OHPgzTe/WK71Qzf8HLvq0b0kNdzl2DhnTWPsHrSstm92itzb vOytEtqHisx7xy8ERpAQBsiy5AsmMQSmnTQxwKyJ3VDvzKiMloBy2rjfMMlByQFA7NS9 I4RQzHNBN4u1/erD3/imDoPFnfvXqTP/xN5ob57Q3/53+oj6lsxWGeesk720aG63IsJN 3+0MWCmbQqadu1/cl83mzTWhpQPc90RuwZMSNKdfR5sNMp2q2B87kegIDIk6PpB65qA6 7XZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:cc:organization:from :content-language:references:to:subject:reply-to:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=2NfpfSAue2bfhfBseY2nRFSGiuWGrGDtBRAuOF70/wU=; b=vIRmkT6xffkGDrHiqUVaYbqElOk914fyNRs628rmXK8UaO8W6r0/TKB1mTmaAghjKX Wbqq+XxGj5m0m+N/XWAMSgk8llSx3auP5DCke+ejFsegXTqvAs+jeqTLBwUw84OXfwQQ aEM+oakQ/wWXVAIq8NaENdiAkNs1ql2s8srJZfjWJbO5TNXJPsuhjRuWpiRZy8bEldE3 y5BR9bNK3vsyCoAbbkxJbte6zZ/GD0lsF3uRVP70MkHZRTb488eVQA/BDmPPL5fHLhq1 tkXeo6iqYVjcgkL1lGSpE8CUESXD1Zgp4V/k+rYzXEg7/xaxD6qZ1K9T0teQdoiYNqFB nr9Q== X-Gm-Message-State: AFqh2kpL0TlSC947glytVAF6sfflZKKJAoY/WjLCOPxIYg7o4WaKZUBq A39zjkI1nBF0IP9HkNTkOE4= X-Google-Smtp-Source: AMrXdXvENTpuKpf4z//pyzYQnI+rq1SQ4pf+8bxKnjV9POpb1JLkvhAxzzBsnWISddYo1LAa4ks7hg== X-Received: by 2002:a17:90a:4606:b0:226:620b:6ae5 with SMTP id w6-20020a17090a460600b00226620b6ae5mr18104678pjg.22.1674294973963; Sat, 21 Jan 2023 01:56:13 -0800 (PST) Received: from [0.0.0.0] ([117.200.91.216]) by smtp.gmail.com with ESMTPSA id g1-20020a17090a708100b00225a8024b8bsm2886538pjk.55.2023.01.21.01.56.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 21 Jan 2023 01:56:13 -0800 (PST) Message-ID: <38a90a9a-644b-0d99-ec2d-71c8ba48ec54@gmail.com> Date: Sat, 21 Jan 2023 15:22:03 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Reply-To: vkrishn4@gmail.com Subject: Re: suggesting feature, splitting pkgs repositories (part II) To: Timo Teras References: <3535e75e-f682-7435-a1f4-cd6d38180cfc@gmail.com> <20230121095717.2f489602@onyx.my.domain> Content-Language: en-US From: "V.Krishn" Organization: Insteps.net Cc: ~alpine/devel@lists.alpinelinux.org In-Reply-To: <20230121095717.2f489602@onyx.my.domain> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/21/23 13:27, Timo Teras wrote: > On Thu, 19 Jan 2023 20:14:33 +0000 > Kevin Daudt wrote: > >> On Thu, Jan 19, 2023 at 11:08:31PM +0530, V.Krishn wrote: >>> >>> Would like to suggest moving -dbg pkgs in repositories into a >>> separate folder. eg. >>> main/aarch64.dbg or community/aarch64.dbg/ > > This is not possible with changing apk code. > >>> OR >>> main.dbg/aarch64 or community.dbg/aarch64 > > This or some similar option like main-dbg, or dbg/main would be > possible without touch apk code. > >>> Suggested change is desirable because: >>> 1. Users who would want to install -dbg pkgs are willing to do >>> debugging. They are mostly development oriented. > > This would mean that new repositories need to be added if user wants to If user are installing -dbg pkgs, it can be expected to know things around apk, /etc/apk/.. and the ability to add a line or two in /etc/apk/repositories > use debug packages. Or perhaps adding some new apk feature to make > enablign the debug repos possible some other way. Making it simple is always welcomed, but that would first need formalizing on variables like repo path .. etc. Maybe modifying apk could wait. > >>> 2. Mirrors may opt to ignore these .dbg folder, thereby saving some >>> disk space. > > Understand. These can be fairly large at times. And it would be also > possible to configure close mirror without -dbg and another mirror with > the -dbg packages. > > As an additional benefit the repository indexes without dbg packages > would be smaller - possibly helping embedded systems. Already happening. And as mentioned > allow perhaps turning -dbg on by default (assuming we have enough disk > space on main mirrors). > >> The question is if it is possible to move subpackages to a different >> repository as the origin package. > > From apk-tools side there is no problem. Having subpackages in a > separate repo is perfectly ok. > > The complication comes from the building side. It would need special > logic to move the -dbg pacakges to different repository. And changes to > rebuild multiple indexes, and uploading to right place. > > abuild also has assumptions that all generated packages are in same > destionation. This applies to detecting whether a rebuild is needed, > and on removing obsoleted packages. > > All of the above should be doable, but might be non-trivial in some > cases. > > I think the idea is good. But am not sure if/when someone would have > time to work on it. Would someone be willing to do the work if no one > objects for the change? Thanks for clarifications. Looking forward in positive way :) > > Timo -- Regards, V.Krishn