unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* A question about 'guix build -f'
@ 2017-07-05 22:21 Feng Shu
  2017-07-06 17:11 ` Alex Kost
  0 siblings, 1 reply; 3+ messages in thread
From: Feng Shu @ 2017-07-05 22:21 UTC (permalink / raw)
  To: guix-devel; +Cc: Feng Shu


I want to build emacs-exwm-x in my guix-git repo with the following command:

   guix build emacs-exwm-x -f /home/feng/project/guix/gnu/packages/emacs.scm

But it seem to do nothing, any suggestion?


by the way, pre-inst-env is not suit my need, I just want to hack a
small package -> rebase it to latest git commit -> test build and install -> format patch

The problem is that, when I git pull to get latest git commit, test
build and install need download and build many many package, this is
veeeeeeery sloooooooooow. so I need a way I can code in guix git repo
and use system guix to test build and install.
-- 

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

* Re: A question about 'guix build -f'
  2017-07-05 22:21 A question about 'guix build -f' Feng Shu
@ 2017-07-06 17:11 ` Alex Kost
  2017-07-07  1:14   ` tumashu
  0 siblings, 1 reply; 3+ messages in thread
From: Alex Kost @ 2017-07-06 17:11 UTC (permalink / raw)
  To: Feng Shu; +Cc: guix-devel

Feng Shu (2017-07-06 06:21 +0800) wrote:

> I want to build emacs-exwm-x in my guix-git repo with the following command:
>
>    guix build emacs-exwm-x -f /home/feng/project/guix/gnu/packages/emacs.scm
>
> But it seem to do nothing, any suggestion?

As it is mentioned in the manual, when you use "guix build -f", the file
*must* evaluates to the package definition, i.e. it would work if the
last expression in "gnu/packages/emacs.scm" returned a package.  But the
last expression is ‘(define-public ...)’ which doesn't return a package
definition.

> by the way, pre-inst-env is not suit my need, I just want to hack a
> small package -> rebase it to latest git commit -> test build and
> install -> format patch
>
> The problem is that, when I git pull to get latest git commit, test
> build and install need download and build many many package, this is
> veeeeeeery sloooooooooow. so I need a way I can code in guix git repo
> and use system guix to test build and install.

Well, if you don't want to pull the latest commit, use whatever commit
you want, modify the package and use "pre-inst-env".  I don't really
understand what is the problem.

Actually, if you really want to use "-f" option, just put ‘emacs-exwm-x’
symbol to the end of that file.  But this is not the "right way" :-)

-- 
Alex

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

* Re:Re: A question about 'guix build -f'
  2017-07-06 17:11 ` Alex Kost
@ 2017-07-07  1:14   ` tumashu
  0 siblings, 0 replies; 3+ messages in thread
From: tumashu @ 2017-07-07  1:14 UTC (permalink / raw)
  To: Alex Kost; +Cc: guix

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

> I don't really understand what is the problem.


The problem is:  who will deal with the conflict when merge the patch?

If  patch-sender,   patch-sender must "git pull" before format-patch.  this make patch can am the master
without deal with conflict, but when "git pull", ./pre script can work as same as before git pull ?

If patch-amer.  patch-sender seem to no problem :-)

[-- Attachment #2: Type: text/html, Size: 533 bytes --]

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

end of thread, other threads:[~2017-07-07  1:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-05 22:21 A question about 'guix build -f' Feng Shu
2017-07-06 17:11 ` Alex Kost
2017-07-07  1:14   ` tumashu

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