public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Henning Schild <henning.schild@siemens.com>
To: vijai kumar <vijaikumar.kanagarajan@gmail.com>
Cc: isar-users <isar-users@googlegroups.com>,
	Baurzhan Ismagulov <ibr@radix50.net>,
	Jan Kiszka <jan.kiszka@siemens.com>
Subject: Re: [PATCHv8 05/29] base-apt: add deb-src packages as well
Date: Wed, 15 Apr 2020 19:29:59 +0200	[thread overview]
Message-ID: <20200415192959.1a7ddf7f@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <CALLGG_+8xpCm_YdGewb=SRpDSqigUyRP0f0345ksVYb9=gd7eg@mail.gmail.com>

On Tue, 14 Apr 2020 14:40:18 +0530
vijai kumar <vijaikumar.kanagarajan@gmail.com> wrote:

> On Tue, Apr 14, 2020 at 12:24 PM Henning Schild
> <henning.schild@siemens.com> wrote:
> >
> > Am Fri, 10 Apr 2020 20:31:27 +0530
> > schrieb vijai kumar <vijaikumar.kanagarajan@gmail.com>:
> >  
> > > On Thu, Mar 26, 2020 at 7:13 PM Henning Schild
> > > <henning.schild@siemens.com> wrote:  
> > > >
> > > > From: Henning Schild <henning.schild@siemens.com>
> > > >
> > > > So far the deb-src packages downloaded via "apt://" where not
> > > > cached. This commit fixes that and includes those packages into
> > > > the cache.
> > > >
> > > > Signed-off-by: Henning Schild <henning.schild@siemens.com>
> > > > ---
> > > >  meta/classes/base-apt-helper.bbclass       |  7 +++++++
> > > >  meta/classes/image-cache-extension.bbclass |  4 ++++
> > > >  meta/classes/repository.bbclass            | 14 ++++++++++++++
> > > >  3 files changed, 25 insertions(+)  
> > >  
> > > > +    reprepro -b "${dir}" --dbdir "${dbdir}" -C main -P source \
> > > > +        includedsc "${codename}" \  
> > >
> > >
> > > Hi Henning,
> > >
> > > Any specific issue you faced which prompted you to use -P source?
> > > Just trying to understand why priority is source here.  
> 
> I had an issue with section, wanted to know
> >
> > I honestly do not remember why that is there. Just looking at the
> > manpage its seems there will be some guessing going on for "section"
> > and "priority" if they are not given. Maybe i ran into a case where
> > the prio could not be guessed or was incorrect ... but i am really
> > just guessing myself.
> >
> > Is that prio incorrect or does it differ from what other repos have?
> >
> > If we are talking about
> > https://www.debian.org/doc/debian-policy/ch-archive.html#s-priorities
> >
> > "source" does not seem to be a valid value.
> >
> > You probably ran into some sort if issue and did not just stumble
> > over this line. Maybe you explaining your initial problem will help
> > understand how to proceed here.  
> 
> Hi Henning,
> 
> Yes. I had an issue with adding an source package(makedev) to repo. It
> complains of not able to find a valid Section. Then I looked back at
> the man page, which says it is guessing the Section and Priority.
> Looking at the code, seems like you have taken care of overriding
> Priority.
> 
> I believe you have taken that input from the 'Debian repository
> format' wiki[1]? which suggests to use 'source' as an alternative. For
> section there is no such recommendation though.

It is possible that i took the same path and came up with the
implementation we have, i do not remember anymore.

> So, I am thinking to use either the value 'source' or '-' as in [2].
> Since those are optional fields, right now, I am planning to skip
> looking into provisions to extract them from the dsc file (something
> like dscextract). I don't find any issue in these values for section
> and priority, do you see any?

I would suggest you play with possible values for your case. Later run
them against CI. In a next step find why a certain implementation works
and why others do not. That will hopefully lead to a correct
implementation and a meaningful justification (commit message).

Henning

