FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Debian > Debian dpkg

 
 
LinkBack Thread Tools
 
Old 06-21-2008, 03:18 PM
Denis Washington
 
Default LSB Package API

On Sat, 2008-06-21 at 06:59 -0700, Dan Kegel wrote:
> On Sat, Jun 21, 2008 at 1:32 AM, Denis Washington <dwashington@gmx.net> wrote:
> > Some time ago, it was discussed on an LSB face-to-face meeting that an
> > API should be developed that allows ISVs to install sotware packages
> > which integrate into the package manager - the "Berlin Packaging API".
> > While the idea seemed to be well received, there didn't seem much
> > progress since then
>
> I dislike that route intensely. Why, I'm not sure. Perhaps
> because it encourages ISVs to manage package updates themselves,
> perhaps because it smacks of the complexity of Microsoft's MSI.
>
> I'm more interested in the single-click install idea Suse's
> working on, since it's much less of an end run around
> normal Linux packaging practices. And I have a summer intern
> to throw at the problem, so perhaps I'll make some headway on
> it.

The problem I currently see with single-click install is that it still
relies on a single package format (.rpm), so there would have to be
several packages of the same application again. Another particular
problem I see is security: RPM runs as root, so post-install routines
will do so too. That's why I tried to do an architecture that works
without root privileges (in many cases at least). But maybe there are
are already plans how to address this? I must admit I'm not all that
well-informed about SuSE's one-click install.

> Can we move followups to packaging@lists.linux-foundation.org rather
> than cc'ing all those lists?

OK. I wanted to get as many parties as possible on board, but now let's
say: whoever likes to follow this discussion is encouraged to to join
packaging@lists.linux-foundation.org [1]. Follow-ups should only be sent
there.

Regards,
Denis

[1] https://lists.linux-foundation.org/mailman/listinfo/packaging

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 06-21-2008, 03:18 PM
Denis Washington
 
Default LSB Package API

On Sat, 2008-06-21 at 06:59 -0700, Dan Kegel wrote:
> On Sat, Jun 21, 2008 at 1:32 AM, Denis Washington <dwashington@gmx.net> wrote:
> > Some time ago, it was discussed on an LSB face-to-face meeting that an
> > API should be developed that allows ISVs to install sotware packages
> > which integrate into the package manager - the "Berlin Packaging API".
> > While the idea seemed to be well received, there didn't seem much
> > progress since then
>
> I dislike that route intensely. Why, I'm not sure. Perhaps
> because it encourages ISVs to manage package updates themselves,
> perhaps because it smacks of the complexity of Microsoft's MSI.
>
> I'm more interested in the single-click install idea Suse's
> working on, since it's much less of an end run around
> normal Linux packaging practices. And I have a summer intern
> to throw at the problem, so perhaps I'll make some headway on
> it.

The problem I currently see with single-click install is that it still
relies on a single package format (.rpm), so there would have to be
several packages of the same application again. Another particular
problem I see is security: RPM runs as root, so post-install routines
will do so too. That's why I tried to do an architecture that works
without root privileges (in many cases at least). But maybe there are
are already plans how to address this? I must admit I'm not all that
well-informed about SuSE's one-click install.

> Can we move followups to packaging@lists.linux-foundation.org rather
> than cc'ing all those lists?

OK. I wanted to get as many parties as possible on board, but now let's
say: whoever likes to follow this discussion is encouraged to to join
packaging@lists.linux-foundation.org [1]. Follow-ups should only be sent
there.

Regards,
Denis

[1] https://lists.linux-foundation.org/mailman/listinfo/packaging


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-22-2008, 12:32 PM
Marcus Meissner
 
Default LSB Package API

On Sat, Jun 21, 2008 at 12:48:10PM +0200, Denis Washington wrote:
> Hi,
>
> Some time ago, it was discussed on an LSB face-to-face meeting that an
> API should be developed that allows ISVs to install sotware packages
> which integrate into the package manager - the "Berlin Packaging API".
> While the idea seemed to be well received, there didn't seem much
> progress since then, except for a wiki page with a rundimentary proposal
> [1]. Considering that third-party software installation is an undeniably
> important weak spot of the Linux infrastructure, I found this was a
> shame.
>
> To reignite the the initiative, I decided to design and develop a
> prototype implementation of the Berlin API, most creatively named the
> "LSB Package API". It is designed as a simple D-Bus interface
> accompanied with an XML-based package description format. A detailed
> description and the source code can be found on this page:
>
> http://www.linuxfoundation.org/en/LSB_Package_API
>
> The implementation currently supports integration into RPM and dpkg; due
> to its modular nature, support for more package managers could be added
> later on.
>
> I hope this implementation will act as a starting point for resurrecting
> the Berlin API process. Let us overcome the "Third-party software
> installation on Linux sucks" problem and strive to a brave new world of
> easily distributable Linux software!

