unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Joshua Branson <jbranso@dismail.de>
To: "Mája Tomášek" <maya.tomasek@disroot.org>
Cc: guix-devel@gnu.org
Subject: Re: Breaking the loop with php's composer
Date: Wed, 03 Aug 2022 18:23:25 -0400	[thread overview]
Message-ID: <87les5rmoy.fsf@dismail.de> (raw)
In-Reply-To: <871qtx4gy7.fsf@disroot.org> ("Mája Tomášek"'s message of "Wed, 03 Aug 2022 15:03:44 +0200")

Mája Tomášek <maya.tomasek@disroot.org> writes:

> Hi,
>
> Since I want to deploy roundcube on my guix machine, I was recently
> looking into packaging composer (https://getcomposer.org/) which
> is a dependency manager for PHP.
>
> First it looked like it will be a simple task! Simply download the
> installer. But! The installer was actually just a downloader for a .phar
> archive. Why do you need a downloader for an archive in a repo?
>
> So time to reverse engineer the archive. How to build it. Okay, now I
> encountered a build script from
> https://github.com/composer/getcomposer.org/blob/main/update.sh, but!
> Another hickup. This script relies on composer! So you cannot build
> composer without having composer! It's dotnet all over.
>
> So I came to you, what should I do now? Here are my options:
>
> 1. contact the developers and hope they will help me

Certainly give that a try!

> 2. reverse engineer and build composer inside guix from scratch (as guix needs to install
> dependencies outside of package managers and it'll still need to
> circumvent the composer's download phase)

You could always use git to travel back in composer's time, to a time
when composer did not use compuser to build itself.  I think that is how
to package jquery currently.  We just use a really old makefile and have
an outdated jquery package.

> 3. phar archives are actually acceptable in guix distribution, it
> doesn't need to be built from source (i doubt this is the case)

You are correct.  Guix perfers that we build everything from source.

Best of luck!
>
> Thank you all for any help.
>
> With wishes of great wednesday,
> Maya


  reply	other threads:[~2022-08-03 22:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-03 13:03 Breaking the loop with php's composer Mája Tomášek
2022-08-03 22:23 ` Joshua Branson [this message]
2022-08-07 20:33 ` Ludovic Courtès

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87les5rmoy.fsf@dismail.de \
    --to=jbranso@dismail.de \
    --cc=guix-devel@gnu.org \
    --cc=maya.tomasek@disroot.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).