> [1] https://wiki.debian.org/DebianRepository/Format
> [2]
> https://www.debian.org/doc/debian-policy/ch-controlfields.html#files
> 
> Thanks,
> Vijai Kumar K
> 
> 
> >
> > Henning
> >  
> > > Thanks,
> > > Vijai Kumar K
> > >
> > >  
> > > > You received this message because you are subscribed to the
> > > > Google Groups "isar-users" group. To unsubscribe from this
> > > > group and stop receiving emails from it, send an email to
> > > > isar-users+unsubscribe@googlegroups.com. To view this
> > > > discussion on the web visit
> > > > https://groups.google.com/d/msgid/isar-users/20200326134325.8672-6-henning.schild%40siemens.com.
> > > >  
> >  


  reply	other threads:[~2020-04-15 17:30 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-26 13:42 [PATCHv8 00/29] base-apt-rework Henning Schild
2020-03-26 13:42 ` [PATCHv8 01/29] repository: new class to deal with repos Henning Schild
2020-03-26 13:42 ` [PATCHv8 02/29] dpkg-base: add download caching of apt:// downloads Henning Schild
2020-03-26 13:42 ` [PATCHv8 03/29] meta: dpkg-base: convert "exit" into "return 0" Henning Schild
2020-03-26 13:43 ` [PATCHv8 04/29] base-apt: change the sources.list to also offer deb-src Henning Schild
2020-03-26 13:43 ` [PATCHv8 05/29] base-apt: add deb-src packages as well Henning Schild
2020-04-10 15:01   ` vijai kumar
2020-04-14  6:54     ` Henning Schild
2020-04-14  9:10       ` vijai kumar
2020-04-15 17:29         ` Henning Schild [this message]
2020-03-26 13:43 ` [PATCHv8 06/29] base-apt: do not skip gpg check when it is signed Henning Schild
2020-03-26 13:43 ` [PATCHv8 07/29] ci: conf: add "hello" to the sample config and every build Henning Schild
2020-03-26 13:43 ` [PATCHv8 08/29] meta: split all apt-get invocations into download and execution Henning Schild
2020-03-26 13:43 ` [PATCHv8 09/29] meta: create DL_DIR support for all apt-get downloaded .debs Henning Schild
2020-03-26 13:43 ` [PATCHv8 10/29] meta: import DL_DIR debs before apt-get download steps Henning Schild
2020-03-26 13:43 ` [PATCHv8 11/29] meta: include DL_DIR deb import/export into bootstrap Henning Schild
2020-03-26 13:43 ` [PATCHv8 12/29] base-apt: populate from DEBDIR as well Henning Schild
2020-03-26 13:43 ` [PATCHv8 13/29] base-apt: drop the "apt_cache" feature Henning Schild
2020-03-26 13:43 ` [PATCHv8 14/29] base-apt: do not copy debs directly out of rootfss anymore Henning Schild
2020-03-26 13:43 ` [PATCHv8 15/29] base-apt: rework base-apt population Henning Schild
2020-03-26 13:43 ` [PATCHv8 16/29] base-apt: move class "base-apt-helper" into only user Henning Schild
2020-03-26 13:43 ` [PATCHv8 17/29] CI: include "isar-disable-apt-cache" into all CI images Henning Schild
2020-03-26 13:43 ` [PATCHv8 18/29] CI: include "cowsay" into default build to test dpkg-gbp Henning Schild
2020-03-26 13:43 ` [PATCHv8 19/29] CI: set BB_NO_NETWORK for cached rebuild Henning Schild
2020-03-26 13:43 ` [PATCHv8 20/29] meta: repository: implement repo_contains_package and use it in base_apt Henning Schild
2020-03-26 13:43 ` [PATCHv8 21/29] meta: repository: simplify the matching of packages Henning Schild
2020-03-26 13:43 ` [PATCHv8 22/29] meta: deb-dl-dir: do not cache debs from isar-apt Henning Schild
2020-03-26 13:43 ` [PATCHv8 23/29] base-apt: pull base-apt population to the front of the build chain Henning Schild
2020-03-26 13:43 ` [PATCHv8 24/29] meta: base-apt: remove isar-apt check from population Henning Schild
2020-03-26 13:43 ` [PATCHv8 25/29] meta: deb-dl-dir: only export newly downloaded files Henning Schild
2020-03-26 13:43 ` [PATCHv8 26/29] CI: test a custom kernel build in the base-apt offline rebuild Henning Schild
2020-03-26 13:43 ` [PATCHv8 27/29] meta/deb-dl-dir: make subshell verbose and fail on error Henning Schild
2020-03-26 13:43 ` [PATCHv8 28/29] meta: deb-dl-dir: fix "command not found" error when excluding pkgs Henning Schild
2020-03-26 13:43 ` [PATCHv8 29/29] RECIPE-API-CHANGELOG: add a few bits on the base-apt caching changes Henning Schild
2020-03-26 13:44 ` [PATCHv8 00/29] base-apt-rework Henning Schild
2020-03-27  7:11 ` Baurzhan Ismagulov
2020-03-27 11:01   ` Henning Schild
2020-03-30 20:24     ` Baurzhan Ismagulov
2020-03-31 17:47       ` Henning Schild
2020-04-07  9:37         ` vijai kumar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200415192959.1a7ddf7f@md1za8fc.ad001.siemens.net \
    --to=henning.schild@siemens.com \
    --cc=ibr@radix50.net \
    --cc=isar-users@googlegroups.com \
    --cc=jan.kiszka@siemens.com \
    --cc=vijaikumar.kanagarajan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox