Re: Custom kernel module woes

2018-03-22 Thread Thorsten Wilms

On 22.03.2018 18:51, Marius Bakke wrote:


Can you post the .config that requires CONFIG_CRYPTO_XTS=y?


I attached the result of `make menuconfig` in linux-libre-4.15.12, as 
that shows the issue and is as neutral as it gets.




I remember having to turn on "expert" configuration in order to change
some of the default builtins.  If this is the case, perhaps we should
make it a built-in on GuixSD too.


It already has CONFIG_EXPERT=y, as interesting as that might seem as a 
default.



--
Thorsten Wilms

thorwil's design for free software:
http://thorwil.wordpress.com/


config.bz2
Description: application/bzip


Re: Custom kernel module woes

2018-03-22 Thread Marius Bakke
Thorsten Wilms  writes:

> Things were going well until I got to XTS support. With either my custom 
> configuration, or a default one, XTS is stuck on -*-, i.e. mandatory 
> built-in. The after-build phase will fail if there's no xts.ko module!
>
> I tried to figure out the dependencies and failed. Finally, I took the 
> guix kernel configuration, replaced the entire segment device-drivers up 
> to file-systems with one from my custom version and did the few other 
> changes. It works!
>
> Now if anyone knows or can figure out how *exactly* to turn XTS's -*- 
> into a {M}, that would still be good to know. A script that turns any 
> kernel configuration into a guix-sd-safe one, or changes to make these 
> gymnastics unnecessary would be great!

Can you post the .config that requires CONFIG_CRYPTO_XTS=y?

I remember having to turn on "expert" configuration in order to change
some of the default builtins.  If this is the case, perhaps we should
make it a built-in on GuixSD too.


signature.asc
Description: PGP signature


Re: Submitting Patch File for r-catdap Package Description for CRAN package

2018-03-22 Thread Sahithi Yarlagadda
Hi Ricardo

The build was success after adding native input as gfortran.
Unfortunately it was not listed in the project website

https://cran.r-project.org/web/packages/catdap/


I am submitting the patch.



On Thursday 22 March 2018 07:41 PM, Ricardo Wurmus wrote:
> Hi Sahithi,
>
>> ./pre-inst-env guix build r-catdap
>>
>> Got this error while building the package
>>
>> starting phase `install'
>> * installing *source* package ?catdap? ...
>> ** package ?catdap? successfully unpacked and MD5 sums checked
>> ** libs
>> gfortran -fpic -g -O2 -c catdap1f.f -o catdap1f.o
>> /gnu/store/icz3hd36aqpjz5slyp4hhr8wsfbgiml1-bash-minimal-4.4.12/bin/bash:
>> gfortran: command not found
> It says that it couldn’t find gfortran.  That’s because the package
> definition does not include gfortran among its (native-)inputs.
>
> Try adding it.  Hint: there are other packages in cran.scm that use
> gfortran.
>
> --
> Ricardo
>
> GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
> https://elephly.net
>
>
>

-- 
Regards
Sahithi

>From 06857b15ca253c68be18c9c831e95b6808fd956e Mon Sep 17 00:00:00 2001
From: Sahithi Yarlagadda 
Date: Thu, 22 Mar 2018 21:07:34 +0530
Subject: [PATCH] gnu: Add r-catdap.

* gnu/packages/cran.scm (r-catdap): New variable.
---
 gnu/packages/cran.scm | 23 +++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 749eed8b5..c06417399 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -3273,3 +3273,26 @@ those functions to be used with time series including specifications that may
 contain lags, diffs and missing values.")
 ;; Any GPL version.
 (license license:gpl2+)))
+
+(define-public r-catdap
+  (package
+(name "r-catdap")
+(version "1.3.4")
+(source
+ (origin
+   (method url-fetch)
+   (uri (cran-uri "catdap" version))
+   (sha256
+(base32
+ "0i877l61f6c75pczi235rzci67w29zv1d7z5zn5p5ymndclvlpl2"
+(build-system r-build-system)
+(native-inputs
+ `(("gfortran" ,gfortran)))
+(home-page "https://cran.r-project.org/web/packages/catdap/;)
+(synopsis "Categorical data analysis program package")
+(description
+ "This package provides functions for analyzing multivariate data.
+Dependencies of the distribution of the specified variable (response
+variable) to other variables (explanatory variables) are derived and
+evaluated by the @dfn{Akaike Information Criterion} (AIC).")
+ (license license:gpl2+)))
-- 
2.16.2



Re: ttyS0

2018-03-22 Thread Catonano
2018-03-22 16:37 GMT+01:00 Catonano :

> I managed to get the error messages not translated in Italian
>
> -bash: cannot set terminal process group (340): Inappropriate ioctl for
> device
> -bash: no job control in this shell
>
>
>
>
and this is the vm conf, should anyone wan to try to reproduce it



;; This is an operating system configuration template
;; for a "desktop" setup with GNOME and Xfce where the
;; root partition is encrypted with LUKS.

(use-modules (gnu) (gnu system nss))
;(use-modules (gnu packages tryton))
;(use-modules (gnu packages databases))
;(use-modules (gnu packages xorg))
(use-modules (gnu services xorg))
(use-modules (gnu packages display-managers))
(use-service-modules desktop)
(use-package-modules certs gnome)
;(use-service-modules databases)

;(use-service-modules trytond)



