unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* guix build python2 --with-source fails?
@ 2020-06-18 11:28 zimoun
  2020-06-18 11:39 ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 3+ messages in thread
From: zimoun @ 2020-06-18 11:28 UTC (permalink / raw)
  To: help-guix

Dear,

As an exercise about rebuilding old versions (e.g. used by old
scientific paper), I have tried to rebuild say the very old Python 2.5.

My naive attempt is to start with:

--8<---------------cut here---------------start------------->8---
wget https://www.python.org/ftp/python/2.5.2/Python-2.5.2.tgz
tar -xzvf Python-2.5.2.tgz

guix build python2 --with-source=/tmp/Python-2.5.2
guix build: warning: transformation 'with-source' had no effect on python2@2.7.17
The following graft will be made:
   /gnu/store/ck7swzbk6h7mc7splsih93xsixc6z4ni-python2-2.7.17.drv
[...]
--8<---------------cut here---------------end--------------->8---

Why is it not possible to use '--with-source' with the package python2?
I was expecting fail to build, not fail to apply the transformation.

I mean, I thought that "guix build foo --with-source" was somehow
equivalent to:

--8<---------------cut here---------------start------------->8---
cd /tmp/Python-2.5.2
guix environment -C python2
./configure
make
--8<---------------cut here---------------end--------------->8---

which works.  Is it not?


Thank you in advance.

All the best,
simon


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: guix build python2 --with-source fails?
  2020-06-18 11:28 guix build python2 --with-source fails? zimoun
@ 2020-06-18 11:39 ` Tobias Geerinckx-Rice
  2020-06-18 13:04   ` zimoun
  0 siblings, 1 reply; 3+ messages in thread
From: Tobias Geerinckx-Rice @ 2020-06-18 11:39 UTC (permalink / raw)
  To: zimoun; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 541 bytes --]

Simon,

zimoun 写道:
> Why is it not possible to use '--with-source' with the package 
> python2?

λ mv tmp/{Python,python2}-2.5.2
λ guix build python2 --with-source=/tmp/python2-2.5.2
substitute: updating substitutes from 
'https://guix.tobias.gr'... 100.0%
substitute: updating substitutes from 
'https://ci.guix.gnu.org'... 100.0%
^C

Guix expects the source directory to start with the package NAME. 
There's a very recent bug report asking to support arbitrary 
--with-source=NAME=FILE.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: guix build python2 --with-source fails?
  2020-06-18 11:39 ` Tobias Geerinckx-Rice
@ 2020-06-18 13:04   ` zimoun
  0 siblings, 0 replies; 3+ messages in thread
From: zimoun @ 2020-06-18 13:04 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: help-guix

Hi Tobias,

On Thu, 18 Jun 2020 at 13:39, Tobias Geerinckx-Rice <me@tobias.gr> wrote:

> Guix expects the source directory to start with the package NAME.

Ah, I did not know.  Thank you.  Now it fails as expected. :-)

> There's a very recent bug report asking to support arbitrary 
> --with-source=NAME=FILE.

I missed it.  Thanks for the pointer.

Well, it was even expecting that it works as
'--with-source=https://example.org/foo.tgz'.


All the best,
simon


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-18 13:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-18 11:28 guix build python2 --with-source fails? zimoun
2020-06-18 11:39 ` Tobias Geerinckx-Rice
2020-06-18 13:04   ` zimoun

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).