On Fri, Mar 30, 2012 at 03:41:04PM +0800, Seth Hetu wrote:
> >From what I remember of the only debian package I ever made, if you're
> careful you can allow parallel installs of the same program. You'd
> just need a different authoritative name for each, and they can't
> overlap any files. So, e.g.,:
> 
> game-ypsiliform.deb:
>    /usr/local/bin/game-ypsiliform
>    /usr/share/game-ypsiliform/some_pngs
> 
> game-zenzizenzic.deb:
>    /usr/local/bin/game-zenzizenzic
>    /usr/share/game-zenzizenzic/some_pngs
> 
> wandering-hamster.deb:
>   depends: game-zenzizenzic
>   #etc.
> 
> This is usually how gradual transitions to new libraries are done.
> Some libraries (I'm looking at you, libjpeg) royally screw this simple
> concept up however.

That makes sense for packages that break backwards compatability, but 
since backcompat is always a top priority in all OHRRPGCE releases, it 
would be an unneeded layer of complexity. If we were going to make games 
depend on a separate ohrrpgce package, they would just depend on a 
minimum version.

> > Oh, yes, I can certainly specify the minimum version <snip>
> > the package manager couldn't do anything useful with that information.
> 
> Well, you can distribute a single .deb that contains all the latest
> version of the OHR. Or, you could self-host an apt repository (it's
> not really that hard; there's scripts that convert a pile of .debs
> into the required format) and then users could just apt-get install
> "wandering-hamster" and the dependencies would be pulled in.

Yeah, I might try to self host an apt repository. That would be pretty 
nifty.

But I still like the idea that some random user could export a single 
.deb of their game that would "just work" without requiring any other 
manual debs or any manual third-party software sources.

> >> >> > ...but that list of package names is 246k gzip compressed... although 
> >> >> > I
> >> >> > guess it does not need to be bundled into the ohrrpgce distribution.
> 
> Naming conflicts don't matter until they distribute. If you provide a
> central apt repository of OHR games, just do a name check when they
> upload. Or provide a web interface where they can do this check
> easily. Who cares what they name their game internally? They can
> rebuild the game easily enough later on if there's a conflict, and it
> only affects the package name (not the name of the actual game). Or
> you can start all of these packages with "ohr-".   :P

Yeah, I might be worrying too much about that aspect :)

> -->Seth
> PS: Do individual games currently install any .desktop entries in
> /usr/share/applications? It'd be nice if, e.g., Vikings of Midgard got
> its own menu entry and icon in the "games" section of the menu.

Yes, that is my intention, and that is how it already works for the 
existing deb packages for Wandering Hamster and Vikings of Midgard

---
James

> 
> On Fri, Mar 30, 2012 at 9:54 AM, James Paige <[email protected]> wrote:
> > On Fri, Mar 30, 2012 at 02:36:38PM +1300, Ralph Versteegen wrote:
> >> On 30 March 2012 11:36, James Paige <[email protected]> wrote:
> >> > On Fri, Mar 30, 2012 at 11:32:04AM +1300, Ralph Versteegen wrote:
> >> >> On 30 March 2012 05:59, James Paige <[email protected]> wrote:
> >> >> > I was reading up on the debian package format. One thing I was 
> >> >> > delighted
> >> >> > to discover is that the file format is much simpler than I expected, 
> >> >> > and
> >> >> > the only tools we really need are "ar", "tar" and "gzip" and since all
> >> >> > of those have Windows ports, it should be possible to export a game 
> >> >> > as a
> >> >> > .deb file just as easily on Windows as Linux.
> >> >>
> >> >> Slackware's is even simpler ;)  I could easily add Slackware support,
> >> >> but it's a fairly unpopular distribution.
> >> >
> >> > How do slackware packages work?
> >>
> >> They're just an archive containing files with absolute path (eg.
> >> /usr/bin/global) plus an optional .sh install script to create needed
> >> links or whatever else. All the important information is stored in the
> >> package filename!
> >>
> >> >> > I decided it would be best to create the deb package with a copy of
> >> >> > ohrrpgce-game included, rather than relying on declared dependency to 
> >> >> > a
> >> >> > shared ohrrpgce package. This is slightly un-debianlike, and wastes a
> >> >> > small amount of disk space if somebody installs a large number of OHR
> >> >> > games,but I think with all things considered, it is simpler and better
> >> >> > to do it that way.
> >> >>
> >> >> Doesn't Debian's package manager automatically download and install
> >> >> dependencies? I'm worried about a user installing two games with
> >> >> different versions of ohrrpgce-game, breaking one of the games.
> >> >
> >> > Yes, exactly, and that is why I want to NOT rely on a declared
> >> > dependency on the ohrrpgce .deb package. Instead I will include a copy
> >> > of ohrrpgce-game in each game's distribution, just like for the zip and
> >> > the Windows installer.
> >>
> >> Do you mean that you can't specify the required version? Being on a
> >> distro without a "real" package manager, I thought that was the whole
> >> point of package managers!
> >
> > Oh, yes, I can certainly specify the minimum version of the
> > ohrrpgce package (or minimum version, or max version, or a version
> > range), but because the ohrrpgce package is not in any of the archives,
> > the package manager couldn't do anything useful with that information.
> >
> > When I say that I plan to include a copy of ohrrpgce-game in each game's
> > .deb file, I should clarify that I plan on including a RENAMED copy of
> > ohrrpgce-game
> >
> > I will make it so that just like how game.exe on windows detects when it
> > has been renamed and looks for exename.rpg, I will make it so that
> > ohrrpgce-game on linux will detect when it has been renamed to
> > /usr/games/name-of-game it will try to launch
> > /usr/share/games/name-of-game/name-of-game.rpg (and the same with
> > /usr/local/games)
> >
> > ---
> > James
> >
> >> >> > The one big issue I still need to resolve is package naming. I want to
> >> >> > make sure that you can't export your game with a package name that
> >> >> > conflicts with a package name in the archive.
> >> >> >
> >> >> > One option is to prefix all package names with ohr- but I dislike that
> >> >> > because it is inconsistend with the way games in debian packages are
> >> >> > usually named (the are usually just the title) and I draws attention
> >> >> > unnecesarily to the fact that the game was made with an engine. The
> >> >> > player who is installing the game doesn't need to know that right in 
> >> >> > the
> >> >> > filename.
> >> >> >
> >> >> > The other option I thought of was to include a list of package names 
> >> >> > to
> >> >> > disallow. Generating/updating this list is easy with:
> >> >> >
> >> >> >  apt-cache pkgnames > list.txt
> >> >> >
> >> >> > ...but that list of package names is 246k gzip compressed... although 
> >> >> > I
> >> >> > guess it does not need to be bundled into the ohrrpgce distribution. 
> >> >> > On
> >> >> > Debian boxes the list can be generated on the fly, and on Windows, 
> >> >> > Mac,
> >> >> > and Non-Debian Linuxen, it can be downloaded when needed using wget,
> >> >> > just like how the Innosetup installer is downloaded.
> >> >> >
> >> >> > Yeah, I guess just typing this helped me decide which way to go. I'll
> >> >> > use the apt-cache pkgnames method. :)
> >> >> >
> >> >> > ---
> >> >> > James
> _______________________________________________
> Ohrrpgce mailing list
> [email protected]
> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
> 
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to