If you do a DBUS interface anyway ... Why not just use the existing and
in development being PackageKit?

Ciao, Marcus


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-22-2008, 01:45 PM
Richard Hughes
 
Default LSB Package API

On Sat, 2008-06-21 at 16:18 +0200, Denis Washington wrote:
> The problem I currently see with single-click install is that it still
> relies on a single package format (.rpm), so there would have to be
> several packages of the same application again. Another particular
> problem I see is security: RPM runs as root, so post-install routines
> will do so too. That's why I tried to do an architecture that works
> without root privileges (in many cases at least). But maybe there are
> are already plans how to address this? I must admit I'm not all that
> well-informed about SuSE's one-click install.

We've discussed this in detail on the PackageKit mailing list.

> > Can we move followups to packaging@lists.linux-foundation.org rather
> > than cc'ing all those lists?
>
> OK. I wanted to get as many parties as possible on board, but now
> let's say: whoever likes to follow this discussion is encouraged to to
> join packaging@lists.linux-foundation.org [1]. Follow-ups should only
> be sent there.

Sure, you probably want to see the FAQ and mailing lists archives for
PackageKit too. There's a real reason PackageKit doesn't support OCI,
and another reason it supports catalog instead.

Richard.

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 06-22-2008, 01:45 PM
Richard Hughes
 
Default LSB Package API

On Sat, 2008-06-21 at 16:18 +0200, Denis Washington wrote:
> The problem I currently see with single-click install is that it still
> relies on a single package format (.rpm), so there would have to be
> several packages of the same application again. Another particular
> problem I see is security: RPM runs as root, so post-install routines
> will do so too. That's why I tried to do an architecture that works
> without root privileges (in many cases at least). But maybe there are
> are already plans how to address this? I must admit I'm not all that
> well-informed about SuSE's one-click install.

We've discussed this in detail on the PackageKit mailing list.

> > Can we move followups to packaging@lists.linux-foundation.org rather
> > than cc'ing all those lists?
>
> OK. I wanted to get as many parties as possible on board, but now
> let's say: whoever likes to follow this discussion is encouraged to to
> join packaging@lists.linux-foundation.org [1]. Follow-ups should only
> be sent there.

Sure, you probably want to see the FAQ and mailing lists archives for
PackageKit too. There's a real reason PackageKit doesn't support OCI,
and another reason it supports catalog instead.

Richard.


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-22-2008, 02:15 PM
Richard Hughes
 
Default LSB Package API

On Sat, 2008-06-21 at 11:51 +0200, Denis Washington wrote:
> Some time ago, it was discussed on an LSB face-to-face meeting that an
> API should be developed that allows ISVs to install sotware packages
> which integrate into the package manager - the "Berlin Packaging API".
> While the idea seemed to be well received, there didn't seem much
> progress since then, except for a wiki page with a rundimentary proposal
> [1]. Considering that third-party software installation is an undeniably
> important weak spot of the Linux infrastructure, I found this was a
> shame.

Sure, it's been tried before a few times before and fallen on it's face
each time. There's a reason that PackageKit uses the distro supplied
packages, rather than trying to spin it's own thing.

> To reignite the the initiative, I decided to design and develop a
> prototype implementation of the Berlin API, most creatively named the
> "LSB Package API". It is designed as a simple D-Bus interface
> accompanied with an XML-based package description format. A detailed
> description and the source code can be found on this page:
>
> http://www.linuxfoundation.org/en/LSB_Package_API

Sounds quite like PackageKit, which has been developed for the last year
or so with buy-in from most of the big distros. PackageKit doesn't try
to replace the entire stack, only make some sort of abstraction for GUI
tools where such an abstraction makes sense.

Being blunt, no distro is going to support a LSB package API. To me, a
distro is basically:

community+trust+infrastructure

If you take away the trust (letting other people create and sign
packages), the infrastructure (letting other people host packages and
manage security errata) and the community (basically reduced to PR)
you've got nothing left.

The cost of a distro rolling it's own packages is trivial considering
the advantages of the vendor trust model, with a single infrastructure
and support.

