unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Questions from a newcomer about Guix.
@ 2019-09-24 23:15 Бойцов, Вася
  2019-10-08  4:42 ` Chris Marusich
  0 siblings, 1 reply; 3+ messages in thread
From: Бойцов, Вася @ 2019-09-24 23:15 UTC (permalink / raw)
  To: help-guix

Hello, I would like to make Guix more comfy for me (and maybe others)
I have some questions:
1. Can one build system with selected CFLAGS?
2. Is it possible to provide virtuals (package subtitiutions f.e.
toybox/busybox/etc)?
2.1. I would love to rebuild my system with libressl system-wide, what
should I do?
3. is there an option to make optional build-time dependencies in a package?
4. How can one create a rule to make some of the selected packaes static?
5. I want to extract ./configure --help from packages, how could I achieve that?


-- 

Respectfully,
Boytsov Vasya

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

* Questions from a newcomer about Guix.
@ 2019-09-25  7:16 Бойцов, Вася
  0 siblings, 0 replies; 3+ messages in thread
From: Бойцов, Вася @ 2019-09-25  7:16 UTC (permalink / raw)
  Cc: help-guix

Hello, I would like to make Guix more comfy for me (and maybe others)
I have some questions:
1. Can one build system with selected CFLAGS?
2. Is it possible to provide virtuals (package subtitiutions f.e.
toybox/busybox/etc)?
2.1. I would love to rebuild my system with libressl system-wide, what
should I do?
3. is there an option to make optional build-time dependencies in a package?
4. How can one create a rule to make some of the selected packaes static?
5. I want to extract ./configure --help from packages, how could I achieve that?
-- 

Respectfully,
Boytsov Vasya

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

* Re: Questions from a newcomer about Guix.
  2019-09-24 23:15 Questions from a newcomer about Guix Бойцов, Вася
@ 2019-10-08  4:42 ` Chris Marusich
  0 siblings, 0 replies; 3+ messages in thread
From: Chris Marusich @ 2019-10-08  4:42 UTC (permalink / raw)
  To: Бойцов, Вася
  Cc: help-guix

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

"Бойцов, Вася" <vasiliy.boytsov@phystech.edu> writes:

> Hello, I would like to make Guix more comfy for me (and maybe others)
> I have some questions:
> 1. Can one build system with selected CFLAGS?
> 2. Is it possible to provide virtuals (package subtitiutions f.e.
> toybox/busybox/etc)?
> 2.1. I would love to rebuild my system with libressl system-wide, what
> should I do?
> 3. is there an option to make optional build-time dependencies in a package?
> 4. How can one create a rule to make some of the selected packaes static?
> 5. I want to extract ./configure --help from packages, how could I achieve that?

I don't have all the answers, but you might find the following blog post
relevant - it explains in detail how one might customize a package:

https://guix.gnu.org/blog/2018/customize-guixsd-use-stock-ssh-agent-everywhere/

I think it might help answer questions 2, 3, and 4.

For compiling packages statically, in my experience you generally need
to create a custom package definition.  Often, you can "inherit" from an
existing package, and just change the things that matter (e.g.,
configure flags).  There are some procedures in the Guix source code
which attempt to make the appropriate modifications to a package in
order to generate a static version (e.g., static-package in
guix/build-system/gnu.scm), but in practice I've found that some
packages require are idiosyncratic and require some extra work.  In any
case, you "just" need to alter the package definition to set configure
flags appropriately, set make variables appropriately, or set
environment variables appropriately.  For example, sometimes all you
have to do is set LDFLAGS=-static.  I don't have a good example, though,
I'm afraid.  Try grepping the Guix source for the word "static".

I realize that doesn't answer all your questions, but hopefully it's a
good start!  Good luck.

-- 
Chris

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

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

end of thread, other threads:[~2019-10-08  4:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-24 23:15 Questions from a newcomer about Guix Бойцов, Вася
2019-10-08  4:42 ` Chris Marusich
  -- strict thread matches above, loose matches on Subject: below --
2019-09-25  7:16 Бойцов, Вася

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