* [gentoo-user] Inter-package dependencies.
@ 2019-06-20 3:20 Grant Taylor
2019-06-20 5:30 ` aleiphoenix .
2019-06-20 14:36 ` [gentoo-user] jaeyoung lee
0 siblings, 2 replies; 7+ messages in thread
From: Grant Taylor @ 2019-06-20 3:20 UTC (permalink / raw
To: Gentoo-Users
After the good input that I received in the "Preventing new versions of
gentoo-sources…" thread, I figured I'd ask this question:
Is there a way to cause ebuild file to limit the version of other
packages, e.g. net-misc/openvswitch's limiting sys-kernel/gentoo-sources
to a supported kernel version?
Open vSwitch 2.10 (current non-testing) supports kernel versions 3.10 to
4.17. (http://docs.openvswitch.org/en/latest/faq/releases/)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Inter-package dependencies.
2019-06-20 3:20 [gentoo-user] Inter-package dependencies Grant Taylor
@ 2019-06-20 5:30 ` aleiphoenix .
2019-06-20 5:34 ` aleiphoenix .
2019-06-20 15:55 ` [gentoo-user] " Ian Zimmerman
2019-06-20 14:36 ` [gentoo-user] jaeyoung lee
1 sibling, 2 replies; 7+ messages in thread
From: aleiphoenix . @ 2019-06-20 5:30 UTC (permalink / raw
To: gentoo-user
On Thu, Jun 20, 2019 at 11:20 AM Grant Taylor
<gtaylor@gentoo.tnetconsulting.net> wrote:
>
> After the good input that I received in the "Preventing new versions of
> gentoo-sources…" thread, I figured I'd ask this question:
>
> Is there a way to cause ebuild file to limit the version of other
> packages, e.g. net-misc/openvswitch's limiting sys-kernel/gentoo-sources
> to a supported kernel version?
>
> Open vSwitch 2.10 (current non-testing) supports kernel versions 3.10 to
> 4.17. (http://docs.openvswitch.org/en/latest/faq/releases/)
See some ebuilds like x11-drivers/nvidia-drivers/nvidia-drivers-430.14.ebuild
if use kernel_linux && kernel_is ge 5 2; then
ewarn "Gentoo supports kernels which are supported by NVIDIA"
ewarn "which are limited to the following kernels:"
ewarn "<sys-kernel/gentoo-sources-5.2"
ewarn "<sys-kernel/vanilla-sources-5.2"
ewarn ""
ewarn "You are free to utilize epatch_user to provide whatever"
ewarn "support you feel is appropriate, but will not receive"
ewarn "support as a result of those changes."
ewarn ""
ewarn "Do not file a bug report about this."
ewarn ""
fi
You could die there :)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Inter-package dependencies.
2019-06-20 5:30 ` aleiphoenix .
@ 2019-06-20 5:34 ` aleiphoenix .
2019-06-20 13:14 ` Rich Freeman
2019-06-20 15:55 ` [gentoo-user] " Ian Zimmerman
1 sibling, 1 reply; 7+ messages in thread
From: aleiphoenix . @ 2019-06-20 5:34 UTC (permalink / raw
To: gentoo-user
On Thu, Jun 20, 2019 at 1:30 PM aleiphoenix . <aleiphoenix@gmail.com> wrote:
> See some ebuilds like x11-drivers/nvidia-drivers/nvidia-drivers-430.14.ebuild
>
> if use kernel_linux && kernel_is ge 5 2; then
> ewarn "Gentoo supports kernels which are supported by NVIDIA"
> ewarn "which are limited to the following kernels:"
> ewarn "<sys-kernel/gentoo-sources-5.2"
> ewarn "<sys-kernel/vanilla-sources-5.2"
> ewarn ""
> ewarn "You are free to utilize epatch_user to provide whatever"
> ewarn "support you feel is appropriate, but will not receive"
> ewarn "support as a result of those changes."
> ewarn ""
> ewarn "Do not file a bug report about this."
> ewarn ""
> fi
>
> You could die there :)
Sorry about the typo, I mean you could use "die" there.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Inter-package dependencies.
2019-06-20 5:34 ` aleiphoenix .
@ 2019-06-20 13:14 ` Rich Freeman
0 siblings, 0 replies; 7+ messages in thread
From: Rich Freeman @ 2019-06-20 13:14 UTC (permalink / raw
To: gentoo-user
On Thu, Jun 20, 2019 at 1:34 AM aleiphoenix . <aleiphoenix@gmail.com> wrote:
>
> On Thu, Jun 20, 2019 at 1:30 PM aleiphoenix . <aleiphoenix@gmail.com> wrote:
> > See some ebuilds like x11-drivers/nvidia-drivers/nvidia-drivers-430.14.ebuild
> >
> > if use kernel_linux && kernel_is ge 5 2; then
> > ewarn "Gentoo supports kernels which are supported by NVIDIA"
> > ewarn "which are limited to the following kernels:"
> > ewarn "<sys-kernel/gentoo-sources-5.2"
> > ewarn "<sys-kernel/vanilla-sources-5.2"
> > ewarn ""
> > ewarn "You are free to utilize epatch_user to provide whatever"
> > ewarn "support you feel is appropriate, but will not receive"
> > ewarn "support as a result of those changes."
> > ewarn ""
> > ewarn "Do not file a bug report about this."
> > ewarn ""
> > fi
> >
> > You could die there :)
>
> Sorry about the typo, I mean you could use "die" there.
>
This will block installing the package if the kernel is invalid, but
will not block installing an invalid kernel later. Also, this needs
to be done in an appropriate phase.
You probably want to use a blocker for something like this, though
portage doesn't always handle these well, and kernels are also a bit
different as packages go. A blocker is just a dependency with an !
operator. Note that this blocks installing that kernel package, not
running that kernel, which is why kernel dependences tend to be
expressed differently.
Personally, in situations where I'm very dependent on kernel series I
just run upstream kernels. Gentoo barely patches its kernels so
unless you REALLY need the gentoo patches it is pretty trivial to just
sync from the stable repo and pull the appropriate branch for a
longterm series. I do this for zfs, and have done it in the past for
btrfs, and would do this anytime I needed to pin a particular kernel
series. You would lose the benefit of any Gentoo QA, but IMO that
benefits you mainly to the degree that you run typical packages, and
you're already deviating from the script.
If your package is in-tree and depends on kernel version you could
file a bug to address this in some way. If it is in an overlay then
you're on your own.
--
Rich
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gentoo-user]
2019-06-20 3:20 [gentoo-user] Inter-package dependencies Grant Taylor
2019-06-20 5:30 ` aleiphoenix .
@ 2019-06-20 14:36 ` jaeyoung lee
1 sibling, 0 replies; 7+ messages in thread
From: jaeyoung lee @ 2019-06-20 14:36 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 60 bytes --]
unsubscribe--
Only freebsd openbsd gentoo-linux windows2008
[-- Attachment #2: Type: text/html, Size: 465 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gentoo-user] Re: Inter-package dependencies.
2019-06-20 5:30 ` aleiphoenix .
2019-06-20 5:34 ` aleiphoenix .
@ 2019-06-20 15:55 ` Ian Zimmerman
2019-06-20 19:45 ` Daniel Frey
1 sibling, 1 reply; 7+ messages in thread
From: Ian Zimmerman @ 2019-06-20 15:55 UTC (permalink / raw
To: gentoo-user
On 2019-06-20 13:30, aleiphoenix . wrote:
> ewarn "<sys-kernel/vanilla-sources-5.2"
I didn't know about vanilla-sources. Is there any advantage of using
this package over just downloading tarballs or patchlevel updates from
kernel.org?
--
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Re: Inter-package dependencies.
2019-06-20 15:55 ` [gentoo-user] " Ian Zimmerman
@ 2019-06-20 19:45 ` Daniel Frey
0 siblings, 0 replies; 7+ messages in thread
From: Daniel Frey @ 2019-06-20 19:45 UTC (permalink / raw
To: gentoo-user
On 6/20/19 8:55 AM, Ian Zimmerman wrote:
> On 2019-06-20 13:30, aleiphoenix . wrote:
>
>> ewarn "<sys-kernel/vanilla-sources-5.2"
>
> I didn't know about vanilla-sources. Is there any advantage of using
> this package over just downloading tarballs or patchlevel updates from
> kernel.org?
>
That's a good question. I suppose the only benefit would be having
portage manage the package. I just looked and all vanilla-sources
kernels are in testing/unstable.
I would think the only advantage is you wouldn't have to worry about
portage removing kernel sources you're using. (As they could not be
reinstallable if the package has been removed from the tree.)
Dan
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2019-06-20 19:45 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-20 3:20 [gentoo-user] Inter-package dependencies Grant Taylor
2019-06-20 5:30 ` aleiphoenix .
2019-06-20 5:34 ` aleiphoenix .
2019-06-20 13:14 ` Rich Freeman
2019-06-20 15:55 ` [gentoo-user] " Ian Zimmerman
2019-06-20 19:45 ` Daniel Frey
2019-06-20 14:36 ` [gentoo-user] jaeyoung lee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox