9front - general discussion about 9front
 help / color / mirror / Atom feed
From: sl@9front.org
To: 9front@9front.org
Subject: Re: [9front] pkg/unpkg strangeness
Date: Mon, 11 May 2015 18:00:44 -0400	[thread overview]
Message-ID: <e01a51abb48c6dd0d068b67ca7c8081d@u2.sfldmibb.det.wayport.net> (raw)

> imo, unpkg should be rewritten in rc.

For what it's worth:

I was never happy with pkg(1) as the result of our early discussions
about creating a ports system.

My original suggestion was something more like what OpenBSD does: We
would maintain (only) mkfiles that include targets for download, hash,
patch, install, uninstall, etc., and not bother with the rest.  This
got lost in the discussion with other participants.  We ended up with
an initial pkg(1) system that distributed binaries and at first didn't
even include the source files used to build the package.

There are other quirks.  For example, pkg(1)'s rc scripts get
installed into /$objtype/pkg.

The original author vanished and I've ended up maintaining the package
repository as well as doing a generally poor job adding small
features, like including the source files in the packages.  It's not
entirely clear to me why unkpg is a c program in the first place.

Recently, there has been talk again on IRC about creating yet another
ports system.  I took this opportunity to once again advocate for a
simple set of conventions for using mkfiles.  Someone else suggested
what I thought was a good idea: Install each package (source and
binaries) into its own root under some arbitrary package directory and
then bind the needed files into place.  A mkfile target could print
the needed bind commands.  This would completely eliminate the need to
invent any new mechanism to track installed files.  To see what's
installed, use ls.  To uninstall, use rm.

That said, I'm no longer in favor of any kind of ports system at all.
This stuff always boils down to a lot of arguing and coordination and
bookkeeping without much real benefit.

sl


             reply	other threads:[~2015-05-11 22:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-11 22:00 sl [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-05-11 21:33 sl
2015-05-11 21:44 ` Iruatã Souza
2015-05-11 21:46   ` Aram Hăvărneanu
2015-05-11 21:50     ` Iruatã Souza
2015-05-11 20:28 sl
2015-05-11 21:17 ` [9front] " Iruatã Souza

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=e01a51abb48c6dd0d068b67ca7c8081d@u2.sfldmibb.det.wayport.net \
    --to=sl@9front.org \
    --cc=9front@9front.org \
    /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;
as well as URLs for NNTP newsgroup(s).