(operating-system
  (host-name "antelope")
  (timezone "Europe/Paris")
  ;;(locale "it_IT.utf8")

  ;;This is to be able to login into a guest system
  (kernel-arguments '("console=ttyS0"))

  ;; Assuming /dev/sdX is the target hard disk, and "my-root"
  ;; is the label of the target root file system.
  (bootloader (grub-configuration (target "/dev/sda")))

  (file-systems (cons (file-system
(device "my-root")
(title 'label)
(mount-point "/")
(type "ext4")

  )
  %base-file-systems))

  (users (cons (user-account
(name "catonano")
(password (crypt " " "ab"))
(comment "Alice's brother")
(group "users")
(supplementary-groups '("wheel" "netdev"
"audio" "video"))
(home-directory "/home/catonano"))
   %base-user-accounts))


  ;; This is where we specify system-wide packages.
  (packages (cons* nss-certs ;for HTTPS access
   gvfs  ;for user mounts
   ;;python-trytond
   ;;tryton
   ;;postgresql
   lightdm
   lightdm-gtk-greeter
   %base-packages))

  ;; Add GNOME and/or Xfce---we can choose at the log-in
  ;; screen with F1.  Use the "desktop" services, which
  ;; include the X11 log-in service, networking with Wicd,
  ;; and more.

  (services

   (cons*
(service agetty-service-type
 (agetty-configuration (tty "ttyS0")))
(console-keymap-service "de")  <-- PAY ATTENTION HERE !!
;(gnome-desktop-service)
;(xfce-desktop-service)
(cdr %desktop-services)))

  ;; Allow resolution of '.local' host names with mDNS.
  (name-service-switch %mdns-host-lookup-nss))


Re: ttyS0

2018-03-22 Thread Catonano
I managed to get the error messages not translated in Italian

-bash: cannot set terminal process group (340): Inappropriate ioctl for
device
-bash: no job control in this shell



2018-03-21 0:08 GMT+01:00 Catonano :

> I have this couple of lines in my configuration
>
> (service agetty-service-type
>  (agetty-configuration (tty "ttyS0")))
>
> When I launch the VM I see a lot off stu scrolling on ttyS0
>
> But then, when I try to login, I get these error messages
>
> -bash: impossibile impostare il gruppo di processi del terminale (341):
> ioctl non appropriata per il device
> -bash: nessun controllo dei job in questa shell
>
>
> It says:
>
> -bash: the setup of the group of processes of the terminal (341) is
> impossible: ioctl not suited for the device
> -bash: no jobs control in this shell
>
> This is not vital. I can live without this
> It's just that I'd like to be able to log in through the host terminal
>
> Thanks
>


Re: Submitting Patch File for r-catdap Package Description for CRAN package

2018-03-22 Thread Ricardo Wurmus

Hi Sahithi,

> ./pre-inst-env guix build r-catdap
>
> Got this error while building the package
>
> starting phase `install'
> * installing *source* package ?catdap? ...
> ** package ?catdap? successfully unpacked and MD5 sums checked
> ** libs
> gfortran -fpic -g -O2 -c catdap1f.f -o catdap1f.o
> /gnu/store/icz3hd36aqpjz5slyp4hhr8wsfbgiml1-bash-minimal-4.4.12/bin/bash:
> gfortran: command not found

It says that it couldn’t find gfortran.  That’s because the package
definition does not include gfortran among its (native-)inputs.

Try adding it.  Hint: there are other packages in cran.scm that use
gfortran.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net





Re: Submitting Patch File for r-catdap Package Description for CRAN package

2018-03-22 Thread Sahithi Yarlagadda
Hi

I made changes to gnu/packages/cran.scm file and tried to build by
cloning the source and then

./bootstrap

./configure --localstatedir=/var

make

and then did this

./pre-inst-env guix build r-catdap

Got this error while building the package

starting phase `install'
* installing *source* package ?catdap? ...
** package ?catdap? successfully unpacked and MD5 sums checked
** libs
gfortran   -fpic  -g -O2  -c catdap1f.f -o catdap1f.o
/gnu/store/icz3hd36aqpjz5slyp4hhr8wsfbgiml1-bash-minimal-4.4.12/bin/bash:
gfortran: command not found
make: ***
[/gnu/store/af15vbzfw211mh278h3n2lbfrpxkps14-r-minimal-3.4.3/lib/R/etc/Makeconf:182:
catdap1f.o] Error 127
ERROR: compilation failed for package ?catdap?
* removing
?/gnu/store/amhlp36iaihivvcb1qddrbm8jfn55nyw-r-catdap-1.3.4/site-library/catdap?
phase `install' failed after 0.4 seconds
builder for
`/gnu/store/v5l6i88p5xq8czgcnigwzwkcg9gz7qka-r-catdap-1.3.4.drv' failed
with exit code 1
@ build-failed
/gnu/store/v5l6i88p5xq8czgcnigwzwkcg9gz7qka-r-catdap-1.3.4.drv - 1
builder for
`/gnu/store/v5l6i88p5xq8czgcnigwzwkcg9gz7qka-r-catdap-1.3.4.drv' failed
with exit code 1
guix build: error: build failed: build of
`/gnu/store/v5l6i88p5xq8czgcnigwzwkcg9gz7qka-r-catdap-1.3.4.drv' failed

Please help me resolve this.


On Thursday 22 March 2018 02:38 AM, Ricardo Wurmus wrote:
> Hi Sahithi,
>
>> I resending the patch. Bear with my mistakes, im learning things.
>> Hopefully Ill make sure my next patch would be perfect.
> Thank you for persevering :)
>
> This looks a lot better, but I’ve just tried to build it and failed.
> Have you tried building the package?
>
> Looking at the error message can you figure out what might be wrong
> here?
>
> --
> Ricardo
>
> GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
> https://elephly.net
>
>
>

-- 
Regards
Sahithi