> The implementation currently supports integration into RPM and dpkg; due
> to its modular nature, support for more package managers could be added
> later on.

Looks like you've not considered localisation, multi-lib, multiple
versions of packages, or any of the problems solved with solutions like
NEVRAs. I would suggest to read the rpm(+yum), dpkg and conary sources
before you even start to propose APIs.

> I hope this implementation will act as a starting point for resurrecting
> the Berlin API process. Let us overcome the "Third-party software
> installation on Linux sucks" problem and strive to a brave new world of
> easily distributable Linux software!

I think you are looking for a solution to a problem that doesn't exist.
For the corner cases of where this does apply (proprietary software)
this is not enough of a use case to justify all the work required.

From somebody that's spent the best part of a year researching the
packaging formats and distribution of metadata, I don't see such a LSB
package API as a viable project.

Richard Hughes (PackageKit maintainer)



--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 06-22-2008, 02:15 PM
Richard Hughes
 
Default LSB Package API

On Sat, 2008-06-21 at 11:51 +0200, Denis Washington wrote:
> Some time ago, it was discussed on an LSB face-to-face meeting that an
> API should be developed that allows ISVs to install sotware packages
> which integrate into the package manager - the "Berlin Packaging API".
> While the idea seemed to be well received, there didn't seem much
> progress since then, except for a wiki page with a rundimentary proposal
> [1]. Considering that third-party software installation is an undeniably
> important weak spot of the Linux infrastructure, I found this was a
> shame.

Sure, it's been tried before a few times before and fallen on it's face
each time. There's a reason that PackageKit uses the distro supplied
packages, rather than trying to spin it's own thing.

> To reignite the the initiative, I decided to design and develop a
> prototype implementation of the Berlin API, most creatively named the
> "LSB Package API". It is designed as a simple D-Bus interface
> accompanied with an XML-based package description format. A detailed
> description and the source code can be found on this page:
>
> http://www.linuxfoundation.org/en/LSB_Package_API

Sounds quite like PackageKit, which has been developed for the last year
or so with buy-in from most of the big distros. PackageKit doesn't try
to replace the entire stack, only make some sort of abstraction for GUI
tools where such an abstraction makes sense.

Being blunt, no distro is going to support a LSB package API. To me, a
distro is basically:

community+trust+infrastructure

If you take away the trust (letting other people create and sign
packages), the infrastructure (letting other people host packages and
manage security errata) and the community (basically reduced to PR)
you've got nothing left.

The cost of a distro rolling it's own packages is trivial considering
the advantages of the vendor trust model, with a single infrastructure
and support.

> The implementation currently supports integration into RPM and dpkg; due
> to its modular nature, support for more package managers could be added
> later on.

Looks like you've not considered localisation, multi-lib, multiple
versions of packages, or any of the problems solved with solutions like
NEVRAs. I would suggest to read the rpm(+yum), dpkg and conary sources
before you even start to propose APIs.

> I hope this implementation will act as a starting point for resurrecting
> the Berlin API process. Let us overcome the "Third-party software
> installation on Linux sucks" problem and strive to a brave new world of
> easily distributable Linux software!

I think you are looking for a solution to a problem that doesn't exist.
For the corner cases of where this does apply (proprietary software)
this is not enough of a use case to justify all the work required.

From somebody that's spent the best part of a year researching the
packaging formats and distribution of metadata, I don't see such a LSB
package API as a viable project.

Richard Hughes (PackageKit maintainer)




--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-22-2008, 07:02 PM
Denis Washington
 
Default LSB Package API

On Sun, 2008-06-22 at 14:15 +0100, Richard Hughes wrote:
> On Sat, 2008-06-21 at 11:51 +0200, Denis Washington wrote:
> > Some time ago, it was discussed on an LSB face-to-face meeting that an
> > API should be developed that allows ISVs to install sotware packages
> > which integrate into the package manager - the "Berlin Packaging API".
> > While the idea seemed to be well received, there didn't seem much
> > progress since then, except for a wiki page with a rundimentary proposal
> > [1]. Considering that third-party software installation is an undeniably
> > important weak spot of the Linux infrastructure, I found this was a
> > shame.
>
> Sure, it's been tried before a few times before and fallen on it's face
> each time. There's a reason that PackageKit uses the distro supplied
> packages, rather than trying to spin it's own thing.

We shouldn't resignate just because nothing came out of the previous
attempts. Also, the LSB Package API is designed to require as little
adjustments as possible to installers - it's just to calls and a single
file, after all.

> > To reignite the the initiative, I decided to design and develop a
> > prototype implementation of the Berlin API, most creatively named the
> > "LSB Package API". It is designed as a simple D-Bus interface
> > accompanied with an XML-based package description format. A detailed
> > description and the source code can be found on this page:
> >
> > http://www.linuxfoundation.org/en/LSB_Package_API
>
> Sounds quite like PackageKit, which has been developed for the last year
> or so with buy-in from most of the big distros. PackageKit doesn't try
> to replace the entire stack, only make some sort of abstraction for GUI
> tools where such an abstraction makes sense.
>

As already mentioned before in this thread, the focus of PackageKit and the
LSB Package API are quite different, so there is no big reason for them to
not exist side-by-side.

> Being blunt, no distro is going to support a LSB package API. To me, a
> distro is basically:
>
> community+trust+infrastructure
>
> If you take away the trust (letting other people create and sign
> packages), the infrastructure (letting other people host packages and
> manage security errata) and the community (basically reduced to PR)
> you've got nothing left.
>
> The cost of a distro rolling it's own packages is trivial considering
> the advantages of the vendor trust model, with a single infrastructure
> and support.

The distro model is nice (and arguably better than the LSB Package API)
if the packages you like to have are in the repos in sufficiently new
versions. But if you need to go past that (bleeding edge versions, not
widely spread apps), things get more difficult currently. Especially
propietary applications just cannot be distributed by the distros
directly.

> > The implementation currently supports integration into RPM and dpkg; due
> > to its modular nature, support for more package managers could be added
> > later on.
>
> Looks like you've not considered localisation, multi-lib, multiple
> versions of packages, or any of the problems solved with solutions like
> NEVRAs. I would suggest to read the rpm(+yum), dpkg and conary sources
> before you even start to propose APIs.

Naturally some things are not considered yet. That's why I called the
spec and implementation I released a "starting point", not the
completely finished thing ready for production. There are quite a few
points that will have to be thought through and added, but I don't think
it's impossible to do so on top of the current basic design.

> > I hope this implementation will act as a starting point for resurrecting
> > the Berlin API process. Let us overcome the "Third-party software
> > installation on Linux sucks" problem and strive to a brave new world of
> > easily distributable Linux software!
>
> I think you are looking for a solution to a problem that doesn't exist.
> For the corner cases of where this does apply (proprietary software)
> this is not enough of a use case to justify all the work required.

