public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com>
To: isar-users@googlegroups.com
Subject: Re: isar-exclude-docs vs. openjdk et al.
Date: Mon, 12 Apr 2021 10:47:14 +0200	[thread overview]
Message-ID: <b5438f62-17e6-d046-1e90-1908dbefe196@siemens.com> (raw)
In-Reply-To: <20210410104618.790f06b3@md1za8fc.ad001.siemens.net>



On 10/04/2021 10:46, [ext] Henning Schild wrote:
> Am Fri, 9 Apr 2021 15:01:48 +0200
> schrieb Jan Kiszka <jan.kiszka@siemens.com>:
> 
>> On 09.04.21 10:30, Henning Schild wrote:
>>> Hi,
>>>
>>> not sure that doc purging is really allowed or whether we are
>>> messing with stuff we better should not mess with.
>>>
>>> Am Thu, 8 Apr 2021 20:54:28 +0200
>>> schrieb Jan Kiszka <jan.kiszka@siemens.com>:
>>>   
>>>> Hi all,
>>>>
>>>> there seems to be a conceptual issue with isar-exclude-docs purging
>>>> documents in its postinst hook: If other packages are configured
>>>> after isar-exclude-docs and those packages expects certain doc
>>>> paths to be still there, see openjdk [1], they will fail.
>>>>
>>>> How to solve that?
>>>>  - maintain a list of conflicting packages in that recipe?  
>>>
>>> This is going to be cumbersome but when having a packet that needs
>>> its docs, we probably should not install that cleaner.
>>>   
>>>>  - convert the package to a post-process hook?  
>>>
>>> would still break apt-get update of packages that need their docs
>>>   
>>>>  - find a way to ensure a compatible ordering when running our
>>>> postinst?  
>>>
>>> again going to break apt-get
>>>
>>> Looking at this one example it does not really need its docs, it
>>> just expects them in "its own hack". My guess is that the problem
>>> can be reproduced in a ubuntu container (where the no-docs stuff is
>>> coming from), and can be used to report an issue so that the
>>> update-alternatives script looks for the files conditionally. Or
>>> maybe write a patch for that package and MR it on salsa directly.
>>>
>>> If you are installing java you probably can store a few MB of docs
>>> ;) 
>>
>> Yeah, the case that triggered that is a bug, not a real scenario. I'm
>> lacking a feeling how common that combination is and if there might be
>> realistic combinations as well.
> 
> My guess is that it would be best to try and mainline that package
> right into debian. They could use it for their containers, offer it for
> their users and will maintain the list of conflicts or detect such bugs.

It's not only an ISAR issue.
Just try to install openjdk-11-jre-headless on a debian:buster-slim image to reproduce it.

I'll report the bug on the Debian openjdk package, since the images being provided by Docker can be considered the de-facto standard (even provided by Debian maintainers Tianon Gravi [1] and Paul Tagliamonte [2]).

I'd rather wait for them to react to it before deciding which way we go.

Curious about how those images are being created? See here: https://github.com/debuerreotype/debuerreotype

  Silvano

[1] https://qa.debian.org/developer.php?login=tianon
[2] https://qa.debian.org/developer.php?login=paultag

> 
> As far as i remember the configs came from ubuntu, not sure they have
> it packaged or just smuggle it into their containers.
> 
> That said, i bet there are packages that have runtime deps on (their)
> docs. Doc readers or applications that opt for cat ing a file on
> --help, probably not made up ...
> 
> Henning
> 
>> Jan
>>
>>> Henning
>>>   
>>>>
>>>> Jan
>>>>
>>>> [1]
>>>> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fg%2Fisar-users%2Fc%2FuIHgzvCGLwU%2Fm%2FtuOchY6BAgAJ&amp;data=04%7C01%7Csilvano.cirujano-cuesta%40siemens.com%7C86e2085237e3487d4c8608d8fbfea912%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637536418464481337%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=f%2F4dVdp5tYLFm5KbqvFdNE7rXLMUiMP5hnI8oGcmPC4%3D&amp;reserved=0
>>>>  
>>>   
>>
>>
> 

  reply	other threads:[~2021-04-12  8:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-08 18:54 Jan Kiszka
2021-04-09  8:30 ` Henning Schild
2021-04-09 13:01   ` Jan Kiszka
2021-04-10  8:46     ` Henning Schild
2021-04-12  8:47       ` Silvano Cirujano Cuesta [this message]
2021-04-12  8:58         ` Silvano Cirujano Cuesta
2021-04-12 18:35         ` Henning Schild

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=b5438f62-17e6-d046-1e90-1908dbefe196@siemens.com \
    --to=silvano.cirujano-cuesta@siemens.com \
    --cc=isar-users@googlegroups.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