Date: Tue, 3 Sep 2024 17:07:53 -0600 From: Warner Losh <imp@bsdimp.com> To: Alan Somers <asomers@freebsd.org> Cc: Poul-Henning Kamp <phk@phk.freebsd.dk>, FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: It's not Rust, it's FreeBSD (and LLVM) Message-ID: <CANCZdfrMePQKQ47_wh0CL54k=bhgQwU_k3z4RANmPWCfBm7h=w@mail.gmail.com> In-Reply-To: <CAOtMX2j%2BT3h9mg8a0AcYMbg2%2BWQFN14NhaQFs%2BjM-3hAmNBsBg@mail.gmail.com> References: <202409031532.483FW0If007252@critter.freebsd.dk> <CANCZdfrhK1iTZL5uxciqK_FGb%2Bzha_NZ15LsY42f%2B_z3KbPmJw@mail.gmail.com> <CAOtMX2go95=RFjegzchgMTYNdZfatzGDVcavp8O6=bK9yks1bQ@mail.gmail.com> <202409031950.483JoBuh009465@critter.freebsd.dk> <CAOtMX2jwu9bUDgM=jxtP5t794VUPjNx3GtrVgYqvGcSiZqHwVQ@mail.gmail.com> <CANCZdfrJ149NguCYMuZs8M7cswQGkLnRYqsfND4Jpc7yajU_Jg@mail.gmail.com> <CAOtMX2j%2BT3h9mg8a0AcYMbg2%2BWQFN14NhaQFs%2BjM-3hAmNBsBg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Tue, Sep 3, 2024 at 2:40 PM Alan Somers <asomers@freebsd.org> wrote: > On Tue, Sep 3, 2024 at 2:21 PM Warner Losh <imp@bsdimp.com> wrote: > > > > > > > > On Tue, Sep 3, 2024, 2:19 PM Alan Somers <asomers@freebsd.org> wrote: > >> > >> On Tue, Sep 3, 2024 at 1:50 PM Poul-Henning Kamp <phk@phk.freebsd.dk> > wrote: > >> > > >> > -------- > >> > Alan Somers writes: > >> > > >> > > For example, libifconfig and the /dev/cam/ctl ioctls are both > unstable. > >> > > A port that uses one of those and is built for FreeBSD 14.0 won't > >> > > necessarily work for 14.1. > >> > > >> > Isn't that also a problem today ? > >> > > >> > What difference does it make that src is distributed as a package ? > >> > >> Not "a package" but "many packages". The pkgbase concept builds a > >> separate package for almost every dir under lib, bin, sbin, usr.bin, > >> and usr.sbin. So the problem will be that libifconfig and its > >> consumers will be distributed separately, whereas they are currently > >> distributed together. > > > > > > Won't versions and dependencies solve this? They aren't tied to a kernel > version since its a stable ABI. > > > > Warnrr > >> > >> -Alan > > Aren't you the one who just said that the ABI will need to become > stable? Or did you only mean that about the /dev/cam/ctl ioctls? For > private libs, the easiest thing would be if pkgbase could put libs and > their consumers into the same package. But that might not always be > possible. > Generally, you're supposed to update all the packages in the system, which would keep things from getting cross threaded. However, I had thought that 'pkg upgrade libfoo' would upgrade all things that depended on libfoo. However, it doesn't go 'up' the dependency tree, but just 'down' for things that libfoo depends upon. It's one of the fragile things about pkg today used with ports (though often it's totally fine, since the ABIs are usually stable)... I'm not familiar enough with the ctl ioctl to state definitively... However, it appears, at first blush, to be fairly stable though. Warner [-- Attachment #2 --] <div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 3, 2024 at 2:40 PM Alan Somers <<a href="mailto:asomers@freebsd.org" target="_blank">asomers@freebsd.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Sep 3, 2024 at 2:21 PM Warner Losh <<a href="mailto:imp@bsdimp.com" target="_blank">imp@bsdimp.com</a>> wrote:<br> ><br> ><br> ><br> > On Tue, Sep 3, 2024, 2:19 PM Alan Somers <<a href="mailto:asomers@freebsd.org" target="_blank">asomers@freebsd.org</a>> wrote:<br> >><br> >> On Tue, Sep 3, 2024 at 1:50 PM Poul-Henning Kamp <<a href="mailto:phk@phk.freebsd.dk" target="_blank">phk@phk.freebsd.dk</a>> wrote:<br> >> ><br> >> > --------<br> >> > Alan Somers writes:<br> >> ><br> >> > > For example, libifconfig and the /dev/cam/ctl ioctls are both unstable.<br> >> > > A port that uses one of those and is built for FreeBSD 14.0 won't<br> >> > > necessarily work for 14.1.<br> >> ><br> >> > Isn't that also a problem today ?<br> >> ><br> >> > What difference does it make that src is distributed as a package ?<br> >><br> >> Not "a package" but "many packages". The pkgbase concept builds a<br> >> separate package for almost every dir under lib, bin, sbin, usr.bin,<br> >> and usr.sbin. So the problem will be that libifconfig and its<br> >> consumers will be distributed separately, whereas they are currently<br> >> distributed together.<br> ><br> ><br> > Won't versions and dependencies solve this? They aren't tied to a kernel version since its a stable ABI.<br> ><br> > Warnrr<br> >><br> >> -Alan<br> <br> Aren't you the one who just said that the ABI will need to become<br> stable? Or did you only mean that about the /dev/cam/ctl ioctls? For<br> private libs, the easiest thing would be if pkgbase could put libs and<br> their consumers into the same package. But that might not always be<br> possible.<br></blockquote><div><br></div><div>Generally, you're supposed to update all the packages in the system, which would keep</div><div>things from getting cross threaded.</div><div><br></div><div>However, I had thought that 'pkg upgrade libfoo' would upgrade all things that depended</div><div>on libfoo. However, it doesn't go 'up' the dependency tree, but just 'down' for things that libfoo</div><div>depends upon. It's one of the fragile things about pkg today used with ports (though often</div><div>it's totally fine, since the ABIs are usually stable)...</div><div><br></div><div>I'm not familiar enough with the ctl ioctl to state definitively... However, it appears, at first blush,</div><div>to be fairly stable though.</div><div><br></div><div>Warner</div><div><br></div></div></div>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfrMePQKQ47_wh0CL54k=bhgQwU_k3z4RANmPWCfBm7h=w>