I don't think this is a corner case at all. For one thing, propietary
applications might just don't play a role _because_ there is no really
good distribution method for them - the typical chicken-and-egg problem.
(I'm not saying this is the only reason, but an important one.) We're
just not giving them an easy method of cross-distro integration. I think
providing this is important.

Second, this way of distribution will help open-source projects as well.
It would make it really easy for them to distribute bleeding-edge
versions of there apps that integrate well into the packaging system
without having to package for each and every package manager. It will
also help those projects which are not widely used enough to be in
distro repos, as they can more easily release binary distributions
without having to depend on getting packaged by the distros. I really
believe this decentralism would be very nice to have, especially in
something as naturally decentralized as the open source community.

Regards,
Denis

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 06-22-2008, 07:02 PM
Denis Washington
 
Default LSB Package API

On Sun, 2008-06-22 at 14:15 +0100, Richard Hughes wrote:
> On Sat, 2008-06-21 at 11:51 +0200, Denis Washington wrote:
> > Some time ago, it was discussed on an LSB face-to-face meeting that an
> > API should be developed that allows ISVs to install sotware packages
> > which integrate into the package manager - the "Berlin Packaging API".
> > While the idea seemed to be well received, there didn't seem much
> > progress since then, except for a wiki page with a rundimentary proposal
> > [1]. Considering that third-party software installation is an undeniably
> > important weak spot of the Linux infrastructure, I found this was a
> > shame.
>
> Sure, it's been tried before a few times before and fallen on it's face
> each time. There's a reason that PackageKit uses the distro supplied
> packages, rather than trying to spin it's own thing.

We shouldn't resignate just because nothing came out of the previous
attempts. Also, the LSB Package API is designed to require as little
adjustments as possible to installers - it's just to calls and a single
file, after all.

> > To reignite the the initiative, I decided to design and develop a
> > prototype implementation of the Berlin API, most creatively named the
> > "LSB Package API". It is designed as a simple D-Bus interface
> > accompanied with an XML-based package description format. A detailed
> > description and the source code can be found on this page:
> >
> > http://www.linuxfoundation.org/en/LSB_Package_API
>
> Sounds quite like PackageKit, which has been developed for the last year
> or so with buy-in from most of the big distros. PackageKit doesn't try
> to replace the entire stack, only make some sort of abstraction for GUI
> tools where such an abstraction makes sense.
>

As already mentioned before in this thread, the focus of PackageKit and the
LSB Package API are quite different, so there is no big reason for them to
not exist side-by-side.

> Being blunt, no distro is going to support a LSB package API. To me, a
> distro is basically:
>
> community+trust+infrastructure
>
> If you take away the trust (letting other people create and sign
> packages), the infrastructure (letting other people host packages and
> manage security errata) and the community (basically reduced to PR)
> you've got nothing left.
>
> The cost of a distro rolling it's own packages is trivial considering
> the advantages of the vendor trust model, with a single infrastructure
> and support.

The distro model is nice (and arguably better than the LSB Package API)
if the packages you like to have are in the repos in sufficiently new
versions. But if you need to go past that (bleeding edge versions, not
widely spread apps), things get more difficult currently. Especially
propietary applications just cannot be distributed by the distros
directly.

> > The implementation currently supports integration into RPM and dpkg; due
> > to its modular nature, support for more package managers could be added
> > later on.
>
> Looks like you've not considered localisation, multi-lib, multiple
> versions of packages, or any of the problems solved with solutions like
> NEVRAs. I would suggest to read the rpm(+yum), dpkg and conary sources
> before you even start to propose APIs.

Naturally some things are not considered yet. That's why I called the
spec and implementation I released a "starting point", not the
completely finished thing ready for production. There are quite a few
points that will have to be thought through and added, but I don't think
it's impossible to do so on top of the current basic design.

> > I hope this implementation will act as a starting point for resurrecting
> > the Berlin API process. Let us overcome the "Third-party software
> > installation on Linux sucks" problem and strive to a brave new world of
> > easily distributable Linux software!
>
> I think you are looking for a solution to a problem that doesn't exist.
> For the corner cases of where this does apply (proprietary software)
> this is not enough of a use case to justify all the work required.

I don't think this is a corner case at all. For one thing, propietary
applications might just don't play a role _because_ there is no really
good distribution method for them - the typical chicken-and-egg problem.
(I'm not saying this is the only reason, but an important one.) We're
just not giving them an easy method of cross-distro integration. I think
providing this is important.

Second, this way of distribution will help open-source projects as well.
It would make it really easy for them to distribute bleeding-edge
versions of there apps that integrate well into the packaging system
without having to package for each and every package manager. It will
also help those projects which are not widely used enough to be in
distro repos, as they can more easily release binary distributions
without having to depend on getting packaged by the distros. I really
believe this decentralism would be very nice to have, especially in
something as naturally decentralized as the open source community.

Regards,
Denis


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-22-2008, 08:41 PM
"Jeff Spaleta"
 
Default LSB Package API

On Sun, Jun 22, 2008 at 10:02 AM, Denis Washington <dwashington@gmx.net> wrote:
> I don't think this is a corner case at all. For one thing, propietary
> applications might just don't play a role _because_ there is no really
> good distribution method for them - the typical chicken-and-egg problem.

I do not want to make proprietary applications easy to install. My
involvement in Fedora is predicated on the idea that everything I do
as part of my involvement with this project makes it easier for people
to stop using proprietary applications. I would strongly suggest that
you don't stand up proprietary applications as your primary argument
or use case for the technology. If you want this considered seriously
by this community. Stand up a usage case which benefits open source
software and wok through that usage case.

> Second, this way of distribution will help open-source projects as well.
> It would make it really easy for them to distribute bleeding-edge
> versions of there apps that integrate well into the packaging system
> without having to package for each and every package manager.

If its that bleeding edge, should it tie in to the packaging system,
potentially causing problems for the distribution dependency
resolution?

Or should it be more like autopackage built as a secondary system?
Aren't you just re-inventing a new implementation for the problem that
autopackage has been attempting to solve for years now? In fact I
think you should go back and look at autopackage and make a compare
and contrast between the APIs. I know why I don't like autopackage.
it would be useful to know if I'm going to dislike your API for the
same reasons.

-jef

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 

Thread Tools




All times are GMT. The time now is 05:02 AM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org