Re: reinstall package on Atomic host

2019-08-30 Thread arnaud gaboury
No idea why, but the su module is back. BUT, as written in my last post (a
few mn ago), I can run sudo but not su.
There is no reinstall on rpm-ostree. It is a more complexe method. Even
removing is not trivial

---
# ls -alZ /usr/share/selinux/targeted/default/active/modules/100/su
total 24K
drwx--.   2 root root system_u:object_r:usr_t:s0   33 Jan  1  1970 ./
drwx--. 419 root root system_u:object_r:usr_t:s0  12K Jan  1  1970 ../
-rw---.   3 root root system_u:object_r:usr_t:s0 1.9K Jan  1  1970 cil
-rw---. 835 root root system_u:object_r:usr_t:s03 Jan  1  1970
lang_ext



On Fri, Aug 30, 2019 at 4:23 AM stan via users <
users@lists.fedoraproject.org> wrote:

> On Fri, 30 Aug 2019 00:22:11 +0200
> arnaud gaboury  wrote:
>
> > I run Fedora atomic 29. I made a mistake by removing one very
> > important SELinux module: su.
> >
> > I can no more su (I can sudo), which is very annoying. To get back the
> > module, I need to reinstall the selinux-policy-targeted  package.
> [snip]
> > How can I delete/install or reinstall it? Is there a way to get back
> > the su module?
>
> I don't know rpm-ostree, but is there a reinistall command like dnf or
> an force install option like rpm?  Or maybe a distrosync to bring the
> install into alignment with latest packages?
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


reinstall package on Atomic host

2019-08-29 Thread arnaud gaboury
I run Fedora atomic 29. I made a mistake by removing one very important
SELinux module: su.

I can no more su (I can sudo), which is very annoying. To get back the
module, I need to reinstall the selinux-policy-targeted  package.

--
% sudo setenforce 0
% sudo rpm-ostree uninstall selinux-policy-targeted
error:package/capability 'selinux-policy-targeted' isnot currently requested
% rpm -qa | grep selinux
.
182:selinux-policy-targeted-3.
-
Following this[0] thread, I tried:

 % sudo rpm-ostree override remove selinux-policy-targeted
[sudo] password for gabx:
Checking out tree cb40a05... done
Resolving dependencies... done
Applying 1 override and 79 overlays
Processing packages... done
Running pre scripts... done
Running post scripts... done
Writing rpmdb... done
Writing OSTree commit... done
error: With policy root '/proc/self/fd/25/usr/etc/selinux/targeted':
selabel_open(SELABEL_CTX_FILE): No such file or directory
---

How can I delete/install or reinstall it? Is there a way to get back the su
module?

Thank you for help



[0]https://github.com/projectatomic/rpm-ostree/issues/1386
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: SELinux troubleshoot: can't install modules

2019-08-28 Thread arnaud gaboury
On Wed, Aug 28, 2019 at 2:10 PM Ed Greshko  wrote:

> On 8/28/19 8:05 PM, arnaud gaboury wrote:
> > Turning it on allows user gabx to ssh. So it is a first good news. I am
> left now with the inability to load module.
>
> FWIW, when I run into selinux issue I post on the selinux list.  I've
> never been disappointed.  Not all of the members of that list are on the
> User's list.
>

Good advice. Is it Fedora SELinux list?

>
> --
> If simple questions can be answered with a simple google query then why
> are there so many of them?
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: SELinux troubleshoot: can't install modules

2019-08-28 Thread arnaud gaboury
On Wed, Aug 28, 2019 at 1:19 PM Petr Lautrbach 
wrote:

> > Until a few days ago, my Fedora 29 Atomic host was working perfectly with
> > SELinux enforced. The server is only a few week old with nothing fancy
> yet
> > set or installed.
> >
> > I changed recently my user (gabx) context from the default unconfined to
> > systemand ran restorecon.  This change may be the root of the problem. I
> > ran a few a certbot-letsencrypt container which changed a few files
> > contexts (container_t): maybe did it broke a few things?
>
> What exactly you did when you changed "context from the default unconfined
> to system" ?
>

Fresh after install:

--

# semanage login -l

Login NameSELinux User  MLS/MCS Range

__default__   unconfined_u  s0-s0:c0.c1023
root  unconfined_u  s0-s0:c0.c1023
gabx  unconfined_u  s0-s0:c0.c1023


Then:

# semanage login -m -s sysadm_u --range s0-s0.c0.c1023
# semanage login -l
gabx sysadm_u s0-s0:c0.c1023   *

# restorecon -RF /hone/gabx

# ls -alZ /home/gabx
drwxrwxr-x. 5 gabx gabx sysadm_u:object_r:config_home_t:s061 Aug
17 14:42 .config/
drwxrwxr-x. 2 gabx gabx sysadm_u:object_r:user_home_t:s0   6 Aug
21 14:09 hugo/


# vim /etc/sudoers.d/gabx
gabxALL=(ALL)   TYPE=sysadm_t   ROLE=sysadm_r   /bin/sh



When listing booleans to answer this thread, I realized I had this:
ssh_sysadm_login --> off

Turning it on allows user gabx to ssh. So it is a first good news. I
am left now with the inability to load module.

As for the doc, it is my ref, I knpw it well.







>
> The following 2 chapters for SELinux Users and Administration Guide could
> help you set you user correctly:
>
> 3.3. Confined and Unconfined Users
> https://docs.fedoraproject.org/en-US/Fedora/25/html/SELinux_Users_and_Administrators_Guide/sect-Security-Enhanced_Linux-Targeted_Policy-Confined_and_Unconfined_Users.html
> 3.3.1. The sudo Transition and SELinux Roles
> https://docs.fedoraproject.org/en-US/Fedora/25/html/SELinux_Users_and_Administrators_Guide/sect-Security-Enhanced_Linux-Targeted_Policy-Confined_and_Unconfined_Users.html#sect-Security-Enhanced_Linux-Targeted_Policy-Confined_and_Unconfined_Users-sudo_Transition_and_SELinux_Roles
>
>
> >
> > I have now a few issues:
>
>
NOTE: SOLVED

> 1- user gabx can't no more ssh the server: "unable to get valid context
> for
> > gabx" (same results from various machine)
> >
> ---
> > $ journalctl -r
> > .
> > error: ssh_selinux_setup_pty:security_compute_relabel: Invalid argument
> > .
> > error: PAM pam_open_session(): cannot make/remove an entry for the
> > specified session
> > 
> > pam_selinux(sshd:session):Unableto get valid context for gabx
> >
> > below complete lines:
> > Aug 28 09:07:45 poppy audit[1954]: CRYPTO_KEY_USER pid=1954 uid=0
> auid=1001
> > ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy
> > kind=server fp=SHA256:30:af:76:06:1b:6f:fe:b1:55:f5:6b:6c:70:4a:76:>
> > Aug 28 09:07:45 poppy audit[1954]: CRYPTO_KEY_USER pid=1954 uid=0
> auid=1001
> > ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy
> > kind=server fp=SHA256:ae:a4:a7:92:35:d0:2e:ea:47:82:c7:79:f0:17:db:>
> > Aug 28 09:07:45 poppy audit[1954]: CRYPTO_KEY_USER pid=1954 uid=0
> auid=1001
> > ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy
> > kind=server fp=SHA256:4e:d3:d2:82:9e:72:16:4e:a7:61:8b:00:88:0e:69:>
> > Aug 28 09:07:45 poppy audit[1954]: CRED_DISP pid=1954 uid=0 auid=1001
> > ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=PAM:setcred
> > grantors=pam_securetty,pam_env,pam_unix acct="gabx" exe="/usr/sbin/ss>
> > Aug 28 09:07:45 poppy audit[1954]: CRYPTO_KEY_USER pid=1954 uid=0
> auid=1001
> > ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy
> > kind=server fp=SHA256:30:af:76:06:1b:6f:fe:b1:55:f5:6b:6c:70:4a:76:>
> > Aug 28 09:07:45 poppy sshd[1957]: Disconnected from user gabx
> > 212.147.52.214 port 57268
> > Aug 28 09:07:45 poppy audit[1954]: CRYPTO_KEY_USER pid=1954 uid=0
> auid=1001
> > ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy
> > kind=session fp=? direction=both spid=1957 suid=1001 rport=57268 la>
> > Aug 28 09:07:45 poppy sshd[1957]: Received disconnect from 212.147.52.214
> > port 57268:11: disconnected by user
> > Aug 28 09:07:45 poppy audit[1954]: USER_LOGOUT pid=1954 uid=0 auid=1001
> > ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=login id=1001
> > exe="/usr/sbin/sshd" hostname=? addr=? terminal=/dev/pts/2 res=su>
> > Aug 28 09:07:45 poppy audit[1954]: USER_END pid=1954 uid=0 auid=1001
> ses=13
> > subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=login id=100

SELinux troubleshoot: can't install modules

2019-08-28 Thread arnaud gaboury
Until a few days ago, my Fedora 29 Atomic host was working perfectly with
SELinux enforced. The server is only a few week old with nothing fancy yet
set or installed.

I changed recently my user (gabx) context from the default unconfined to
systemand ran restorecon.  This change may be the root of the problem. I
ran a few a certbot-letsencrypt container which changed a few files
contexts (container_t): maybe did it broke a few things?


I have now a few issues:

1- user gabx can't no more ssh the server: "unable to get valid context for
gabx" (same results from various machine)
---
$ journalctl -r
.
error: ssh_selinux_setup_pty:security_compute_relabel: Invalid argument
.
error: PAM pam_open_session(): cannot make/remove an entry for the
specified session

pam_selinux(sshd:session):Unableto get valid context for gabx

below complete lines:
Aug 28 09:07:45 poppy audit[1954]: CRYPTO_KEY_USER pid=1954 uid=0 auid=1001
ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy
kind=server fp=SHA256:30:af:76:06:1b:6f:fe:b1:55:f5:6b:6c:70:4a:76:>
Aug 28 09:07:45 poppy audit[1954]: CRYPTO_KEY_USER pid=1954 uid=0 auid=1001
ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy
kind=server fp=SHA256:ae:a4:a7:92:35:d0:2e:ea:47:82:c7:79:f0:17:db:>
Aug 28 09:07:45 poppy audit[1954]: CRYPTO_KEY_USER pid=1954 uid=0 auid=1001
ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy
kind=server fp=SHA256:4e:d3:d2:82:9e:72:16:4e:a7:61:8b:00:88:0e:69:>
Aug 28 09:07:45 poppy audit[1954]: CRED_DISP pid=1954 uid=0 auid=1001
ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=PAM:setcred
grantors=pam_securetty,pam_env,pam_unix acct="gabx" exe="/usr/sbin/ss>
Aug 28 09:07:45 poppy audit[1954]: CRYPTO_KEY_USER pid=1954 uid=0 auid=1001
ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy
kind=server fp=SHA256:30:af:76:06:1b:6f:fe:b1:55:f5:6b:6c:70:4a:76:>
Aug 28 09:07:45 poppy sshd[1957]: Disconnected from user gabx
212.147.52.214 port 57268
Aug 28 09:07:45 poppy audit[1954]: CRYPTO_KEY_USER pid=1954 uid=0 auid=1001
ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy
kind=session fp=? direction=both spid=1957 suid=1001 rport=57268 la>
Aug 28 09:07:45 poppy sshd[1957]: Received disconnect from 212.147.52.214
port 57268:11: disconnected by user
Aug 28 09:07:45 poppy audit[1954]: USER_LOGOUT pid=1954 uid=0 auid=1001
ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=login id=1001
exe="/usr/sbin/sshd" hostname=? addr=? terminal=/dev/pts/2 res=su>
Aug 28 09:07:45 poppy audit[1954]: USER_END pid=1954 uid=0 auid=1001 ses=13
subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=login id=1001
exe="/usr/sbin/sshd" hostname=? addr=? terminal=/dev/pts/2 res=succe>
Aug 28 09:07:45 poppy audit[1954]: CRYPTO_KEY_USER pid=1954 uid=0 auid=1001
ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy
kind=server fp=SHA256:30:af:76:06:1b:6f:fe:b1:55:f5:6b:6c:70:4a:76:>
Aug 28 09:07:45 poppy audit[1954]: USER_START pid=1954 uid=0 auid=1001
ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=login id=1001
exe="/usr/sbin/sshd" hostname=? addr=212.147.52.214 terminal=/dev/>
Aug 28 09:07:45 poppy audit[1954]: USER_LOGIN pid=1954 uid=0 auid=1001
ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=login id=1001
exe="/usr/sbin/sshd" hostname=? addr=212.147.52.214 terminal=/dev/>
Aug 28 09:07:45 poppy sshd[1954]: error: ssh_selinux_setup_pty:
security_compute_relabel: Invalid argument
Aug 28 09:07:45 poppy audit[1957]: CRED_ACQ pid=1957 uid=0 auid=1001 ses=13
subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=PAM:setcred
grantors=pam_securetty,pam_env,pam_unix acct="gabx" exe="/usr/sbin/ssh>
Aug 28 09:07:45 poppy audit[1957]: CRYPTO_KEY_USER pid=1957 uid=0 auid=1001
ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy
kind=server fp=SHA256:30:af:76:06:1b:6f:fe:b1:55:f5:6b:6c:70:4a:76:>
Aug 28 09:07:45 poppy audit[1957]: CRYPTO_KEY_USER pid=1957 uid=0 auid=1001
ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy
kind=server fp=SHA256:ae:a4:a7:92:35:d0:2e:ea:47:82:c7:79:f0:17:db:>
Aug 28 09:07:45 poppy audit[1957]: CRYPTO_KEY_USER pid=1957 uid=0 auid=1001
ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy
kind=server fp=SHA256:4e:d3:d2:82:9e:72:16:4e:a7:61:8b:00:88:0e:69:>
Aug 28 09:07:45 poppy sshd[1954]: error: PAM: pam_open_session(): Cannot
make/remove an entry for the specified session
Aug 28 09:07:45 poppy audit[1954]: USER_START pid=1954 uid=0 auid=1001
ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023
msg='op=PAM:session_open grantors=? acct="gabx" exe="/usr/sbin/sshd"
hostname=212.147.52>
Aug 28 09:07:45 poppy sshd[1954]: pam_unix(sshd:session): session opened
for user gabx by (uid=0)
Aug 28 09:07:45 poppy systemd[1]: Started Session 13 of user gabx.
Aug 28 09:07:45 poppy systemd-logind[841]: New session 13 of user

Re: container / can't connect to localhost via Firefox - logs: s6-supervise (child): fatal: unable to exec run: Permission denied

2019-01-25 Thread arnaud gaboury
On Thu, Jan 24, 2019 at 7:36 PM Daniel Walsh  wrote:

> On 1/24/19 5:49 PM, arnaud gaboury wrote:
>
> I am following this wiki[0] to run R Studio on my box. Below are the
> commands I run
>
> --
> # podman run -d -p 8787:8787 -e PASSWORD=XXX --name rstudio
> rocker/tidyverse
> ..
> Storing signatures
> a72fac512b891c21f0654334a2032b0d67b87720cb986a092237ab272d245f8d
> ---
> At this point, I am supposed to access the R studio app via my Firefox
> browser on port 8787 on localhost, which I can't.
>
> Debuging:
> 
> - Is the container running?
>  # podman ls
> CONTAINER ID  IMAGE  COMMAND  CREATED
> STATUSPORTS   NAMES
> a72fac512b89  docker.io/rocker/tidyverse:latest  /init2 minutes ago
> Up 2 minutes ago  0.0.0.0:8787->8787/tcp  rstudio
>
> -Is the 8787 port open?
>  # podman port a72fac512b89
> 8787/tcp -> 0.0.0.0:8787
>  # lsof -i -P -n | grep LISTEN
> 8:cupsd   984   root8u  IPv6  35102  0t0  TCP [::1]:631
> (LISTEN)
> 9:cupsd   984   root9u  IPv4  35103  0t0  TCP 127.0.0.1:631
> (LISTEN)
> 67:conmon12891   root5u  IPv4 453576  0t0  TCP *:8787 (LISTEN)
>
> - Can I ping localhost, 0.0.0.0, 127.0.0.1, yogabx (hostname),
> 192.168.1.92 (returned by ip -a)
> YES
>
> - Do I have any firewall/iptable running?
>  # systemctl status firewalld.service
> ● firewalld.service
>Loaded: masked (Reason: Unit firewalld.service is masked.)
>Active: inactive (dead)
> NO iptables
>
> # curl localhost:8787
> curl: (7) Failed to connect to localhost port 8787: Connection refused
>
> # podman logs a72fac512b89
> [fix-attrs.d] applying owners & permissions fixes...
> [fix-attrs.d] 00-runscripts: applying...
> [fix-attrs.d] 00-runscripts: exited 0.
> [fix-attrs.d] done.
> [cont-init.d] executing container initialization scripts...
> [cont-init.d] add: executing...
> Nothing additional to add
> [cont-init.d] add: exited 0.
> [cont-init.d] userconf: executing...
> [cont-init.d] userconf: exited 0.
> [cont-init.d] done.
> [services.d] starting services
> [services.d] done.
> s6-supervise (child): fatal: unable to exec run: Permission denied
> s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds
> s6-supervise (child): fatal: unable to exec run: Permission denied
> s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds
> . and so on
>
> 
>
> Googling this issue (s6-supervise (child): fatal: unable to exec run:
> Permission denied), I found a few reported issues like this one[1],[2]
> I don't understand what is behind, so can anyone help me to solve this
> issue (if I can).
>
> Thank you
>
> [0]https://github.com/rocker-org/rocker/wiki/Using-the-RStudio-image
> [1]https://github.com/linuxserver/docker-plex/issues/76
> [2]https://github.com/linuxserver/docker-sonarr/issues/28
>
>
>
>
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
>
> Permission denied often indicates and SELinux issue?
>

No selinux on this box.
-
 # getenforce
Disabled
-

I was more thinking to something similar tothis issue[0]

[0]https://github.com/rocker-org/rocker/issues/202

> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


container / can't connect to localhost via Firefox - logs: s6-supervise (child): fatal: unable to exec run: Permission denied

2019-01-24 Thread arnaud gaboury
I am following this wiki[0] to run R Studio on my box. Below are the
commands I run

--
# podman run -d -p 8787:8787 -e PASSWORD=XXX --name rstudio rocker/tidyverse
..
Storing signatures
a72fac512b891c21f0654334a2032b0d67b87720cb986a092237ab272d245f8d
---
At this point, I am supposed to access the R studio app via my Firefox
browser on port 8787 on localhost, which I can't.

Debuging:

- Is the container running?
 # podman ls
CONTAINER ID  IMAGE  COMMAND  CREATED
STATUSPORTS   NAMES
a72fac512b89  docker.io/rocker/tidyverse:latest  /init2 minutes ago  Up
2 minutes ago  0.0.0.0:8787->8787/tcp  rstudio

-Is the 8787 port open?
 # podman port a72fac512b89
8787/tcp -> 0.0.0.0:8787
 # lsof -i -P -n | grep LISTEN
8:cupsd   984   root8u  IPv6  35102  0t0  TCP [::1]:631 (LISTEN)
9:cupsd   984   root9u  IPv4  35103  0t0  TCP 127.0.0.1:631
(LISTEN)
67:conmon12891   root5u  IPv4 453576  0t0  TCP *:8787 (LISTEN)

- Can I ping localhost, 0.0.0.0, 127.0.0.1, yogabx (hostname), 192.168.1.92
(returned by ip -a)
YES

- Do I have any firewall/iptable running?
 # systemctl status firewalld.service
● firewalld.service
   Loaded: masked (Reason: Unit firewalld.service is masked.)
   Active: inactive (dead)
NO iptables

# curl localhost:8787
curl: (7) Failed to connect to localhost port 8787: Connection refused

# podman logs a72fac512b89
[fix-attrs.d] applying owners & permissions fixes...
[fix-attrs.d] 00-runscripts: applying...
[fix-attrs.d] 00-runscripts: exited 0.
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] add: executing...
Nothing additional to add
[cont-init.d] add: exited 0.
[cont-init.d] userconf: executing...
[cont-init.d] userconf: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
s6-supervise (child): fatal: unable to exec run: Permission denied
s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds
s6-supervise (child): fatal: unable to exec run: Permission denied
s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds
. and so on



Googling this issue (s6-supervise (child): fatal: unable to exec run:
Permission denied), I found a few reported issues like this one[1],[2]
I don't understand what is behind, so can anyone help me to solve this
issue (if I can).

Thank you

[0]https://github.com/rocker-org/rocker/wiki/Using-the-RStudio-image
[1]https://github.com/linuxserver/docker-plex/issues/76
[2]https://github.com/linuxserver/docker-sonarr/issues/28
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: tablets?

2019-01-23 Thread arnaud gaboury
On Wed, Jan 23, 2019 at 3:18 PM Hans de Goede  wrote:

> Hi,
>
> On Tuesday, January 22, 2019 10:54:18 PM EST ToddAndMargo via users wrote:
> > Hi All,
> >
> > Any sign of Fedora on a tablet?
>

Not really a tablet, but I run Fedora 29 silverblue on a Lenovo Yoga and
the touchscreen is working very well. I run Xwayland with gnome desktop

>
> I've been working on Linux/Fedora Bay- and Cherry-Trail based
> hardware support for the last year or so.
>
> The current state of this is pretty good. If you are interested
> in Fedora on a tablet I would advice you to buy a Cherry Trail based
> tablet. If you buy a model for which I've not done the hardwar-enabling
> yet, you may need to do some (simple-ish) work to help me enable
> the touchscreen, accelerometer and to get audio to work 100%.
>
> This may require some device(model) specific firmware files from the
> Windows
> installation, so it is best to start with running from a liveusb and if
> then
> either wifi or the touchscreen don't work, drop me an email an I
> can walk you through getting the necessary files from the Windows
> install before you wipe it.
>
> Alternatively you can find a device which you like and send me
> a link to a webpage describing it, then I can probably tell you before
> hand how much work it is going to need, if any at all.
>
> Regards,
>
> Hans
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: can't connect to localhost via Firefox

2019-01-23 Thread arnaud gaboury
On Wed, Jan 23, 2019 at 1:48 PM arnaud gaboury 
wrote:

> I am following this wiki[0] to run R Studio on my box. Below are the
> commands I run
>
> --
> # podman run -d -p 8787:8787 -e PASSWORD=XXX --name rstudio
> rocker/tidyverse
> ..
> Storing signatures
> a72fac512b891c21f0654334a2032b0d67b87720cb986a092237ab272d245f8d
> ---
> At this point, I am supposed to access the R studio app via my Firefox
> browser on port 8787 on localhost, which I can't.
>
> Debuging:
> 
> - Is the container running?
>  # podman ls
> CONTAINER ID  IMAGE  COMMAND  CREATED
> STATUSPORTS   NAMES
> a72fac512b89  docker.io/rocker/tidyverse:latest  /init2 minutes ago
> Up 2 minutes ago  0.0.0.0:8787->8787/tcp  rstudio
>
> -Is the 8787 port open?
>  # podman port a72fac512b89
> 8787/tcp -> 0.0.0.0:8787
>  # lsof -i -P -n | grep LISTEN
> 8:cupsd   984   root8u  IPv6  35102  0t0  TCP [::1]:631
> (LISTEN)
> 9:cupsd   984   root9u  IPv4  35103  0t0  TCP 127.0.0.1:631
> (LISTEN)
> 67:conmon12891   root5u  IPv4 453576  0t0  TCP *:8787 (LISTEN)
>
> - Can I ping localhost, 0.0.0.0, 127.0.0.1, yogabx (hostname),
> 192.168.1.92 (returned by ip -a)
> YES
>
> - Do I have any firewall/iptable running?
>  # systemctl status firewalld.service
> ● firewalld.service
>Loaded: masked (Reason: Unit firewalld.service is masked.)
>Active: inactive (dead)
> NO iptables
> ---
>
> What am I doing wrong? How can I debug this issue?
>

This issue is due to one missing container. Issue is closed.


> Thank you for help.
>
>
>
>
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


can't connect to localhost via Firefox

2019-01-23 Thread arnaud gaboury
I am following this wiki[0] to run R Studio on my box. Below are the
commands I run

--
# podman run -d -p 8787:8787 -e PASSWORD=XXX --name rstudio rocker/tidyverse
..
Storing signatures
a72fac512b891c21f0654334a2032b0d67b87720cb986a092237ab272d245f8d
---
At this point, I am supposed to access the R studio app via my Firefox
browser on port 8787 on localhost, which I can't.

Debuging:

- Is the container running?
 # podman ls
CONTAINER ID  IMAGE  COMMAND  CREATED
STATUSPORTS   NAMES
a72fac512b89  docker.io/rocker/tidyverse:latest  /init2 minutes ago  Up
2 minutes ago  0.0.0.0:8787->8787/tcp  rstudio

-Is the 8787 port open?
 # podman port a72fac512b89
8787/tcp -> 0.0.0.0:8787
 # lsof -i -P -n | grep LISTEN
8:cupsd   984   root8u  IPv6  35102  0t0  TCP [::1]:631 (LISTEN)
9:cupsd   984   root9u  IPv4  35103  0t0  TCP 127.0.0.1:631
(LISTEN)
67:conmon12891   root5u  IPv4 453576  0t0  TCP *:8787 (LISTEN)

- Can I ping localhost, 0.0.0.0, 127.0.0.1, yogabx (hostname), 192.168.1.92
(returned by ip -a)
YES

- Do I have any firewall/iptable running?
 # systemctl status firewalld.service
● firewalld.service
   Loaded: masked (Reason: Unit firewalld.service is masked.)
   Active: inactive (dead)
NO iptables
---

What am I doing wrong? How can I debug this issue?

Thank you for help.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: %prep and %autosetup: move the unpacked source directory

2017-01-17 Thread arnaud gaboury
On Wed, Jan 18, 2017 at 3:42 AM Michael Schwendt 
wrote:

> On Tue, 17 Jan 2017 15:48:58 +0000, arnaud gaboury wrote:
>
> > At the begining of my build, I need:
> > - mkdir src/github.com/mattermost
> > -unzip the source in src/github.com/mattermost/plateform-master
> > - cd src/github.com/mattermost/plateform-master to start make.
>
> Why do you think you need to do that?
>

Because that's the way I must prepare my directories for the build. See
package README[0]
Here is my solution, without symlink or buildir/topdir (master.zip is
downloaded first with spectool and unzip as platform-master, when name of
package is mattermost):

 %prep
mkdir -p src/github.com/mattermost
%setup -q -n platform-master
cd ..
mv platform-master src/github.com/mattermost/platform
cd src/github.com/mattermost/platform
-

It does what I want: src/github.com/mattermost/platform is populated with
the package source files.



> > Here is what happens when running $fedpkg --dist f25 prep:
> > -
> > Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.zJOa1Q
> > + umask 022
> > + cd /home/makerpm/rpmbuild
> > + cd /home/makerpm/rpmbuild
> > + rm -rf platform-master
> > + /usr/bin/unzip -qq /home/makerpm/rpmbuild/master.zip
>
> ^^^ (!) Notice what the %autosetup macro did in the lines above!
>
> > + STATUS=0
> > + '[' 0 -ne 0 ']'
> > + cd platform-master   <<<   WHY ??
>
> Because you added "-n platform-master" to the %autosetup macro,
> which is the top-level directory to change into for every spec file
> section (%prep, %build, %install, even %files section access that
> directory when using %doc to include local files, for example).
>
> > It seems I am inside the directory I want to move, platform-master.
> > Why do I cd this directory? How to avoid it so I am able to move this
> > directory? Or best, how can I unzip the content of master.zip in src/
> > github.com/mattermost/platform?
>
> _Why_ do you want to do that?
>

[0]https://docs.mattermost.com/developer/developer-setup.html#ubuntu

> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: %prep and %autosetup: move the unpacked source directory

2017-01-17 Thread arnaud gaboury
On Tue, Jan 17, 2017 at 6:57 PM James Hogarth 
wrote:

>
>
> On 17 Jan 2017 3:49 pm, "arnaud gaboury"  wrote:
>
> Here is my working directory at the beginning of build, right after I
> downloaded the source with spectool. The root directory of the .zip file is
> called "platform-master".
>
> ---
> [makerpm@thetradinghall rpmbuild]$ ls -al
> -rw-rw-r-- 1 makerpm makerpm 31120791 Jan 15 11:52 master.zip
> -rw-rw-r-- 1 makerpm makerpm 4325 Jan 17 16:22 mattermost.spec
> -
>
> At the begining of my build, I need:
> - mkdir src/github.com/mattermost
> -unzip the source in src/github.com/mattermost/plateform-master
> - cd src/github.com/mattermost/plateform-master to start make.
>
> Here is what I wrote in my .spec file:
>
> %prep
> %autosetup -n platform-master
> mkdir -p %{_topdir}/src/github.com/mattermost  <<< = (here, is it correct
> to use %{_topdir} ? )
> mv plateform-master %{_topdir}/src/github.com/mattermost/platform
>
> Unfortunately, I have this error:
>
> mv plateform-master /home/makerpm/rpmbuild/src/
> github.com/mattermost/platform
> mv: cannot stat 'plateform-master': No such file or director
>
> Here is what happens when running $fedpkg --dist f25 prep:
> -
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.zJOa1Q
> + umask 022
> + cd /home/makerpm/rpmbuild
> + cd /home/makerpm/rpmbuild
> + rm -rf platform-master
> + /usr/bin/unzip -qq /home/makerpm/rpmbuild/master.zip
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + cd platform-master   <<<   WHY ??
> + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
> + mkdir -p /home/makerpm/rpmbuild/src/github.com/mattermost
> + cd ..
> + mv plateform-master /home/makerpm/rpmbuild/src/
> github.com/mattermost/platform
> mv: cannot stat 'plateform-master': No such file or directory
> error: Bad exit status from /var/tmp/rpm-tmp.zJOa1Q (%prep)
> --
>
> It seems I am inside the directory I want to move, platform-master.
> Why do I cd this directory? How to avoid it so I am able to move this
> directory? Or best, how can I unzip the content of master.zip in src/
> github.com/mattermost/platform?
>
> Thank you for help to write these few lines in a clean manner.
>
>
> Please don't take this as a hostile message in any way but I can't help
> but feel your needs don't really align with the intent of this mailing list.
>
> These are not in any way fedora problems.
>
> Given your messages are primarily about packaging the fedora development
> list may appear more appropriate, but before you do might I suggest you
> take a breather to get some coffee and take a breath of fresh air?
>
> In this specific instance you have made a typo, as simple as that.
>

Thank you for the typo. It works better now.
As for the rest of the message, I am not sure to understand all the poetry
behind it.  Fresh air is OK here in Switzerland, with -10 outside.


>
> To your specific question you really shouldn't be referring to %{_topdir}
> ever and I can't help but think your current methodology is suspect
>

So, what macro shall I use to indicate such a directory?  Or something like
$(pwd) ?


>
> You should probably go revisit some basic rpm guides such as:
>
> https://www.hogarthuk.com/?q=node/11
>

I know very well this doc, ty. Fedora rpm packaging[0] is good to. Funny,
in Fedora they talk about %autosetup and in the website your mentioned they
use %{autosetup}.



>
>
> Follow the minimal templates to learn a little better.
>
> Then if you have trouble include the full spec file when describing the
> problem and not just the snippet you think is the issue.
>
>
>
[0]https://fedoraproject.org/wiki/How_to_create_an_RPM_package

> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


%prep and %autosetup: move the unpacked source directory

2017-01-17 Thread arnaud gaboury
Here is my working directory at the beginning of build, right after I
downloaded the source with spectool. The root directory of the .zip file is
called "platform-master".

---
[makerpm@thetradinghall rpmbuild]$ ls -al
-rw-rw-r-- 1 makerpm makerpm 31120791 Jan 15 11:52 master.zip
-rw-rw-r-- 1 makerpm makerpm 4325 Jan 17 16:22 mattermost.spec
-

At the begining of my build, I need:
- mkdir src/github.com/mattermost
-unzip the source in src/github.com/mattermost/plateform-master
- cd src/github.com/mattermost/plateform-master to start make.

Here is what I wrote in my .spec file:

%prep
%autosetup -n platform-master
mkdir -p %{_topdir}/src/github.com/mattermost  <<< = (here, is it correct
to use %{_topdir} ? )
mv plateform-master %{_topdir}/src/github.com/mattermost/platform

Unfortunately, I have this error:

mv plateform-master /home/makerpm/rpmbuild/src/
github.com/mattermost/platform
mv: cannot stat 'plateform-master': No such file or director

Here is what happens when running $fedpkg --dist f25 prep:
-
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.zJOa1Q
+ umask 022
+ cd /home/makerpm/rpmbuild
+ cd /home/makerpm/rpmbuild
+ rm -rf platform-master
+ /usr/bin/unzip -qq /home/makerpm/rpmbuild/master.zip
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd platform-master   <<<   WHY ??
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ mkdir -p /home/makerpm/rpmbuild/src/github.com/mattermost
+ cd ..
+ mv plateform-master /home/makerpm/rpmbuild/src/
github.com/mattermost/platform
mv: cannot stat 'plateform-master': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.zJOa1Q (%prep)
--

It seems I am inside the directory I want to move, platform-master.
Why do I cd this directory? How to avoid it so I am able to move this
directory? Or best, how can I unzip the content of master.zip in src/
github.com/mattermost/platform?

Thank you for help to write these few lines in a clean manner.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: spec file

2017-01-15 Thread arnaud gaboury
On Sun, Jan 15, 2017 at 12:22 AM Michael Schwendt 
wrote:

> On Sat, 14 Jan 2017 16:57:42 +0000, arnaud gaboury wrote:
>
> > %prep
> > %autosetup -n platform-master
> >
> > # many golang binaries are "vendoring" (bundling) sources, so remove
> them.
> > Those dependencies need to be packaged independently.
> > cd %{_builddir}
>
> Don't get accustomed to that. Don't cd into %_builddir directly.
>
> Run "rpm -E %_builddir" to see which directory that macro expands to.
> There are corner-cases when you need to use the %_builddir macro.
> In most cases, you don't need to use it at all.
>

OK, so I don't use %{_builddir} in my macro. So, what should I use?
Let's atke the first few lines:

 # cd %{_builddir}  <-- As suggested, I don't need to cd.
mkdir -p src/github.com/mattermost
cd src/github.com/mattermost
ln -s %{_builddir}/platform-master platform

Here is the rpmbuild output for these lines:
-
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd platform-master
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ cd /home/makerpm/rpmbuild
+ mkdir -p src/github.com/mattermost
+ cd src/github.com/mattermost
+ ln -s /home/makerpm/rpmbuild/platform-master platform
--
May you give me the correct syntax you would use for these lines?

>
> The %setup and %autosetup macros define the top-level build directory
> below %_builddir, and at the start of every spec file section (e.g. %build,
> %install, %check, even %files), that build directory is entered
> automatically.
> It may also be cleaned up automatically depending on your rpmbuild option
> and the default %clean section.
>
> Create all your other working directories below $(pwd), not anywhere
> above %_builddir. You can access relative paths from current
> directory, which is much more convenient.
>
> In your case, because of using %autosetup -n platform-master, the
> root directory is
>
>   %{_builddir}/platform-master
>
> and if you read rpmbuild output, you should see that the directory is
> entered automatically for every spec file section. If you've used
> %autosetup
> correctly, you should find the extracted source code below that directory,
> too. If you need another top-level directory, you can use option -c to
> create it.
>
> The way you jump to absolute paths and even create links that lead back to
> some absolute %_builddir path makes the spec file look like a mess.
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: spec file

2017-01-15 Thread arnaud gaboury
On Sun, Jan 15, 2017 at 12:22 AM Michael Schwendt 
wrote:

> On Sat, 14 Jan 2017 16:57:42 +0000, arnaud gaboury wrote:
>
> > %prep
> > %autosetup -n platform-master
> >
> > # many golang binaries are "vendoring" (bundling) sources, so remove
> them.
> > Those dependencies need to be packaged independently.
> > cd %{_builddir}
>
> Don't get accustomed to that. Don't cd into %_builddir directly.
>
> Run "rpm -E %_builddir" to see which directory that macro expands to.
> There are corner-cases when you need to use the %_builddir macro.
> In most cases, you don't need to use it at all.
>
> The %setup and %autosetup macros define the top-level build directory
> below %_builddir, and at the start of every spec file section (e.g. %build,
> %install, %check, even %files), that build directory is entered
> automatically.
> It may also be cleaned up automatically depending on your rpmbuild option
> and the default %clean section.
>
> Create all your other working directories below $(pwd), not anywhere
> above %_builddir. You can access relative paths from current
> directory, which is much more convenient.
>
> In your case, because of using %autosetup -n platform-master, the
> root directory is
>
>   %{_builddir}/platform-master
>
> and if you read rpmbuild output, you should see that the directory is
> entered automatically for every spec file section. If you've used
> %autosetup
> correctly, you should find the extracted source code below that directory,
> too. If you need another top-level directory, you can use option -c to
> create it.
>
> The way you jump to absolute paths and even create links that lead back to
> some absolute %_builddir path makes the spec file look like a mess.
>

Thank you so much for all these good practices. These kinds of hints are
very hard to find in fact. It is easy to quickly mess everything when it
comes to using macros.

> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Build .rpm for X64_64 only

2017-01-15 Thread arnaud gaboury
On Sun, Jan 15, 2017 at 1:56 PM arnaud gaboury 
wrote:

> I wrote a spec file to build a .rpm for an application working only on 64
> bits machines. The package builds fine and is in this form:
> myapp-version.fc25.x86_64.rpm
>
> Now, $ fedpkg --dist f25 lint complains:
> E: no-binary
>
> Googling I found the package should be of the noarch architecture. Adding
> BuildArch: noarch right below Source in my .spec file leaves me with:
> myapp-version.fc25.noarch.rpm and  fedpkg lint doesn't complain anymore.
>
> My question: is this the correct way to build my .rpm, using the noarch in
> the spec file? Or shall I keep myapp-version.fc25.x86_64.rpm and ignore the
> ling Error?
>

EDIT : reading more on the Arch topic, I must add my application is built
with go. Rfering to Go packaging binaries[0], it seems I must use:
BuildArch: noarch
ExclusiveArch: %{go_arches} noarch

Is this correct?


>
> Thank you for help
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Build .rpm for X64_64 only

2017-01-15 Thread arnaud gaboury
I wrote a spec file to build a .rpm for an application working only on 64
bits machines. The package builds fine and is in this form:
myapp-version.fc25.x86_64.rpm

Now, $ fedpkg --dist f25 lint complains:
E: no-binary

Googling I found the package should be of the noarch architecture. Adding
BuildArch: noarch right below Source in my .spec file leaves me with:
myapp-version.fc25.noarch.rpm and  fedpkg lint doesn't complain anymore.

My question: is this the correct way to build my .rpm, using the noarch in
the spec file? Or shall I keep myapp-version.fc25.x86_64.rpm and ignore the
ling Error?

Thank you for help
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: spec file

2017-01-14 Thread arnaud gaboury
On Sat, Jan 14, 2017 at 7:53 PM arnaud gaboury 
wrote:

> On Sat, Jan 14, 2017 at 5:57 PM arnaud gaboury 
> wrote:
>
> On Sat, Jan 14, 2017 at 5:17 PM Michael Schwendt 
> wrote:
>
> On Sat, 14 Jan 2017 11:25:07 +, arnaud gaboury wrote:
>
> > + /usr/lib/rpm/brp-python-hardlink
> > + /usr/lib/rpm/redhat/brp-java-repack-jars
> > error: Bad file:
> > /home/makerpm/build_package/mattermost/mattermost-user.conf: No such file
> > or directory
>
> You've not given enough information, unfortunately. Does the output end
> there?
>
>
> YES
>
> If so, it has not reached the %files processing section it seems.
>
>
>
> Uploading the full spec file or even the src.rpm would have been a great
> idea.
>
>
> Here it goes:
>
>
>
>
>
> %prep
> %autosetup -n platform-master
>
> # many golang binaries are "vendoring" (bundling) sources, so remove them.
> Those dependencies need to be packaged independently.
> cd %{_builddir}
> mkdir -p src/github.com/mattermost
> cd src/github.com/mattermost
> ln -s %{_builddir}/platform-master platform
> # build only for 64 bits
> cd platform
> sed -n '1,/cp README.md/p;/^run-server:/,$p' -i Makefile
> sed -r -i Makefile \
> -e 's/^package: build build-client/package: build-linux build-client/'
> \
> -e 's/GOARCH=amd64//' \
> -e 's/^BUILD_HASH =.*/BUILD_HASH = none/'
> sed -i webapp/Makefile \
> -e '/npm install/a \rm
> node_modules/pngquant-bin/vendor/pngquant\n  ln -s /usr/bin/pngquant
> node_modules/pngquant-bin/vendor/pngquant'
>
> %build
> cd %{_builddir}/src/github.com/mattermost/platform
> GOPATH=%{_builddir} BUILD_NUMBER=%{version}-%{release} make
> %{?_smp_mflags} package
>
> %install
> cd %{_builddir}/src/github.com/mattermost/platform
> rm -rf %{buildroot}
> install -dm755 %{buildroot}%{_datadir}/webapps \
> %{buildroot}/var/log/%{name} \
> %{buildroot}%{_sysconfdir}/webapps \
> %{buildroot}%{_datadir}/{licenses,doc}/%{name}
>
> cp -a dist/mattermost %{buildroot}%{_datadir}/webapps/%{name}
>
> cd %{buildroot}%{_datadir}/webapps/%{name}
> rm -rf logs
> ln -s /var/log/%{name} logs
>
> mkdir -p %{buildroot}%{_sysconfdir}/webapps/%{name}
> mv config/config.json %{buildroot}%{_sysconfdir}/webapps/%{name}
> ln -s %{_sysconfdir}/webapps/%{name} config
>
> sed -e 's@"Directory": ".*"@"Directory": "/var/lib/mattermost/"@g' \
> -e 's@tcp(dockerhost:3306)@unix(/run/mysqld/mysqld.sock)@g' \
> -i %{buildroot}%{_sysconfdir}/webapps/%{name}/config.json
>
>
> mv NOTICE.txt README.md %{buildroot}%{_defaultdocdir}/%{name}
>
> cd %{_builddir}
> install -Dm755 bin/platform
> %{buildroot}%{_datadir}/webapps/%{name}/bin/platform
>
> install -Dm755 mattermost.sh %{buildroot}%{_bindir}/mattermost
> install -Dm644 mattermost.service
> %{buildroot}%{_unitdir}/mattermost.service
> install -Dm644 user.conf %{buildroot}%{_sysusersdir}/mattermost.conf
>
> %files
> %{_sysconfdir}/webapps/%{name}/*
>
> %{_bindir}/%{name}
> %{_unitdir}/mattermost.service
> %{_sysusersdir}/mattermost.conf
> %{_defaultdocdir}/*
> %{_datadir}/webapps/%{name}/*
>
> %post
> systemd-sysusers mattermost.conf
> if [[ ! -e var/lib/mattermost ]]; then
> install -dm700 -o mattermost var/lib/mattermost
> fi
>
>
>
> a bit about the "build_package" directory below $HOME.
>
> /home/makerpm is the home of your user. /home/makerpm/rpmbuild is
> the home of rpmbuild related files. What is the "build_package" dir?
>
>
> I followed this wiki[0], section First steps.
> mkdir ~/build_package/mattermost (in wiki is equivalent to
> ~/packaging-work/howdy).
>
> I will have a closest look as it seems this issue may comes from here.  In
> my spec there seems to be a confusion between  %{_builddir} and
> ~/build_package/mattermost . There are the same when they shouldn't.  It
> seems I have built with TWO build dir!
>
> Thank you for this remark . I will change and build with only one build
> directory
>
>
> In fact, I realize I am totally confused between the "old" method I used
> to build .rpm and this new wiki using fedpkg. Before, I used to have BUILD,
> BUILDROOT, SOURCES etc folders inside rpmbuild. Now, I am not sure how to
> setup my build directory.
>

Issue solved. As most often, it was an obvious issue: one of my Source file
had a wrong name: mattermost-user.conf, instead of user.conf

Build is now successful.



>
>
> How do you use that dir? Maybe you've added that dir to some RPM macros?
>
>
>
>
>
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: spec file

2017-01-14 Thread arnaud gaboury
On Sat, Jan 14, 2017 at 5:57 PM arnaud gaboury 
wrote:

> On Sat, Jan 14, 2017 at 5:17 PM Michael Schwendt 
> wrote:
>
> On Sat, 14 Jan 2017 11:25:07 +0000, arnaud gaboury wrote:
>
> > + /usr/lib/rpm/brp-python-hardlink
> > + /usr/lib/rpm/redhat/brp-java-repack-jars
> > error: Bad file:
> > /home/makerpm/build_package/mattermost/mattermost-user.conf: No such file
> > or directory
>
> You've not given enough information, unfortunately. Does the output end
> there?
>
>
> YES
>
> If so, it has not reached the %files processing section it seems.
>
>
>
> Uploading the full spec file or even the src.rpm would have been a great
> idea.
>
>
> Here it goes:
>
>
>
>
>
> %prep
> %autosetup -n platform-master
>
> # many golang binaries are "vendoring" (bundling) sources, so remove them.
> Those dependencies need to be packaged independently.
> cd %{_builddir}
> mkdir -p src/github.com/mattermost
> cd src/github.com/mattermost
> ln -s %{_builddir}/platform-master platform
> # build only for 64 bits
> cd platform
> sed -n '1,/cp README.md/p;/^run-server:/,$p' -i Makefile
> sed -r -i Makefile \
> -e 's/^package: build build-client/package: build-linux build-client/'
> \
> -e 's/GOARCH=amd64//' \
> -e 's/^BUILD_HASH =.*/BUILD_HASH = none/'
> sed -i webapp/Makefile \
> -e '/npm install/a \rm
> node_modules/pngquant-bin/vendor/pngquant\n  ln -s /usr/bin/pngquant
> node_modules/pngquant-bin/vendor/pngquant'
>
> %build
> cd %{_builddir}/src/github.com/mattermost/platform
> GOPATH=%{_builddir} BUILD_NUMBER=%{version}-%{release} make
> %{?_smp_mflags} package
>
> %install
> cd %{_builddir}/src/github.com/mattermost/platform
> rm -rf %{buildroot}
> install -dm755 %{buildroot}%{_datadir}/webapps \
> %{buildroot}/var/log/%{name} \
> %{buildroot}%{_sysconfdir}/webapps \
> %{buildroot}%{_datadir}/{licenses,doc}/%{name}
>
> cp -a dist/mattermost %{buildroot}%{_datadir}/webapps/%{name}
>
> cd %{buildroot}%{_datadir}/webapps/%{name}
> rm -rf logs
> ln -s /var/log/%{name} logs
>
> mkdir -p %{buildroot}%{_sysconfdir}/webapps/%{name}
> mv config/config.json %{buildroot}%{_sysconfdir}/webapps/%{name}
> ln -s %{_sysconfdir}/webapps/%{name} config
>
> sed -e 's@"Directory": ".*"@"Directory": "/var/lib/mattermost/"@g' \
> -e 's@tcp(dockerhost:3306)@unix(/run/mysqld/mysqld.sock)@g' \
> -i %{buildroot}%{_sysconfdir}/webapps/%{name}/config.json
>
>
> mv NOTICE.txt README.md %{buildroot}%{_defaultdocdir}/%{name}
>
> cd %{_builddir}
> install -Dm755 bin/platform
> %{buildroot}%{_datadir}/webapps/%{name}/bin/platform
>
> install -Dm755 mattermost.sh %{buildroot}%{_bindir}/mattermost
> install -Dm644 mattermost.service
> %{buildroot}%{_unitdir}/mattermost.service
> install -Dm644 user.conf %{buildroot}%{_sysusersdir}/mattermost.conf
>
> %files
> %{_sysconfdir}/webapps/%{name}/*
>
> %{_bindir}/%{name}
> %{_unitdir}/mattermost.service
> %{_sysusersdir}/mattermost.conf
> %{_defaultdocdir}/*
> %{_datadir}/webapps/%{name}/*
>
> %post
> systemd-sysusers mattermost.conf
> if [[ ! -e var/lib/mattermost ]]; then
> install -dm700 -o mattermost var/lib/mattermost
> fi
>
>
>
> a bit about the "build_package" directory below $HOME.
>
> /home/makerpm is the home of your user. /home/makerpm/rpmbuild is
> the home of rpmbuild related files. What is the "build_package" dir?
>
>
> I followed this wiki[0], section First steps.
> mkdir ~/build_package/mattermost (in wiki is equivalent to
> ~/packaging-work/howdy).
>
> I will have a closest look as it seems this issue may comes from here.  In
> my spec there seems to be a confusion between  %{_builddir} and
> ~/build_package/mattermost . There are the same when they shouldn't.  It
> seems I have built with TWO build dir!
>
> Thank you for this remark . I will change and build with only one build
> directory
>

In fact, I realize I am totally confused between the "old" method I used to
build .rpm and this new wiki using fedpkg. Before, I used to have BUILD,
BUILDROOT, SOURCES etc folders inside rpmbuild. Now, I am not sure how to
setup my build directory.



> How do you use that dir? Maybe you've added that dir to some RPM macros?
>
>
>
>
>
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: spec file

2017-01-14 Thread arnaud gaboury
On Sat, Jan 14, 2017 at 5:17 PM Michael Schwendt 
wrote:

> On Sat, 14 Jan 2017 11:25:07 +0000, arnaud gaboury wrote:
>
> > + /usr/lib/rpm/brp-python-hardlink
> > + /usr/lib/rpm/redhat/brp-java-repack-jars
> > error: Bad file:
> > /home/makerpm/build_package/mattermost/mattermost-user.conf: No such file
> > or directory
>
> You've not given enough information, unfortunately. Does the output end
> there?


YES

> If so, it has not reached the %files processing section it seems.
>


> Uploading the full spec file or even the src.rpm would have been a great
> idea.
>

Here it goes:



>
>
%prep
%autosetup -n platform-master

# many golang binaries are "vendoring" (bundling) sources, so remove them.
Those dependencies need to be packaged independently.
cd %{_builddir}
mkdir -p src/github.com/mattermost
cd src/github.com/mattermost
ln -s %{_builddir}/platform-master platform
# build only for 64 bits
cd platform
sed -n '1,/cp README.md/p;/^run-server:/,$p' -i Makefile
sed -r -i Makefile \
-e 's/^package: build build-client/package: build-linux build-client/' \
-e 's/GOARCH=amd64//' \
-e 's/^BUILD_HASH =.*/BUILD_HASH = none/'
sed -i webapp/Makefile \
-e '/npm install/a \rm
node_modules/pngquant-bin/vendor/pngquant\n  ln -s /usr/bin/pngquant
node_modules/pngquant-bin/vendor/pngquant'

%build
cd %{_builddir}/src/github.com/mattermost/platform
GOPATH=%{_builddir} BUILD_NUMBER=%{version}-%{release} make %{?_smp_mflags}
package

%install
cd %{_builddir}/src/github.com/mattermost/platform
rm -rf %{buildroot}
install -dm755 %{buildroot}%{_datadir}/webapps \
%{buildroot}/var/log/%{name} \
%{buildroot}%{_sysconfdir}/webapps \
%{buildroot}%{_datadir}/{licenses,doc}/%{name}

cp -a dist/mattermost %{buildroot}%{_datadir}/webapps/%{name}

cd %{buildroot}%{_datadir}/webapps/%{name}
rm -rf logs
ln -s /var/log/%{name} logs

mkdir -p %{buildroot}%{_sysconfdir}/webapps/%{name}
mv config/config.json %{buildroot}%{_sysconfdir}/webapps/%{name}
ln -s %{_sysconfdir}/webapps/%{name} config

sed -e 's@"Directory": ".*"@"Directory": "/var/lib/mattermost/"@g' \
-e 's@tcp(dockerhost:3306)@unix(/run/mysqld/mysqld.sock)@g' \
-i %{buildroot}%{_sysconfdir}/webapps/%{name}/config.json


mv NOTICE.txt README.md %{buildroot}%{_defaultdocdir}/%{name}

cd %{_builddir}
install -Dm755 bin/platform
%{buildroot}%{_datadir}/webapps/%{name}/bin/platform
install -Dm755 mattermost.sh %{buildroot}%{_bindir}/mattermost
install -Dm644 mattermost.service %{buildroot}%{_unitdir}/mattermost.service
install -Dm644 user.conf %{buildroot}%{_sysusersdir}/mattermost.conf

%files
%{_sysconfdir}/webapps/%{name}/*
%{_bindir}/%{name}
%{_unitdir}/mattermost.service
%{_sysusersdir}/mattermost.conf
%{_defaultdocdir}/*
%{_datadir}/webapps/%{name}/*

%post
systemd-sysusers mattermost.conf
if [[ ! -e var/lib/mattermost ]]; then
install -dm700 -o mattermost var/lib/mattermost
fi



> a bit about the "build_package" directory below $HOME.
>
> /home/makerpm is the home of your user. /home/makerpm/rpmbuild is
> the home of rpmbuild related files. What is the "build_package" dir?
>

I followed this wiki[0], section First steps.
mkdir ~/build_package/mattermost (in wiki is equivalent to
~/packaging-work/howdy).

I will have a closest look as it seems this issue may comes from here.  In
my spec there seems to be a confusion between  %{_builddir} and
~/build_package/mattermost . There are the same when they shouldn't.  It
seems I have built with TWO build dir!

Thank you for this remark . I will change and build with only one build
directory

> How do you use that dir? Maybe you've added that dir to some RPM macros?
>




> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


spec file

2017-01-14 Thread arnaud gaboury
I am writing a spec file. Everything build fine until the very last. Make
throw an error and I don't understand why.

Part of the spec file:


cd %{_builddir}
install -Dm755 bin/platform %{buildroot}%{_datadir}/%{name}/bin/platform
install -Dm755 mattermost.sh %{buildroot}%{_bindir}/mattermost
install -Dm644 mattermost.service %{buildroot}%{_unitdir}/mattermost.service
install -Dm644 user.conf %{buildroot}%{_sysusersdir}/mattermost.conf
install -Dm644 tmpfile.conf
%{buildroot}%{_libdir}/tmpfiles.d/mattermost.conf

%files
%{_sysconfdir}/%{name}/*
%{_bindir}/%{name}
%{_unitdir}/mattermost.service
%{_sysusersdir}/mattermost.conf
%{_defaultdocdir}/*
%{_datadir}/%{name}/*
.
---

Now the end of the build log:

---

+ install -Dm644 user.conf
/home/makerpm/rpmbuild/BUILDROOT/mattermost-3.6-0.1.gitd64d51a.fc25.x86_64/usr/lib/sysusers.d/mattermost.conf
+ install -Dm644 tmpfile.conf
/home/makerpm/rpmbuild/BUILDROOT/mattermost-3.6-0.1.gitd64d51a.fc25.x86_64/usr/lib64/tmpfiles.d/mattermost.conf
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
+ /usr/lib/rpm/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
error: Bad file:
/home/makerpm/build_package/mattermost/mattermost-user.conf: No such file
or directory


build directory:

[makerpm@thetradinghall mattermost]$ ls -al
total 30580
drwxrwxr-x 1 makerpm makerpm  346 Jan 14 11:50 .
drwxrwxr-x 1 makerpm makerpm   58 Jan 13 16:50 ..
drwxr-xr-x 1 makerpm makerpm   26 Jan 13 16:21 bin
-rw-rw-r-- 1 makerpm makerpm   156500 Jan 14 11:43
.build-3.6-0.1.gitd64d51a.fc25.log
-rw-rw-r-- 1 makerpm makerpm  104 Jan 13 10:17 .gitignore
-rw-rw-r-- 1 makerpm makerpm 31108310 Jan 13 16:07 master.zip
-rw-rw-r-- 1 makerpm makerpm  319 Jan 13 10:17 mattermost.service
-rw-rw-r-- 1 makerpm makerpm  169 Jan 13 10:17 mattermost.sh
-rw-rw-r-- 1 makerpm makerpm 4031 Jan 14 11:38 mattermost.spec
-rw-r--r-- 1 makerpm makerpm16384 Jan 14 11:50 .mattermost.spec.swp
drwxr-xr-x 1 makerpm makerpm   22 Jan 13 16:21 pkg
drwxr-xr-x 1 makerpm makerpm  596 Jan 14 11:42 platform-master
drwxr-xr-x 1 makerpm makerpm   20 Jan 13 16:07 src
-rw-rw-r-- 1 makerpm makerpm 1169 Jan 13 10:17 .SRCINFO
-rw-rw-r-- 1 makerpm makerpm  164 Jan 13 10:17 tmpfile.conf
-rw-rw-r-- 1 makerpm makerpm   32 Jan 13 10:17 user.conf

--

I don't understand why the mattermost-user.conf file comes in the build
process. There is no place where this file can be found, and no
instructions in the spec file regarding this file.
The log doesn't say much. How can I solve this issue? Is there any method,
hint?

Thank you for help.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: dnf upgrade fails

2016-12-14 Thread arnaud gaboury
On Wed, Dec 14, 2016 at 1:40 PM Honza Silhan  wrote:

> On Wed, Dec 14, 2016 at 7:51 AM, arnaud gaboury
>  wrote:
> >
> >
> > On Wed, Dec 14, 2016, 1:45 AM Samuel Sieb  wrote:
> >>
> >> On December 12, 2016 2:06:37 AM PST, arnaud gaboury
> >>  wrote:
> >> >--
> >> >  Upgrading   :
> >> >httpd-2.4.23-5.fc24.x86_64
> >> >1/4
> >> >Error unpacking rpm package httpd-2.4.23-5.fc24.x86_64
> >> >Error unpacking rpm package httpd-2.4.23-5.fc24.x86_64
> >> >error: unpacking of archive failed on file /usr/sbin/suexec;584e75cb:
> >> >cpio:
> >> >cap_set_file
> >> >
> >> >
> >>
> >> What is your root or /usr filesystem? Is it NFS?
> >
> >
> > It is Btrfs.
>
> is it the first time you are experiencing this? Have you ever manager
> to install a package with rpm on this system?
>

Yes it is the first time. I do think it has to do with the fact that Fedora
is a systemd-nspawn container and some userspace issue related. See this
issue: #4078 [0]

Unfortunately I can't cope at the moment with my issue, and some packages
can't be upgraded (only two atm, which is few).


[0]https://github.com/systemd/systemd/issues/4078

>
> I would recommend to fill bug on rpm component [1] or ask at #rpm.org
> on FreeNode rpm devs about rpm btrfs support.
>
> Honza
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: dnf upgrade fails

2016-12-13 Thread arnaud gaboury
On Wed, Dec 14, 2016, 1:45 AM Samuel Sieb  wrote:

> On December 12, 2016 2:06:37 AM PST, arnaud gaboury <
> arnaud.gabo...@gmail.com> wrote:
> >--
> >  Upgrading   :
> >httpd-2.4.23-5.fc24.x86_64
> >1/4
> >Error unpacking rpm package httpd-2.4.23-5.fc24.x86_64
> >Error unpacking rpm package httpd-2.4.23-5.fc24.x86_64
> >error: unpacking of archive failed on file /usr/sbin/suexec;584e75cb:
> >cpio:
> >cap_set_file
> >
> >
>
> What is your root or /usr filesystem? Is it NFS?
>

It is Btrfs.

> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: dnf upgrade fails

2016-12-13 Thread arnaud gaboury
On Wed, Dec 14, 2016, 12:32 AM Tony Nelson 
wrote:

> On 16-12-13 16:22:08, Honza Silhan wrote:
> > On Mon, Dec 12, 2016 at 12:26 PM, arnaud gaboury
> >  wrote:
> > >
> > >
> > > On Mon, Dec 12, 2016 at 11:06 AM arnaud gaboury
> > 
> > > wrote:
> > >>
> > >> I want to upgrade from 24 to 25. Following this[0], I first run:
> > >> # dnf upgrade --refresh
> > >>
> > >> I am left with an issue for one package:
> > >>
> > >> --
> > >>   Upgrading   : httpd-2.4.23-5.fc24.x86_64
> > >> 1/4
> > >> Error unpacking rpm package httpd-2.4.23-5.fc24.x86_64
> > >> Error unpacking rpm package httpd-2.4.23-5.fc24.x86_64
> > >> error: unpacking of archive failed on file
> > /usr/sbin/suexec;584e75cb:
> > >> cpio: cap_set_file
> > >> 
> > >
> > >
> > >
> > > EDIT:
> > > I was thinking as a hack to download the .rpm then install it with
> > > rpm -Uvh. But the extract fils again:
> > >
> > > # rpm -Uvh filesystem-3.2-37.fc24.x86_64.rpm
> > > Preparing...   # [100%]
> > > Updating / installing...
> > > 1:filesystem-3.2-37.fc24   # [50%]
> > > error: unpacking of archive failed on file /proc: cpio: chown
> > > 
> > > Is it possible to extract this file somewhere else than /proc ? I am
> > > not an expert in how rpm (or dnf) works step by step, but they shall
> > > at one point extract the archive.
> >
> > Hi,
> >
> > It seems like it fails on first package and rpm is not able to extract
> > the package content. Do you have write access on your system?
> >
> > If it was just one package problem then you could exclude that package
> > i.e.: "dnf upgrade -x filesystem".
>
> Why does the OP say that he has a problem with httpd, and then tries
> manually to install filesystem instead?
>
> Sorry for confusion. Both packages in fact don't upgrade with extract
> failing.
> --
> 
> TonyN.:'   <mailto:tonynel...@georgeanelson.com>
>   '  <http://www.georgeanelson.com/>
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: dnf upgrade fails

2016-12-12 Thread arnaud gaboury
On Mon, Dec 12, 2016 at 11:06 AM arnaud gaboury 
wrote:

> I want to upgrade from 24 to 25. Following this[0], I first run:
> # dnf upgrade --refresh
>
> I am left with an issue for one package:
>
> --
>   Upgrading   :
> httpd-2.4.23-5.fc24.x86_64
> 1/4
> Error unpacking rpm package httpd-2.4.23-5.fc24.x86_64
> Error unpacking rpm package httpd-2.4.23-5.fc24.x86_64
> error: unpacking of archive failed on file /usr/sbin/suexec;584e75cb:
> cpio: cap_set_file
> 
>


EDIT:
I was thinking as a hack to download the .rpm then install it with rpm
-Uvh. But the extract fils again:

 # rpm -Uvh filesystem-3.2-37.fc24.x86_64.rpm
Preparing...  #
[100%]
Updating / installing...
   1:filesystem-3.2-37.fc24   # [
50%]
error: unpacking of archive failed on file /proc: cpio: chown

Is it possible to extract this file somewhere else than /proc ? I am not an
expert in how rpm (or dnf) works step by step, but they shall at one point
extract the archive.



> I have no idea what I am supposed to do to solve this issue.
>
> Thank you for help.
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


dnf upgrade fails

2016-12-12 Thread arnaud gaboury
I want to upgrade from 24 to 25. Following this[0], I first run:
# dnf upgrade --refresh

I am left with an issue for one package:

--
  Upgrading   :
httpd-2.4.23-5.fc24.x86_64
1/4
Error unpacking rpm package httpd-2.4.23-5.fc24.x86_64
Error unpacking rpm package httpd-2.4.23-5.fc24.x86_64
error: unpacking of archive failed on file /usr/sbin/suexec;584e75cb: cpio:
cap_set_file


I have no idea what I am supposed to do to solve this issue.

Thank you for help.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: upgrading nodejs fails

2016-11-23 Thread arnaud gaboury
On Wed, Nov 23, 2016 at 3:16 PM Max Pyziur  wrote:

> On Wed, 23 Nov 2016, arnaud gaboury wrote:
>
> > I am upgrading my box to F25 from F24.
> >
> > First I ran # dnf upgrade --refresh , but some packages did not upgarde.
> All these packages are nodejs ones.
> > Below is the error I get when trying to upgrade one package, nodejs:
> >
> > # dnf upgrade nodejs
> > .
> > Running transaction check
> > Transaction check succeeded.
> > Running transaction test
> > Transaction test succeeded.
> > Running transaction
> >   Upgrading
> :nodejs-1:4.6.1-6.fc24.x86_64
> ?? ?1/2
> > Error unpacking rpm package nodejs-1:4.6.1-6.fc24.x86_64
> > Error unpacking rpm package nodejs-1:4.6.1-6.fc24.x86_64
> > error: unpacking of archive failed on file
> /usr/lib/node_modules/npm/doc: cpio: rename
> > nodejs-1:4.6.1-6.fc24.x86_64 was supposed to be installed but is not!
> >   Verifying
> :nodejs-1:4.6.1-6.fc24.x86_64
> ?? ?1/2
> > nodejs-0.10.42-4.fc23.x86_64 was supposed to be removed but is not!
> >   Verifying
> :nodejs-0.10.42-4.fc23.x86_64
> ?? ?2/2
> >
> > Failed:
> >   nodejs.x86_64 1:4.6.1-6.fc24
> >
> > ...
> >
> > This is same kind of errors for all nodejs packages.
> > Can someone help me solving this issue?
> > TY for help
>
> This happened on all three of my fedora machines when upgrading from F23
> to F24.
>
> I removed the packages (dnf remove nodejs);
>

If I remove nodejs, all other node packages will be removed. Fine. But when
reinstalling, how can I reinstall exactly all the node packages? I would
say best would be to get a list of the removed node packages, then install
this list.
Any tips to get such a list of packages to reinstall ?



> did the upgrade;

then reinstalled nodejs.
>
> That worked each time.
>
> fyi,
>
> Max Pyziur
> pyz@brama.com___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


upgrading nodejs fails

2016-11-23 Thread arnaud gaboury
I am upgrading my box to F25 from F24.

First I ran # dnf upgrade --refresh , but some packages did not upgarde.
All these packages are nodejs ones.
Below is the error I get when trying to upgrade one package, nodejs:

# dnf upgrade nodejs
.
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Upgrading   :
nodejs-1:4.6.1-6.fc24.x86_64
1/2
Error unpacking rpm package nodejs-1:4.6.1-6.fc24.x86_64
Error unpacking rpm package nodejs-1:4.6.1-6.fc24.x86_64
error: unpacking of archive failed on file /usr/lib/node_modules/npm/doc:
cpio: rename
nodejs-1:4.6.1-6.fc24.x86_64 was supposed to be installed but is not!
  Verifying   :
nodejs-1:4.6.1-6.fc24.x86_64
1/2
nodejs-0.10.42-4.fc23.x86_64 was supposed to be removed but is not!
  Verifying   :
nodejs-0.10.42-4.fc23.x86_64
2/2

Failed:
  nodejs.x86_64 1:4.6.1-6.fc24

...

This is same kind of errors for all nodejs packages.
Can someone help me solving this issue?
TY for help
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: .spec file for GO package

2016-11-09 Thread arnaud gaboury
On Wed, Nov 9, 2016 at 8:56 AM Matthias Runge 
wrote:

> On 08/11/16 15:59, arnaud gaboury wrote:
> > I am writing a .spec file for an app built with go[0].
> > I first made a build following the official doc, then write a .spec file
> > and built with it .rpm. Everything is OK but I have some doubts when I
> > look at some other .spec files for application writen in GO, or create a
> > spec file for my app using gofed[1], or even read Fedora wiki about GO
> > packages[2].
> > Spec files are indeed much more complicated, with
>
>
> spec files being output by gofed are nearly optimal for golang packages.
> If you want to learn packaging in general, I'd suggest not to target for
> golang in first step.
>

Unfortunately, I need to build the package as there is none. This is not my
first one, so I am not lost. Just wonder what the correct way.

>
> Matthias
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


.spec file for GO package

2016-11-08 Thread arnaud gaboury
I am writing a .spec file for an app built with go[0].
I first made a build following the official doc, then write a .spec file
and built with it .rpm. Everything is OK but I have some doubts when I look
at some other .spec files for application writen in GO, or create a spec
file for my app using gofed[1], or even read Fedora wiki about GO
packages[2].
Spec files are indeed much more complicated, with

At the beginig, one can usually see something similar to the following:

%if 0%{?fedora} || 0%{?rhel} == 6
%global with_debug 1
%global with_bundled 0
%global with_check 1
%else
%global with_debug 0
%global with_bundled 1
%global with_check 0
%endif

%if 0%{?with_debug}
%global _dwz_low_mem_die_limit 0
%else
%global debug_package   %{nil}
%endif
---

Then in %build something invoking the  command is used instead of
gcc make:

%if 0%{?with_debug}
function gobuild { go build -a -ldflags "-B 0x$(head -c20 /dev/urandom|od
-An -tx1|tr -d ' \n')" -v -x "$@"; }
%else
function gobuild { go build -a "$@" -ldflags "-X
%{import_path}/version.GitSHA %{shortcommit}"; }
%endif

 Do I have to use go gcc or gobuild instead of make ? I am not cross
compiling as the resulting package will be for my box, i.e. amd64.

Thank you for help/tips as doc is not easy to find.


[0]https://github.com/mattermost/platform
[1]https://github.com/gofed/gofed
[2]https://fedoraproject.org/wiki/PackagingDrafts/Go
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: go-compiler package

2016-11-05 Thread arnaud gaboury
On Sat, Nov 5, 2016 at 2:15 PM Jon Ingason  wrote:

> Den 2016-11-05 kl. 13:23, skrev arnaud gaboury:
> >
> >
> > On Sat, Nov 5, 2016 at 1:10 PM arnaud gaboury  > <mailto:arnaud.gabo...@gmail.com>> wrote:
> >
> > I am writing a .spec file to build an app written in GO.
> >
> > $ fedpkg --dist f24 local
> > error: Failed build dependencies:
> > compiler(go-compiler) is needed by
> > mattermost-3.4-0.1.gitf79f607.fc24.x86_64
> >
> > Could not execute local: Non zero exit
> >
> > # dnf install go-compiler
>
> You should install golang, dnf install golang.
>

It is installed:

$ dnf info golang
Last metadata expiration check: 7:13:01 ago on Sat Nov  5 12:59:17 2016.
Installed Packages  <<<<<<
Name: golang
Arch: x86_64
Epoch   : 0
Version : 1.6.3
Release : 3.fc24
Size: 11 M
Repo: @System
>From repo   : updates
Summary : The Go Programming Language
URL : http://golang.org/
License : BSD and Public Domain
Description : The Go Programming Language.





> See:
>
> $ dnf info golang
> Senaste kontroll av utgång av metadata: för 10 days, 3:19:15 sedan den
> Wed Oct 26 11:54:05 2016.
> Installerade paket
> Namn: golang
> Ark : x86_64
> Epok: 0
> Version : 1.6.3
> Utgåva  : 3.fc24
> Storlek : 11 M
> Förråd  : @System
> Från förråd : updates
> Sammanfattn : The Go Programming Language
> URL : http://golang.org/
> Licens  : BSD and Public Domain
> Beskrivning : The Go Programming Language.
>
> (
>
>
> > Thank you for help
> >
> > [0]https://apps.fedoraproject.org/packages/go-compilers
> > [1]https://github.com/gofed/gofed
> >
> >
> >
> >
> > ___
> > users mailing list -- users@lists.fedoraproject.org
> > To unsubscribe send an email to users-le...@lists.fedoraproject.org
> >
>
>
> --
> Regards
>
> Jon Ingason
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: go-compiler package

2016-11-05 Thread arnaud gaboury
On Sat, Nov 5, 2016 at 1:10 PM arnaud gaboury 
wrote:

> I am writing a .spec file to build an app written in GO.
>
> $ fedpkg --dist f24 local
> error: Failed build dependencies:
> compiler(go-compiler) is needed by
> mattermost-3.4-0.1.gitf79f607.fc24.x86_64
>
> Could not execute local: Non zero exit
>
> # dnf install go-compiler
> Last metadata expiration check: 0:26:15 ago on Sat Nov  5 12:39:05 2016.
> No package go-compiler available.
>
> There is a "go-compilers" (note the s at the end) which exists[0]
> # dnf install go-compilers
> Last metadata expiration check: 0:27:22 ago on Sat Nov  5 12:39:05 2016.
> No package go-compilers available.
>
>
>  How can I solve this dependecy issue ? I have everything installed to
> build the package as
>

After a closer look, I write my spec file with the help of the one given by
the gofed command[1]:
 BuildRequires:
%{?go_compiler:compiler(go-compilers)}%{!?go_compiler:golang}

As you can see, the "s" is missing here.
But this does not solve the fact I can't dnf install go-compilers.


Thank you for help
>
> [0]https://apps.fedoraproject.org/packages/go-compilers
> [1]https://github.com/gofed/gofed
>
>
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


go-compiler package

2016-11-05 Thread arnaud gaboury
I am writing a .spec file to build an app written in GO.

$ fedpkg --dist f24 local
error: Failed build dependencies:
compiler(go-compiler) is needed by
mattermost-3.4-0.1.gitf79f607.fc24.x86_64

Could not execute local: Non zero exit

# dnf install go-compiler
Last metadata expiration check: 0:26:15 ago on Sat Nov  5 12:39:05 2016.
No package go-compiler available.

There is a "go-compilers" (note the s at the end) which exists[0]
# dnf install go-compilers
Last metadata expiration check: 0:27:22 ago on Sat Nov  5 12:39:05 2016.
No package go-compilers available.


 How can I solve this dependecy issue ? I have everything installed to
build the package as

Thank you for help

[0]https://apps.fedoraproject.org/packages/go-compilers
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


building .rpm for a GO app

2016-11-05 Thread arnaud gaboury
I am writing a .spec file for an app writen in GO. I am a litle confused
how to indicate revision and release, following this wiki[0].

The app is in a git repo. When cloning and cd the dir app, I run this
command:
$ git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/.
This gives me for example : 3.4.0.r246.g428444d
Is the global revision is 428444d, (which is in fact the number of the last
commit) OR r246.g428444d ?
Version is 3.4.0

Then, how can I indicate this in my spec file? Of course, I don't know
version + revision before I clone.

Thank you for help


[0]https://fedoraproject.org/wiki/PackagingDrafts/Go
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: fedpkg: build error No build ID

2016-11-04 Thread arnaud gaboury
On Fri, Nov 4, 2016 at 9:19 AM arnaud gaboury 
wrote:

> I am writing a spec file to build an app.
> The build failed with this error:
>
> *** ERROR: No build ID note found in
> /home/makerpm/rpmbuild/BUILDROOT/mattermost-3.4-1.fc24.x86_64/usr/share/webapps/mattermost/bin/platform
>
> Googling it, I found a few "tricks" which I tried but don't work:
> - Adding "LDFLAGS+=--build-id"
> - adding %global _missing_build_ids_terminate_build 0
>
> What can I do to solve this issue ?
>

Not sure it is a good idea, but adding this :
 %define debug_package %{nil}

removed the error and package builds fine.
Is this a solution or a dirty trick to avoid ?



> Note: the application is written in Go.
>
> Thank you for help.
>
>
>
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


fedpkg: build error No build ID

2016-11-04 Thread arnaud gaboury
I am writing a spec file to build an app.
The build failed with this error:

*** ERROR: No build ID note found in
/home/makerpm/rpmbuild/BUILDROOT/mattermost-3.4-1.fc24.x86_64/usr/share/webapps/mattermost/bin/platform

Googling it, I found a few "tricks" which I tried but don't work:
- Adding "LDFLAGS+=--build-id"
- adding %global _missing_build_ids_terminate_build 0

What can I do to solve this issue ?

Note: the application is written in Go.

Thank you for help.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: /usr/lib & /usr/lib64 & %{_libdir} in .spec files

2016-11-03 Thread arnaud gaboury
On Thu, Nov 3, 2016 at 1:47 PM Richard Shaw  wrote:

> On Thu, Nov 3, 2016 at 6:42 AM, arnaud gaboury 
> wrote:
>
> Below is part of my .spec file:
> --
>
> %install
> install -Dm644 mattermost.service
> %{buildroot}/usr/lib/systemd/system/mattermost.service
> install -Dm644 mattermost-user.conf
> %{buildroot}/usr/lib/sysusers.d/mattermost.conf
>
>
> First install line change to %{buildroot}%{_unitdir} for the systemd file
> and the second to use %{buildroot}%{_sysusersdir} for the conf file.
>
> Also, be consistent, use the macros both in %install and in %files.
>

Do you mean this ? :

--
 %install
install -Dm644 mattermost.service
%{buildroot}%{_unitdir}/system/mattermost.service
install -Dm644 mattermost-user.conf
%{buildroot}%{_sysuserdir}/mattermost.conf

%files
%{_unitdir}/system/mattermost.service
%{_sysuserdir}/mattermost.conf
--

Where do these macro come from ? Any doc link ?

Thank you

Richard
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


/usr/lib & /usr/lib64 & %{_libdir} in .spec files

2016-11-03 Thread arnaud gaboury
Below is part of my .spec file:
--

%install
install -Dm644 mattermost.service
%{buildroot}/usr/lib/systemd/system/mattermost.service
install -Dm644 mattermost-user.conf
%{buildroot}/usr/lib/sysusers.d/mattermost.conf

%files
%{_libdir}/systemd/system/mattermost.conf
%{_libdir}/sysusers.d/mattermost.conf

--

which throw two errors when building:

error: File not found:
/home/makerpm/rpmbuild/BUILDROOT/mattermost-3.4-1.fc24.x86_64/usr/lib64/systemd/system/mattermost.conf
error: File not found:
/home/makerpm/rpmbuild/BUILDROOT/mattermost-3.4-1.fc24.x86_64/usr/lib64/sysusers.d/mattermost.conf

I understand I installed these two files in /usr/lib/ (which is what I
want), as said by the below output:
--
+ install -Dm644 mattermost.service
/home/makerpm/rpmbuild/BUILDROOT/mattermost-3.4-1.fc24.x86_64/usr/lib/systemd/system/mattermost.service
+ install -Dm644 mattermost-user.conf
/home/makerpm/rpmbuild/BUILDROOT/mattermost-3.4-1.fc24.x86_64/usr/lib/sysusers.d/mattermost.conf
--

BUT Fedora is looking for them in /usr/lib64, right ?

So %{_libdir} seems to point to /usr/lib64 rather than to /usr/lib as
mentioned in wiki[0].

Am I right? Shall I then write this in %files ? :

/usr/lib/systemd/system/mattermost.conf
/usr/lib/sysusers.d/mattermost.conf

Thank you for help.

[0]https://fedoraproject.org/wiki/How_to_create_an_RPM_package
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


fedpkg --dist f24 local

2016-11-02 Thread arnaud gaboury
I am writing a .spec file to build my own .rpm.
Here it is, non completed:

---
Name: mattermost
Version: 3.4
Release: 1%{?dist}
Summary: Mattermost is an open source, self-hosted Slack-alternative
URL: http://www.mattermost.org
Source0: https://github.com/mattermost/platform/archive/master.zip
License: MIT
Group: System Environment/Daemons

BuildRequires: go
BuildRequires: npm
BuildRequires: python
BuildRequires: git
BuildRequires: mercurial
BuildRequires: pngquant
Requires: glibc


%description
As an alternative to proprietary SaaS messaging, Mattermost brings all your
team communication into one p$


%prep
%autosetup -n platform-master
cd %{_builddir}
mkdir -p src/github.com/mattermost
cd src/github.com/mattermost
rm -f platform
ln -s %{_builddir}/platform-master platform
cd platform
sed -n '1,/cp README.md/p;/^run-server:/,$p' -i Makefile
sed -r -i Makefile \
-e 's/^package: build build-client/package: build-linux build-client/' \
-e 's/GOARCH=amd64//' \
-e 's/^BUILD_HASH =.*/BUILD_HASH = none/'

%build
cd %{_builddir}/src/github.com/mattermost/platform
GOPATH=%{_builddir} BUILD_NUMBER=%{version}-%{release} make %{?_smp_mflags}
package

%install


%files


%changelog

-

Before going further, I want to test, so run:

$ fedpkg --dist f24 local

Everything went fine and was left with the wanted binaries, BUT I have this
error at the very end:


+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.92dtaH
+ umask 022
+ cd /home/makerpm/build_package/mattermost
+ '[' /home/makerpm/rpmbuild/BUILDROOT/mattermost-3.4-1.fc24.x86_64 '!=' /
']'
+ rm -rf /home/makerpm/rpmbuild/BUILDROOT/mattermost-3.4-1.fc24.x86_64
++ dirname /home/makerpm/rpmbuild/BUILDROOT/mattermost-3.4-1.fc24.x86_64
+ mkdir -p /home/makerpm/rpmbuild/BUILDROOT
+ mkdir /home/makerpm/rpmbuild/BUILDROOT/mattermost-3.4-1.fc24.x86_64
+ cd platform-master
+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz
--dwz-low-mem-die-limit 1000 --dwz-max-die-limit 11000
/home/makerpm/build_package/mattermost/platform-master
/usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match.
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
+ /usr/lib/rpm/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: mattermost-3.4-1.fc24.x86_64
Processing files: mattermost-debuginfo-3.4-1.fc24.x86_64
error: Empty %files file
/home/makerpm/build_package/mattermost/platform-master/debugfiles.list


RPM build errors:
Empty %files file
/home/makerpm/build_package/mattermost/platform-master/debugfiles.list
Could not execute local: Non zero exit

--

My %files section is indeed empty as I did not finished writing the .spec
file.
Shall I overcome for now this error  and consider my local build test as
successful ?
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Build rpm - extract source

2016-10-27 Thread arnaud gaboury
On Thu, Oct 27, 2016 at 2:41 PM Ahmad Samir 
wrote:

> On 27 October 2016 at 14:28, arnaud gaboury 
> wrote:
> >
> >
> > On Thu, Oct 27, 2016 at 2:11 PM arnaud gaboury  >
> > wrote:
> >
> >
> > NEW EDIT: the autosetup command as described above works indeed. The
> culprit
> > was a line before poorly commented by #, which in fact is not the correct
> > way to comment  in spec file.
>
> AFAIK # at the beginning of a line denotes a comment in a spec; IIRC
> an experienced packager once told me that when commenting rpm macros
> that expand to multiple lines you need to separate the % from the
> macro name, e.g.:
> #% {macroname}
>

Yes, exactly. Unfortunately, I did forget this rule.

>
>
> --
> Ahmad Samir
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Build rpm - extract source

2016-10-27 Thread arnaud gaboury
On Thu, Oct 27, 2016 at 2:11 PM arnaud gaboury 
wrote:

> On Thu, Oct 27, 2016 at 12:47 PM arnaud gaboury 
> wrote:
>
> Here is part of my spec file:
>
> ---
> Name: mattermost
> Version: 3.4.0
> Release: 1%{?dist}
> Summary: Mattermost is an open source, self-hosted Slack-alternative
> URL: http://www.mattermost.org
> Source0:
> https://releases.mattermost.com/%{version}/mattermost-%{version}-linux-amd64.tar.gz
> License: MIT
> Group: System Environment/Daemons
> 
> %prep
> %autosetup
>
> ---
> Now testing:
> $  fedpkg --dist f24 prep
>
> leaves me with this error:  mattermost-3.4.0: No such file or directory
> $ ls returns in fact mattermost. I guess the difference is due to untar.
>
> How can I tell in my spec file that the source directory will be named
> %{name} and not %{name}.%{version} ?
>
>
> EDIT : In fact, the unpacked directory is called platform-release-3.4 when
> the macro is looking for mattermost-3.4. I used this setup option:
>
> %autosetup -n platform-release-3.4
>
> but it doesn't solve my issue. I still get cd: mattermost-3.4: No such
> file or directory
>
> What is wrong ?
>

NEW EDIT: the autosetup command as described above works indeed. The
culprit was a line before poorly commented by #, which in fact is not the
correct  way to comment  in spec file.

>
>
> Then, I though the %autosetup macro would have download the source, which
> is not the case. I need to run $ spectool -g *spec to get the source. Is it
> the normal behavior?
>
> Thank you for help.
>
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Build rpm - extract source

2016-10-27 Thread arnaud gaboury
On Thu, Oct 27, 2016 at 12:47 PM arnaud gaboury 
wrote:

> Here is part of my spec file:
>
> ---
> Name: mattermost
> Version: 3.4.0
> Release: 1%{?dist}
> Summary: Mattermost is an open source, self-hosted Slack-alternative
> URL: http://www.mattermost.org
> Source0:
> https://releases.mattermost.com/%{version}/mattermost-%{version}-linux-amd64.tar.gz
> License: MIT
> Group: System Environment/Daemons
> 
> %prep
> %autosetup
>
> ---
> Now testing:
> $  fedpkg --dist f24 prep
>
> leaves me with this error:  mattermost-3.4.0: No such file or directory
> $ ls returns in fact mattermost. I guess the difference is due to untar.
>
> How can I tell in my spec file that the source directory will be named
> %{name} and not %{name}.%{version} ?
>

EDIT : In fact, the unpacked directory is called platform-release-3.4 when
the macro is looking for mattermost-3.4. I used this setup option:

%autosetup -n platform-release-3.4

but it doesn't solve my issue. I still get cd: mattermost-3.4: No such file
or directory

What is wrong ?


> Then, I though the %autosetup macro would have download the source, which
> is not the case. I need to run $ spectool -g *spec to get the source. Is it
> the normal behavior?
>
> Thank you for help.
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Build rpm - extract source

2016-10-27 Thread arnaud gaboury
Here is part of my spec file:

---
Name: mattermost
Version: 3.4.0
Release: 1%{?dist}
Summary: Mattermost is an open source, self-hosted Slack-alternative
URL: http://www.mattermost.org
Source0:
https://releases.mattermost.com/%{version}/mattermost-%{version}-linux-amd64.tar.gz
License: MIT
Group: System Environment/Daemons

%prep
%autosetup

---
Now testing:
$  fedpkg --dist f24 prep

leaves me with this error:  mattermost-3.4.0: No such file or directory
$ ls returns in fact mattermost. I guess the difference is due to untar.

How can I tell in my spec file that the source directory will be named
%{name} and not %{name}.%{version} ?

Then, I though the %autosetup macro would have download the source, which
is not the case. I need to run $ spectool -g *spec to get the source. Is it
the normal behavior?

Thank you for help.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


install alongside two postgresql versions

2016-07-08 Thread arnaud gaboury
My upgrade from Fedora 23 to 24 left me with a broken postgresql.


# /usr/libexec/postgresql-ctl start -D /db/pgsql/data -s -w -t 270
FATAL:  22023: database files are incompatible with server
DETAIL:  The data directory was initialized by PostgreSQL version 9.4,
which is not compatible with this version 9.5.3.
LOCATION:  ValidatePgVersion, miscinit.c:1364
pg_ctl: could not start server
Examine the log output.



-
# postgresql-setup --upgrade

 * Upgrading database.
ERROR: pg_upgrade tool failed
ERROR: Upgrade failed.
 * See /var/lib/pgsql/upgrade_postgresql.log for detai
--

It seems I must install 9.4.8 alongside my current 9.5.3, then dump a
backup from 9.4.8 and restore with 9.5.3. Is it possible to install
9.4.8 ? I found 9.4.8 .rpm packages for Fedora 23. How can I install
them without touching anything to 9.5?

Is there any other solution to solve this initialisation issue?

Thank you for help in solving this postgresql issue.

-- 

google.com/+arnaudgabourygabx
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


postgresql-setup upgrade returns error

2016-07-07 Thread arnaud gaboury
I am left with a broken postgresql since my upgrade to Fedora 24.
Starting the service retruns this error:


# /usr/libexec/postgresql-ctl start -D /db/pgsql/data -s -w -t 270
FATAL:  22023: database files are incompatible with server
DETAIL:  The data directory was initialized by PostgreSQL version 9.4,
which is not compatible with this version 9.5.3.
LOCATION:  ValidatePgVersion, miscinit.c:1364
pg_ctl: could not start server
Examine the log output.

Note: my data are in /db/pgsql/data

-
# postgresql-setup --upgrade

 * Upgrading database.
ERROR: pg_upgrade tool failed
ERROR: Upgrade failed.
 * See /var/lib/pgsql/upgrade_postgresql.log for detai
--


# cat /var/lib/pgsql/upgrade_postgresql.log

-- connection to database failed: could not connect to server: No such
file or directory
Is the server running locally and accepting
connections on Unix domain socket "/home/postgres/.s.PGSQL.5432"?

could not connect to old postmaster started with the command:
"/usr/lib64/pgsql/postgresql-9.4/bin/pg_ctl" -w -l
"pg_upgrade_server.log" -D "/db/pgsql/data-old" -o "-p 5432 -b  -c
listen_addresses='' -c unix_socket_permissions=0700 -c
unix_socket_directories='/home/postgres'" start
Failure, exiting
-

What am I supposed to do now? It seems a trick would be to install
last version 9.4.8 alongside, then run both 9.4.8 and 9.5 with my data
for 9.4 and new empty data base for 9.5, then dump from older to new
one db. Is it correct? Anyway to make postgresql-setup works ?

Thank you for help

google.com/+arnaudgabourygabx
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Dovecot password scheme : Blowfish

2016-04-01 Thread arnaud gaboury
On Fri, Apr 1, 2016 at 7:10 PM, stan  wrote:

> On Fri, 1 Apr 2016 18:24:35 +0200
> arnaud gaboury  wrote:
>
>
> > I was thinking of installing via rpm the opensuse rpm package with a
> > different location, then build dovecot using this glibc. But the
>
> If it is the same glibc as Fedora uses, which is likely, this won't
> help, as the crypt still won't have blowfish support.
>
> > opensuse package is marked as not relocatable.
> >
> > Am I correct to say I can't install it in a specific directory ?
>
> I think this means relocatable in memory.  It's been compiled to be
> loaded at a specific memory address, so the loader has to place it
> there.  I'm not sure if the kernel accommodates this automatically or
> not.  I think it does.  So you could install it in a different
> directory, if you could get rpm to do so.



No, I can't.
# rpm --prefix /opt/ glibc-2.19-19.1.aarch64.rpm
 rpm: --prefix may only be used when installing new packages

This package is not relocatable and thus can't be installed elsewhere.

I uncompressed it with rpm2cpio and see if i can build dovecot with this
glibc.


But the install directory is
> usually part of the binary rpm.  i.e. if you run rpm -i [suse glibc
> rpm], it will probably install it in the /usr heirarchy.
>
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
>



-- 

google.com/+arnaudgabourygabx
<https://plus.google.com/_/notifications/emlink?emr=05814804238976922326&emid=CKiv-v6PvboCFcfoQgod6msAAA&path=%2F116159236040461325607%2Fop%2Fu&dt=1383086841306&ub=50>
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Dovecot password scheme : Blowfish

2016-04-01 Thread arnaud gaboury
On Fri, Apr 1, 2016 at 3:07 PM, arnaud gaboury 
wrote:

> Fedora 23
>
> I built an email server with postfix+dovecot+postgresql.
>
> When it comes to retrieve the user password, I have this error from
> dovecot:
>
>  Unknown scheme BLF-CRYPT
>
> In fact, my passwords are encrypted this way in my DB. After some
> readings, it seems not all Linux distro have glibc built with blowfish
> support.
>
> the command
> $ doveadmin pw -l
>
> does not return in fact BLF-CRYPT in its enabled scheme.
>
> I installed the bcrypt package, but nothing changes.
>
> Is there a solution, or am I missing something?
>
> Thank you for help
>

I was thinking of installing via rpm the opensuse rpm package with a
different location, then build dovecot using this glibc. But the opensuse
package is marked as not relocatable.

Am I correct to say I can't install it in a specific directory ?

>
>
>
>
> --
>
> google.com/+arnaudgabourygabx
> <https://plus.google.com/_/notifications/emlink?emr=05814804238976922326&emid=CKiv-v6PvboCFcfoQgod6msAAA&path=%2F116159236040461325607%2Fop%2Fu&dt=1383086841306&ub=50>
>
>


-- 

google.com/+arnaudgabourygabx
<https://plus.google.com/_/notifications/emlink?emr=05814804238976922326&emid=CKiv-v6PvboCFcfoQgod6msAAA&path=%2F116159236040461325607%2Fop%2Fu&dt=1383086841306&ub=50>
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Dovecot password scheme : Blowfish

2016-04-01 Thread arnaud gaboury
Fedora 23

I built an email server with postfix+dovecot+postgresql.

When it comes to retrieve the user password, I have this error from dovecot:

 Unknown scheme BLF-CRYPT

In fact, my passwords are encrypted this way in my DB. After some readings,
it seems not all Linux distro have glibc built with blowfish support.

the command
$ doveadmin pw -l

does not return in fact BLF-CRYPT in its enabled scheme.

I installed the bcrypt package, but nothing changes.

Is there a solution, or am I missing something?

Thank you for help




-- 

google.com/+arnaudgabourygabx

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: dovecot? systemd?

2016-02-11 Thread arnaud gaboury
On Thu, Feb 11, 2016 at 1:35 PM, Tom Horsley  wrote:
> I just did a "dnf update" and now dovecot won't start at boot.

No issue here with the updated dovecot. I guess it has nothing to do
with the update.
>
> I get errors like:
>
> Feb 11 07:23:41 tomh systemd[1]: dovecot.service: Main process exited, 
> code=exited, status=89/n/a
> Feb 11 07:23:41 tomh systemd[1]: dovecot.service: Unit entered failed state.
> Feb 11 07:23:41 tomh systemd[1]: dovecot.service: Failed with result 
> 'exit-code'.
>
> And over in maillog for the same timestamp:
>
> Feb 11 07:23:41 tomh dovecot: master: Error: service(imap-login): listen(*, 
> 993) failed: Address already in use

This above line means the socket is already up and listening. Dovecot
systemd service file is bind to  unit. Stopping only
dovecot is not enough, the socket must be closed to.


> Feb 11 07:23:41 tomh dovecot: master: Fatal: Failed to start listeners

What is the output of <$ systemctl status deovecot -l> when dovecot is
down ? Did you have a look at  ?
>
> But if I manually do this a few minutes after I boot:
>
> sudo systemctl restart dovecot.service

Try this instead:

# systemctl stop dovecot
# systemctl stop dovecot.socket
# systemctl start dovecot

The restart command is not always the safest choice.
>
> It then starts running with no problems.
>
> So who the heck is grabbing the imap ports when dovecot tries to start at 
> boot?


> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Postfix and PTR record issues

2016-02-10 Thread arnaud gaboury
On Wed, Feb 10, 2016 at 12:29 AM, Ed Greshko  wrote:
>
>
> On 02/09/16 21:14, arnaud gaboury wrote:
>> Now trying to an external user:
>>
>> % telnet mail.thetradinghall.com 587
>> 
>> ..
>> email from:arnaud.gabo...@thetradinghall.com
>> 502 5.5.2 Error: command not recognized
>> mail from:arnaud.gabo...@thetradinghall.com
>> 250 2.1.0 Ok
>> rcpt to:arnaud.gabo...@gmail.com
>> 454 4.7.1 : Relay access denied
>> ---
>>
>> $ journactl --unit postfix -r
>> 
>> Feb 09 13:47:05 poppy postfix/smtpd[1518]: NOQUEUE: reject: RCPT from
>> unknown[MyPublicIp]: 454 4.7.1 : Relay
>> access denied; from=> Feb 09 13:46:02 poppy postfix/smtpd[1518]: connect from unknown[MyPublicIp]
>> Feb 09 13:46:02 poppy postfix/smtpd[1518]: warning: hostname
>> dsldevice.lan does not resolve to address MyPublicIp
>>
>> ***
>>
>> After some reading, I came to the conclusion I did not setup any PTR
>> record. hostname dsldevice.lan is in fact my gateway (168.192.1.254).
>
> I doubt the problem is the lack of a PTR record.
>
> If you tried the reverse, "mail from x...@gmail.com" to 
> some...@thetradinghall.com chances
> are it would work.

You are right. Sending emails from outside works.

>
> The error message you are getting is "Relay access denied".  This is normally 
> a good thing
> since if the mail server is facing the Internet you'd have what is known as 
> an "open
> relay" which spammers use and would get you blacklisted.
>
> I've not worked with postfix or sendmail for quite some time.  Most recently 
> I worked with
> another MTA which had a concept of "Trusted Domains".  One could define a 
> domain or a
> range of IP addresses where relaying would be allowed.  I don't know if 
> postfix has that
> sort of configuration option.

I will have a closer look at the relay settings.
TY

>
> The other option, and the best one if you plan to use the server as your SMTP 
> host when
> traveling or outside the local network, is to configure your system for SMTP 
> AUTH.  With
> SMTP AUTH a user authenticates to the server and then is allow to send mail 
> anywhere.
>
>
> --
> In reality, some people should stick to running Windows and others should 
> stay away from
> computers altogether.
>
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Postfix and PTR record issues

2016-02-10 Thread arnaud gaboury
On Wed, Feb 10, 2016 at 6:32 AM, Tim  wrote:
> Allegedly, on or about 09 February 2016, arnaud gaboury sent:
>
>> When looking at my DNS provider (Hurricane Electric), I effectively
>> have no PTR record. I must set one but honestly, I am far from
>> understanding everything about PTR.
>
> Unless you have a unique IP, one that's always assigned solely to you,

That is the case. My IP is fixed and dedicated to me.


> your ISP is unlikely to set a PTR record for you.  Usually, they share
> addresses, one way or another (e.g. dynamic IPs) between their users,
> and PTRs point to their own hostnames.
>
> --
> [tim@localhost ~]$ uname -rsvp
> Linux 3.9.10-100.fc17.x86_64 #1 SMP Sun Jul 14 01:31:27 UTC 2013 x86_64
>
> Boilerplate:  All mail to my mailbox is automatically deleted, there is
> no point trying to privately email me, I only get to see the messages
> posted to the mailing list.
>
>
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Postfix and PTR record issues

2016-02-09 Thread arnaud gaboury
On Tue, Feb 9, 2016 at 5:40 PM, Tom Rivers  wrote:
> On 2/9/2016 8:57 AM, arnaud gaboury wrote:
>>
>>
>> Well, looking at my DNS provider home page, I have an entry to add
>> PTR. Furthermore, from HE FAQ[0]:
>>
>> > whatever means you wish, assuming you wish to do so at all. This page
>> is meant only to explain how our delegation works with you, our direct
>> customer.>
>>
>> Am I wrong to think I can do it with my DNS provider ?
>
>
> I went through this same issue with my ISP and they said they had to be the
> ones to change it.  I also originally read about PTR records here:
>
> http://aplawrence.com/Blog/B961.html

Thank you for the link.
After more readings, it seems my ISP only has to do the reverse setup.
I contacted them and waiting now for some news. You know, ISP...

TY for your answers.
>
> According to the link you provided, it appears your ISP actually lets you
> make the change yourself.  If that's the case, then you're all set.  :)
>
>
>
> Tom
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Postfix and PTR record issues

2016-02-09 Thread arnaud gaboury
On Tue, Feb 9, 2016 at 2:34 PM, Tom Rivers  wrote:
> On 2/9/2016 8:14 AM, arnaud gaboury wrote:
>>
>> When looking at my DNS provider (Hurricane Electric), I effectively
>> have no PTR record. I must set one but honestly, I am far from
>> understanding everything about PTR.
>
>
> The only people who can set up a PTR record are those who work for your ISP.
> You have to contact them and tell then to point your IP address to the
> domain that accepts incoming email.

Well, looking at my DNS provider home page, I have an entry to add
PTR. Furthermore, from HE FAQ[0]:



Am I wrong to think I can do it with my DNS provider ?

[0]http://faq.he.net/index.php/Reverse_DNS

>
>
> Tom
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Postfix and PTR record issues

2016-02-09 Thread arnaud gaboury
I am setting up a mail server with Postfix and bump my head about an
issue since a few days.

Issue:

Testing with Telnet:

% telnet mail.thetradinghall.com 587
Trying MyPublicIp...
Connected to mail.thetradinghall.com.
Escape character is '^]'.
220 poppy.thetradinghall.com ESMTP Postfix (3.0.3)
mail from:arnaud.gabo...@thetradinghall.com
503 5.5.1 Error: send HELO/EHLO first
HELO thetradinghall.com
250 poppy.thetradinghall.com
mail from:arnaud.gabo...@thetradinghall.com
250 2.1.0 Ok
rcpt to:arnaud.gabo...@thetradinghall.com
250 2.1.5 Ok
data
354 End data with .
.
250 2.0.0 Ok: queued as 17E4224F2B
quit
221 2.0.0 Bye
Connection closed by foreign host.


This is a virtual user, he is recognized. fine. I can see the emails
in the virtual mailbox.

$ journactl --unit postfix -r

Feb 09 12:00:19 poppy postfix/smtpd[347]: disconnect from unknown
[MyPublicIp] helo=1 mail=1
Feb 09 12:00:16 poppy postfix/qmgr[204]: 17E4224F2B:
MyPublicIpfrom=,
Feb 09 12:00:16 poppy postfix/cleanup[363]: 17E4224F2B: message-id=<>
Feb 09 12:00:09 poppy postfix/smtpd[347]: 17E4224F2B: client=unknown[MyPublicIp]
Feb 09 11:59:19 poppy postfix/smtpd[347]: connect from unknown[MyPublicIp]
Feb 09 11:59:19 poppy postfix/smtpd[347]: warning: hostname
dsldevice.lan does not resolve to a
Feb 09 11:57:36 poppy systemd[1]: Started Postfix Mail Transport Agent.
-

***
Now trying to an external user:

% telnet mail.thetradinghall.com 587

..
email from:arnaud.gabo...@thetradinghall.com
502 5.5.2 Error: command not recognized
mail from:arnaud.gabo...@thetradinghall.com
250 2.1.0 Ok
rcpt to:arnaud.gabo...@gmail.com
454 4.7.1 : Relay access denied
---

$ journactl --unit postfix -r

Feb 09 13:47:05 poppy postfix/smtpd[1518]: NOQUEUE: reject: RCPT from
unknown[MyPublicIp]: 454 4.7.1 : Relay
access denied; from= mtu 65536 qdisc noqueue state UNKNOWN
group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
.
2: host0@if6:  mtu 1500 qdisc noqueue
state UP group default qlen 1000
link/ether 0e:7f:c3:fb:25:b1 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 192.168.1.94/24 brd 192.168.1.255 scope global host0

***

When looking at my DNS provider (Hurricane Electric), I effectively
have no PTR record. I must set one but honestly, I am far from
understanding everything about PTR.

Thank you for help and hints.





-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Postfix settings issues

2016-01-26 Thread arnaud gaboury
I am running Fedora 23 server. Among other services, I want to deploy
a mail server with postfix.

1- I registered on my DNS provider a A and MX records:

 mail.thetradinghall.com.86400INA212.147.52.214
thetradinghall.com.86400INMX  10  mail.thetradinghall.com.
-

2- tested with dig
-
$ dig mail.thetradinghall.com @ns1.he.net
;; ANSWER SECTION:
mail.thetradinghall.com. 86400INA212.147.52.214
$ dig thetradinghall.com mx @ns1.he.net
;; ANSWER SECTION:
thetradinghall.com.86400INMX10 mail.thetradinghall.com.
--

3- installed, configured and started postfix.

poisonivy@poppy ➤➤ ~ % postconf -n
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
compatibility_level = 2
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debug_peer_list = 127.0.0.1, thetradinghall.com,
mail.thetradinghall.com debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont; echo
where) | gdb $daemon_directory/$process_name $process_id 2>&1
>$config_directory/$process_name.$process_id.log & sleep 5
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mailbox_size_limit = 0
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 0
meta_directory = /etc/postfix
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = thetradinghall.com
myhostname = mail.thetradinghall.com
mynetworks = 192.168.1.0/24, 127.0.0.0/8  <- Not sure of this line
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix/README_FILES
permit_sasl_authenticated, permit_mynetworks,
reject_unauth_destination
relay_domains = $mydestination
sample_directory = /usr/share/doc/postfix/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
shlib_directory = /usr/lib64/postfix
---

# postfix check
-
/usr/libexec/postfix/post-install: line 554: test: too many arguments
/usr/libexec/postfix/post-install: line 554: test: too many arguments
/usr/libexec/postfix/post-install: line 554: test: too many argument
-

$ ip a

1: lo:  mtu 65536 qdisc noqueue state UNKNOWN
group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
   valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
   valid_lft forever preferred_lft forever
2: host0@if6:  mtu 1500 qdisc noqueue
state UP group default qlen 1000
link/ether 0e:7f:c3:fb:25:b1 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 192.168.1.94/24 brd 192.168.1.255 scope global host0
   valid_lft forever preferred_lft forever
inet6 fe80::c7f:c3ff:fefb:25b1/64 scope link
   valid_lft forever preferred_lft forever
---

Nothing set in a first step as for TLS./etc/postfix/master.cf is the
original installed one.
No entry in iptables, as until now, I let it permissive :

# iptables -L
--
Chain INPUT (policy ACCEPT)
target prot opt source   destination
f2b-pam-generic  tcp  --  anywhere anywhere

Chain FORWARD (policy DROP)
target prot opt source   destination

Chain OUTPUT (policy ACCEPT)
target prot opt source   destination

Chain f2b-pam-generic (1 references)
target prot opt source   destination
RETURN all  --  anywhere anywhere
---

Now when testing with telent, I don't have the answer expected :
220 mail.thetradinghall.com ESMTP Postfix

$ telnet mail.thetradinghall.com 25
Trying 212.147.52.214...
Connected to mail.thetradinghall.com.
Escape character is '^]'.
-

I must have misconfigured something, but I have no idea what. After
lots of reading, it seems to me the setup is correct.

Thank you for any hint.
-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: rpmbuild : can't download source

2016-01-19 Thread arnaud gaboury
On Tue, Jan 19, 2016 at 8:14 PM, jd1008  wrote:
>
>
> On 01/19/2016 11:32 AM, arnaud gaboury wrote:
>>
>> I usually manage to build easily one package.
>> I changed the way I build my packages using a makerpm user, as it is
>> the best way to avoid polluted environment variables.
>>
>> The weird thins is I can't download the source anymore, and can't see why.
>>
>>  From my spec file:
>> 
>> Name: R-intel
>> Version: 3.2.3
>> Release: 1%{?dist}
>> Summary: A language for data analysis and graphics
>> URL: http://www.r-project.org
>> Source0: http://cran.r-project.org/src/base/R-3/R-%{version}.tar.gz
>> --
>>
>> The URL exists.
>>
>> 
>> [makerpm@poppy rpmbuild]$ rpmbuild -ba SPECS/R-intel.spec
>> error: File /home/makerpm/rpmbuild/SOURCES/R-3.2.3.tar.gz: No such
>> file or direct
>>
>> 
>>
>> Is there any reason why I can't download the source with this new user
>> makerpm ? I must miss some settings.
>
> Could you please provide the spec file?
> Upload it to some public sharing site.
> Sure would like to see if the URL you provide is where the file is.

Here is the spec file[0]
I suspect like some kind of permission

[0]http://pastebin.com/b0BdMvcX

> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: rpmbuild : can't download source

2016-01-19 Thread arnaud gaboury
On Tue, Jan 19, 2016 at 7:32 PM, arnaud gaboury
 wrote:
> I usually manage to build easily one package.
> I changed the way I build my packages using a makerpm user, as it is
> the best way to avoid polluted environment variables.
>
> The weird thins is I can't download the source anymore, and can't see why.
>
> From my spec file:
> 
> Name: R-intel
> Version: 3.2.3
> Release: 1%{?dist}
> Summary: A language for data analysis and graphics
> URL: http://www.r-project.org
> Source0: http://cran.r-project.org/src/base/R-3/R-%{version}.tar.gz
> --
>
> The URL exists.
>
> 
> [makerpm@poppy rpmbuild]$ rpmbuild -ba SPECS/R-intel.spec
> error: File /home/makerpm/rpmbuild/SOURCES/R-3.2.3.tar.gz: No such
> file or direct
> 
>
> Is there any reason why I can't download the source with this new user
> makerpm ? I must miss some settings.
>
EDIT : [makerpm@poppy rpmbuild]$ spectool -g SPECS/R-intel.spec
download the file.
>
> --
>
> google.com/+arnaudgabourygabx



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


rpmbuild : can't download source

2016-01-19 Thread arnaud gaboury
I usually manage to build easily one package.
I changed the way I build my packages using a makerpm user, as it is
the best way to avoid polluted environment variables.

The weird thins is I can't download the source anymore, and can't see why.

From my spec file:

Name: R-intel
Version: 3.2.3
Release: 1%{?dist}
Summary: A language for data analysis and graphics
URL: http://www.r-project.org
Source0: http://cran.r-project.org/src/base/R-3/R-%{version}.tar.gz
--

The URL exists.


[makerpm@poppy rpmbuild]$ rpmbuild -ba SPECS/R-intel.spec
error: File /home/makerpm/rpmbuild/SOURCES/R-3.2.3.tar.gz: No such
file or direct


Is there any reason why I can't download the source with this new user
makerpm ? I must miss some settings.



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Unset environment variable when building rpm

2016-01-15 Thread arnaud gaboury
On Fri, Jan 15, 2016 at 3:13 PM, James Hogarth  wrote:
> On 15 January 2016 at 14:01, arnaud gaboury  wrote:
>> On Fri, Jan 15, 2016 at 12:48 PM, arnaud gaboury
>>  wrote:
>>> On Fri, Jan 15, 2016 at 12:46 PM, Patrick O'Callaghan
>>>  wrote:
>>>> On Fri, 2016-01-15 at 11:42 +0100, arnaud gaboury wrote:
>>>>> I need to unset one of my environment variable to successfully build
>>>>> a
>>>>> rpm package.
>>>>>
>>>>> I added this in my .spec file, but apparently it doesn't work:
>>>>>
>>>>> ---
>>>>> if [ -n $R_PROFILE_USER ];then
>>>>> unset R_PROFILE_USER
>>>>> fi
>>>>> 
>>>>>
>>>>> What is the correct way to unset for build time a env variable?
>>>>
>>>> Why do you need the test? Just unset it directly.
>>> ok. In case this variable does not exist, will the build stop?
>>> Anyway to save the variable value, unset and restore at %post ?
>>
>> After more tests, best is indeed to modify a binary option using the
>> alias function. I can't find any entry on this. Adding
>> alias foo='foo --option' does not work.
>>
>>
>
> Best plan for reproducible builds is to just use mock - then you get a
> clean environment and don't have to worry about stuff like this,

I am setting such a clean environment. Definitively the best solution.
TY
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Unset environment variable when building rpm

2016-01-15 Thread arnaud gaboury
On Fri, Jan 15, 2016 at 12:48 PM, arnaud gaboury
 wrote:
> On Fri, Jan 15, 2016 at 12:46 PM, Patrick O'Callaghan
>  wrote:
>> On Fri, 2016-01-15 at 11:42 +0100, arnaud gaboury wrote:
>>> I need to unset one of my environment variable to successfully build
>>> a
>>> rpm package.
>>>
>>> I added this in my .spec file, but apparently it doesn't work:
>>>
>>> ---
>>> if [ -n $R_PROFILE_USER ];then
>>> unset R_PROFILE_USER
>>> fi
>>> 
>>>
>>> What is the correct way to unset for build time a env variable?
>>
>> Why do you need the test? Just unset it directly.
> ok. In case this variable does not exist, will the build stop?
> Anyway to save the variable value, unset and restore at %post ?

After more tests, best is indeed to modify a binary option using the
alias function. I can't find any entry on this. Adding
alias foo='foo --option' does not work.


>
>>
>> poc
>> --
>> users mailing list
>> users@lists.fedoraproject.org
>> To unsubscribe or change subscription options:
>> https://admin.fedoraproject.org/mailman/listinfo/users
>> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
>> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
>> Have a question? Ask away: http://ask.fedoraproject.org
>
>
>
> --
>
> google.com/+arnaudgabourygabx



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Unset environment variable when building rpm

2016-01-15 Thread arnaud gaboury
On Fri, Jan 15, 2016 at 12:46 PM, Patrick O'Callaghan
 wrote:
> On Fri, 2016-01-15 at 11:42 +0100, arnaud gaboury wrote:
>> I need to unset one of my environment variable to successfully build
>> a
>> rpm package.
>>
>> I added this in my .spec file, but apparently it doesn't work:
>>
>> ---
>> if [ -n $R_PROFILE_USER ];then
>> unset R_PROFILE_USER
>> fi
>> 
>>
>> What is the correct way to unset for build time a env variable?
>
> Why do you need the test? Just unset it directly.
ok. In case this variable does not exist, will the build stop?
Anyway to save the variable value, unset and restore at %post ?

>
> poc
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Unset environment variable when building rpm

2016-01-15 Thread arnaud gaboury
I need to unset one of my environment variable to successfully build a
rpm package.

I added this in my .spec file, but apparently it doesn't work:

---
if [ -n $R_PROFILE_USER ];then
unset R_PROFILE_USER
fi


What is the correct way to unset for build time a env variable?

Thank you
-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: can't upgrade filesystem-3.2-32.fc23.x86_64

2015-12-14 Thread arnaud gaboury
On Mon, Dec 14, 2015 at 9:13 PM, arnaud gaboury
 wrote:
> On Mon, Dec 14, 2015 at 8:44 PM, Michael Schwendt  wrote:
>> On Mon, 14 Dec 2015 20:37:42 +0100, arnaud gaboury wrote:
>>
>>> >> > error: unpacking of archive failed on file /sys: cpio: chmod
>>> >> > error: filesystem-3.2-35.fc23.x86_64: install failed
>>> >> > error: filesystem-3.2-32.fc22.x86_64: erase skipped
>>> >
>>> > And /sys of your installation is a directory or a symlink? It needs to be
>>> > a directory to match the "filesystem" package contents.
>>>
>>> $ ls -al /
>>> drwxr-xr-x   9 root root   180 Dec 14 20:09 sys/
>>
>> It's mode 0555 in filesystem package!
>
> From SYSTEMD-NSPAWN(1)
>
> systemd-nspawn limits access to various kernel interfaces in the
>container to read-only, such as /sys, /proc/sys or /sys/fs/selinux.
>
> ---
> chmod: changing permissions of ‘/sys’: Read-only file system
> 
>
>
> So I have no idea how to deal with this issue. I will still try the AUFS way.

Found the solution:

#  mount -o remount,rw -t sysfs sysfs /sys
$ cat /proc/mounts |grep sys
6:tmpfs /sys tmpfs rw,relatime,mode=755 0 0  <<< mounted now in rw
# rpm -Uvh 
https://kojipkgs.fedoraproject.org//packages/filesystem/3.2/35.fc23/x86_64/filesystem-3.2-35.fc23.x86_64.rpm
Retrieving 
https://kojipkgs.fedoraproject.org//packages/filesystem/3.2/35.fc23/x86_64/filesystem-3.2-35.fc23.x86_64.rpm
Preparing...  # [100%]
Updating / installing...
   1:filesystem-3.2-35.fc23   # [ 50%]
Cleaning up / removing...
   2:filesystem-3.2-32.fc22   # [100%]



>
>
>
>> --
>> users mailing list
>> users@lists.fedoraproject.org
>> To unsubscribe or change subscription options:
>> https://admin.fedoraproject.org/mailman/listinfo/users
>> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
>> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
>> Have a question? Ask away: http://ask.fedoraproject.org
>
>
>
> --
>
> google.com/+arnaudgabourygabx



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: can't upgrade filesystem-3.2-32.fc23.x86_64

2015-12-14 Thread arnaud gaboury
On Mon, Dec 14, 2015 at 8:44 PM, Michael Schwendt  wrote:
> On Mon, 14 Dec 2015 20:37:42 +0100, arnaud gaboury wrote:
>
>> >> > error: unpacking of archive failed on file /sys: cpio: chmod
>> >> > error: filesystem-3.2-35.fc23.x86_64: install failed
>> >> > error: filesystem-3.2-32.fc22.x86_64: erase skipped
>> >
>> > And /sys of your installation is a directory or a symlink? It needs to be
>> > a directory to match the "filesystem" package contents.
>>
>> $ ls -al /
>> drwxr-xr-x   9 root root   180 Dec 14 20:09 sys/
>
> It's mode 0555 in filesystem package!

From SYSTEMD-NSPAWN(1)

systemd-nspawn limits access to various kernel interfaces in the
   container to read-only, such as /sys, /proc/sys or /sys/fs/selinux.

---
chmod: changing permissions of ‘/sys’: Read-only file system



So I have no idea how to deal with this issue. I will still try the AUFS way.



> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: can't upgrade filesystem-3.2-32.fc23.x86_64

2015-12-14 Thread arnaud gaboury
On Mon, Dec 14, 2015 at 8:00 PM, Michael Schwendt  wrote:
> On Mon, 14 Dec 2015 17:03:49 +0100, arnaud gaboury wrote:
>
>> > # rpm -Uvh 
>> > https://kojipkgs.fedoraproject.org//packages/filesystem/3.2/35.fc23/x86_64/filesystem-3.2-35.fc23.x86_64.rpm
>> > Retrieving 
>> > https://kojipkgs.fedoraproject.org//packages/filesystem/3.2/35.fc23/x86_64/filesystem-3.2-35.fc23.x86_64.rpm
>> > Preparing...  # 
>> > [100%]
>> > Updating / installing...
>> >1:filesystem-3.2-35.fc23   # [ 
>> > 50%]
>> > error: unpacking of archive failed on file /sys: cpio: chmod
>> > error: filesystem-3.2-35.fc23.x86_64: install failed
>> > error: filesystem-3.2-32.fc22.x86_64: erase skipped
>
> And /sys of your installation is a directory or a symlink? It needs to be
> a directory to match the "filesystem" package contents.

$ ls -al /
drwxr-xr-x   9 root root   180 Dec 14 20:09 sys/

I am building a new kernel for my host (Archlinux) with aufs support.
Let's see if the upgrade still failed
>
> Any other package can break in similar ways, if replacing a dir with a
> symlink, or vice versa.
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: can't upgrade filesystem-3.2-32.fc23.x86_64

2015-12-14 Thread arnaud gaboury
On Mon, Dec 14, 2015 at 5:03 PM, arnaud gaboury
 wrote:
> On Mon, Dec 14, 2015 at 4:50 PM, arnaud gaboury
>  wrote:
>> On Mon, Dec 14, 2015 at 4:29 PM, Michael Schwendt  
>> wrote:
>>> On Mon, 14 Dec 2015 16:10:43 +0100, arnaud gaboury wrote:
>>>
>>>> Fedora 23
>>>>
>>>> It has been since a few eeeks now upgrading
>>>> filesystem-3.2-32.fc23.x86_64 to filesystem-3.2-35.fc23.x86_64 fails.
>>>>
>>>> The only thing I can find in log files is this:
>>>>
>>>> Dec 14 16:00:02 ERROR Error unpacking rpm package 
>>>> filesystem-3.2-35.fc23.x86_64
>>>>
>>>>
>>>> Until now my system is working well, but I would like to avaid any
>>>> burden issue to one day break everything.
>>>
>>> It's not clear which tools/programs you've used when trying to update.
>>
>> # dnf upgrade
>>
>>> It could be that a downloaded package file is corrupted.
>>> What do you get when running
>>>
>>>   rpm -Uvh 
>>> https://kojipkgs.fedoraproject.org//packages/filesystem/3.2/35.fc23/x86_64/filesystem-3.2-35.fc23.x86_64.rpm
>>>
>>> as superuser root?
>>
>> -
>> # rpm -Uvh 
>> https://kojipkgs.fedoraproject.org//packages/filesystem/3.2/35.fc23/x86_64/filesystem-3.2-35.fc23.x86_64.rpm
>> Retrieving 
>> https://kojipkgs.fedoraproject.org//packages/filesystem/3.2/35.fc23/x86_64/filesystem-3.2-35.fc23.x86_64.rpm
>> Preparing...  # 
>> [100%]
>> Updating / installing...
>>1:filesystem-3.2-35.fc23   # [ 
>> 50%]
>> error: unpacking of archive failed on file /sys: cpio: chmod
>> error: filesystem-3.2-35.fc23.x86_64: install failed
>> error: filesystem-3.2-32.fc22.x86_64: erase skipped
>> 
>
> Found some entries about similar issues[0]. Will try to investigate
> more about the AUFS story. My Fedora is running as a systemd nspwan
> container since more than a year now, with no issues. Maybe I need to
> search in this direction.
>
> [0]https://github.com/docker/docker/issues/6980

Question: does Fedora kernel include AUFS modules? As my Fedora is
running Arch Kernel, with no AUFS support, it could explain.
Thank you.


>
>
>>
>>
>>> --
>>> users mailing list
>>> users@lists.fedoraproject.org
>>> To unsubscribe or change subscription options:
>>> https://admin.fedoraproject.org/mailman/listinfo/users
>>> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
>>> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
>>> Have a question? Ask away: http://ask.fedoraproject.org
>>
>>
>>
>> --
>>
>> google.com/+arnaudgabourygabx
>
>
>
> --
>
> google.com/+arnaudgabourygabx



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: can't upgrade filesystem-3.2-32.fc23.x86_64

2015-12-14 Thread arnaud gaboury
On Mon, Dec 14, 2015 at 4:50 PM, arnaud gaboury
 wrote:
> On Mon, Dec 14, 2015 at 4:29 PM, Michael Schwendt  wrote:
>> On Mon, 14 Dec 2015 16:10:43 +0100, arnaud gaboury wrote:
>>
>>> Fedora 23
>>>
>>> It has been since a few eeeks now upgrading
>>> filesystem-3.2-32.fc23.x86_64 to filesystem-3.2-35.fc23.x86_64 fails.
>>>
>>> The only thing I can find in log files is this:
>>>
>>> Dec 14 16:00:02 ERROR Error unpacking rpm package 
>>> filesystem-3.2-35.fc23.x86_64
>>>
>>>
>>> Until now my system is working well, but I would like to avaid any
>>> burden issue to one day break everything.
>>
>> It's not clear which tools/programs you've used when trying to update.
>
> # dnf upgrade
>
>> It could be that a downloaded package file is corrupted.
>> What do you get when running
>>
>>   rpm -Uvh 
>> https://kojipkgs.fedoraproject.org//packages/filesystem/3.2/35.fc23/x86_64/filesystem-3.2-35.fc23.x86_64.rpm
>>
>> as superuser root?
>
> -
> # rpm -Uvh 
> https://kojipkgs.fedoraproject.org//packages/filesystem/3.2/35.fc23/x86_64/filesystem-3.2-35.fc23.x86_64.rpm
> Retrieving 
> https://kojipkgs.fedoraproject.org//packages/filesystem/3.2/35.fc23/x86_64/filesystem-3.2-35.fc23.x86_64.rpm
> Preparing...  # [100%]
> Updating / installing...
>1:filesystem-3.2-35.fc23   # [ 50%]
> error: unpacking of archive failed on file /sys: cpio: chmod
> error: filesystem-3.2-35.fc23.x86_64: install failed
> error: filesystem-3.2-32.fc22.x86_64: erase skipped
> 

Found some entries about similar issues[0]. Will try to investigate
more about the AUFS story. My Fedora is running as a systemd nspwan
container since more than a year now, with no issues. Maybe I need to
search in this direction.

[0]https://github.com/docker/docker/issues/6980


>
>
>> --
>> users mailing list
>> users@lists.fedoraproject.org
>> To unsubscribe or change subscription options:
>> https://admin.fedoraproject.org/mailman/listinfo/users
>> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
>> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
>> Have a question? Ask away: http://ask.fedoraproject.org
>
>
>
> --
>
> google.com/+arnaudgabourygabx



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: can't upgrade filesystem-3.2-32.fc23.x86_64

2015-12-14 Thread arnaud gaboury
On Mon, Dec 14, 2015 at 4:29 PM, Michael Schwendt  wrote:
> On Mon, 14 Dec 2015 16:10:43 +0100, arnaud gaboury wrote:
>
>> Fedora 23
>>
>> It has been since a few eeeks now upgrading
>> filesystem-3.2-32.fc23.x86_64 to filesystem-3.2-35.fc23.x86_64 fails.
>>
>> The only thing I can find in log files is this:
>>
>> Dec 14 16:00:02 ERROR Error unpacking rpm package 
>> filesystem-3.2-35.fc23.x86_64
>>
>>
>> Until now my system is working well, but I would like to avaid any
>> burden issue to one day break everything.
>
> It's not clear which tools/programs you've used when trying to update.

# dnf upgrade

> It could be that a downloaded package file is corrupted.
> What do you get when running
>
>   rpm -Uvh 
> https://kojipkgs.fedoraproject.org//packages/filesystem/3.2/35.fc23/x86_64/filesystem-3.2-35.fc23.x86_64.rpm
>
> as superuser root?

-
# rpm -Uvh 
https://kojipkgs.fedoraproject.org//packages/filesystem/3.2/35.fc23/x86_64/filesystem-3.2-35.fc23.x86_64.rpm
Retrieving 
https://kojipkgs.fedoraproject.org//packages/filesystem/3.2/35.fc23/x86_64/filesystem-3.2-35.fc23.x86_64.rpm
Preparing...  # [100%]
Updating / installing...
   1:filesystem-3.2-35.fc23   # [ 50%]
error: unpacking of archive failed on file /sys: cpio: chmod
error: filesystem-3.2-35.fc23.x86_64: install failed
error: filesystem-3.2-32.fc22.x86_64: erase skipped



> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


can't upgrade filesystem-3.2-32.fc23.x86_64

2015-12-14 Thread arnaud gaboury
Fedora 23

It has been since a few eeeks now upgrading
filesystem-3.2-32.fc23.x86_64 to filesystem-3.2-35.fc23.x86_64 fails.

The only thing I can find in log files is this:

Dec 14 16:00:02 ERROR Error unpacking rpm package filesystem-3.2-35.fc23.x86_64


Until now my system is working well, but I would like to avaid any
burden issue to one day break everything.

Thank you for hints.

-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: local repository

2015-12-08 Thread arnaud gaboury
On Tue, Dec 8, 2015 at 2:54 PM, Richard Shaw  wrote:

> On Tue, Dec 8, 2015 at 3:26 AM, arnaud gaboury 
> wrote:
>
>> I have some rpm packages I have built myself. I need to create a local
>> repo in order to reference these packages and solve dependency issues.
>>
>> What I did:
>> - put all my .rpm in one folder
>> - # createrepo /my/path/to/rpm
>>
>> The last command create and populate a subdir repodata
>>
>> then:
>> # dnf config-manager --add-repo file:///my/path/to/rpm
>>
>> It added a file in /etc/yum.repo.d:
>> 
>> name=created by dnf config-manager from file:///storage/development/rpm/
>> baseurl=file:///storage/development/rpm/
>> enabled=1
>> ---
>>
>> % dnf repolist
>> Failed to synchronize cache for repo 'storage_development_rpm_' from
>> 'file:///storage/development/rpm/': Yum repo downloading error:
>> Downloading error(s):
>>
>> repodata/05309df762126d0acf74bbdb339aca4cccb304abb6305383785dcf3ff207d68e-filelists.xml.gz
>> - Cannot download, all mirrors were already tried without success,
>> disabling.
>> Last metadata expiration check performed 16:11:26 ago on Mon Dec  7
>> 18:13:09 2015.
>> repo id repo name
>>   status
>> *fedora Fedora 23 - x86_64
>>   46,074
>> home_jeroenooms_opencpu-1.5 OpenCPU 1.5 (Fedora_22)
>>   14
>> trillianTrillian
>>2
>> *updatesFedora 23 - x86_64 -
>> Updates  6,69
>>
>> There is no surprise as it is a local sqlite DB (as far as I understood).
>>
>> How shall I solve this issue without setting a http/ftp service ?
>
>
> It can handle local repo's fine so that's not your problem. I basically do
> the same thing but I put mine in /var/local/packages/$releasever
>
> I would check permissions instead although I've never used the dnf addrepo
> command, I wrote my own .repo file.
>

Even after 10 years of Linux, permissions are still part of my isues (with
typo). My rpm packages were owned by me. changed onwer to root:root, rerun
create repo, and then:

-
$ dnf repolist
Last metadata expiration check performed 0:00:00 ago on Tue Dec  8 15:04:56
2015.
repo id repo name
 status
*fedora Fedora 23 - x86_64
  46,074
home_jeroenooms_opencpu-1.5 OpenCPU 1.5 (Fedora_22)
 14
storage_development_rpm_TTH
 10   < THIS ONE
trillianTrillian
   2
*updatesFedora 23 - x86_64 - Updates
  11,826


Thank you much.




> Thanks,
> Richard
>
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
>
>


-- 

google.com/+arnaudgabourygabx
<https://plus.google.com/_/notifications/emlink?emr=05814804238976922326&emid=CKiv-v6PvboCFcfoQgod6msAAA&path=%2F116159236040461325607%2Fop%2Fu&dt=1383086841306&ub=50>
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


local repository

2015-12-08 Thread arnaud gaboury
I have some rpm packages I have built myself. I need to create a local
repo in order to reference these packages and solve dependency issues.

What I did:
- put all my .rpm in one folder
- # createrepo /my/path/to/rpm

The last command create and populate a subdir repodata

then:
# dnf config-manager --add-repo file:///my/path/to/rpm

It added a file in /etc/yum.repo.d:

name=created by dnf config-manager from file:///storage/development/rpm/
baseurl=file:///storage/development/rpm/
enabled=1
---

% dnf repolist
Failed to synchronize cache for repo 'storage_development_rpm_' from
'file:///storage/development/rpm/': Yum repo downloading error:
Downloading error(s):
repodata/05309df762126d0acf74bbdb339aca4cccb304abb6305383785dcf3ff207d68e-filelists.xml.gz
- Cannot download, all mirrors were already tried without success,
disabling.
Last metadata expiration check performed 16:11:26 ago on Mon Dec  7
18:13:09 2015.
repo id repo name
  status
*fedora Fedora 23 - x86_64
  46,074
home_jeroenooms_opencpu-1.5 OpenCPU 1.5 (Fedora_22)
  14
trillianTrillian
   2
*updatesFedora 23 - x86_64 -
Updates  6,69

There is no surprise as it is a local sqlite DB (as far as I understood).

How shall I solve this issue without setting a http/ftp service ?

Thank you
-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: building rpm: error in shared libraries

2015-12-07 Thread arnaud gaboury
On Mon, Dec 7, 2015, 10:13 PM Ranjan Maitra 
wrote:

On Mon, 7 Dec 2015 17:11:19 +0100 arnaud gaboury 
wrote:

> On Mon, Dec 7, 2015 at 4:44 PM, Ranjan Maitra
>  wrote:
> > Question: why do you need R-intel-core? My RStudio works fine without
it.
>
> Long debate, but R built with Intel is faster.

I see, thanks! But, RStudio is hardly what I would use if speed is the
issue. (I must confess that I do not use RStudio.)

Rstudio is only the IDE. As for how fast R is able to compute does not
depend on the IDE, but rather on code and performing libraries.

Ranjan


Can't remember your password? Do you need a strong and secure password?
Use Password manager! It stores your passwords & protects your account.
Check it out at http://mysecurelogon.com/manager

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https <https://admin.fedoraproject.org/mailman/listinfo/users>://
<https://admin.fedoraproject.org/mailman/listinfo/users>
admin.fedoraproject.org
<https://admin.fedoraproject.org/mailman/listinfo/users>/mailman/
<https://admin.fedoraproject.org/mailman/listinfo/users>listinfo
<https://admin.fedoraproject.org/mailman/listinfo/users>/users
<https://admin.fedoraproject.org/mailman/listinfo/users>
Fedora Code of Conduct: http:// <http://fedoraproject.org/code-of-conduct>
fedoraproject.org <http://fedoraproject.org/code-of-conduct>/
<http://fedoraproject.org/code-of-conduct>code-of-conduct
<http://fedoraproject.org/code-of-conduct>
Guidelines: http:// <http://fedoraproject.org/wiki/Mailing_list_guidelines>
fedoraproject.org <http://fedoraproject.org/wiki/Mailing_list_guidelines>
/wiki/Mailing_list_guidelines
<http://fedoraproject.org/wiki/Mailing_list_guidelines>
Have a question? Ask away: http:// <http://ask.fedoraproject.org>
ask.fedoraproject.org
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: building rpm: error in shared libraries

2015-12-07 Thread arnaud gaboury
On Mon, Dec 7, 2015 at 6:49 PM, Rick Stevens  wrote:
> On 12/07/2015 09:20 AM, arnaud gaboury wrote:
>>
>> On Mon, Dec 7, 2015 at 5:16 PM, arnaud gaboury 
>> wrote:
>>>
>>> On Mon, Dec 7, 2015 at 5:09 PM, Michael Schwendt 
>>> wrote:
>>>>
>>>> On Mon, 7 Dec 2015 16:14:03 +0100, arnaud gaboury wrote:
>>>>
>>>>> I wrote and build successfuly a rpm package. When it comes to install,
>>>>> I have this error:
>>>>>
>>>>> # dnf install MyPackage.rpm
>>>>> Error: package rstudio-server-0.99.800-1.fc23.x86_64 requires
>>>>> libR.so()(64bit), but none of the providers can be installed
>>>>
>>>>
>>>> What's the output of "dnf install -b -v …" for that?
>>>
>>>
>>> ---
>>> # dnf install -b -v rstudio-server-0.99.800-1.fc23.x86_64.rpm
>>> cachedir: /var/cache/dnf
>>> Loaded plugins: reposync, needs-restarting, system-upgrade,
>>> playground, download, noroot, Query, protected_packages,
>>> debuginfo-install, generate_completion_cache, builddep, copr,
>>> config-manager
>>> DNF version: 1.1.4
>>> repo: using cache for: fedora
>>> not found deltainfo for: Fedora 23 - x86_64
>>> not found updateinfo for: Fedora 23 - x86_64
>>> repo: using cache for: updates
>>> repo: using cache for: home_jeroenooms_opencpu-1.5
>>> not found deltainfo for: OpenCPU 1.5 (Fedora_22)
>>> not found updateinfo for: OpenCPU 1.5 (Fedora_22)
>>> repo: using cache for: trillian
>>> not found deltainfo for: Trillian
>>> not found updateinfo for: Trillian
>>> fedora: using metadata from Sat Oct 31 18:34:41 2015.
>>> updates: using metadata from Sun Dec  6 19:45:27 2015.
>>> home_jeroenooms_opencpu-1.5: using metadata from Wed Jul  1 14:22:10
>>> 2015.
>>> trillian: using metadata from Fri Jan  9 17:17:59 2015.
>>> Last metadata expiration check performed 2:38:10 ago on Mon Dec  7
>>> 14:35:28 2015.
>>> --> Starting dependency resolution
>>> --> Finished dependency resolution
>>> Error: package rstudio-server-0.99.800-1.fc23.x86_64 requires
>>> libR.so()(64bit), but none of the providers can be installed
>>> (try to add '--allowerasing' to command line to replace conflicting
>>> packages)
>>>
>>> 
>>>
>>>> The error message reads a bit as if providers are found but are
>>>> not installable due to hidden errors.
>>>>
>>>>> The cited library is indeed already installed:
>>>>>
>>>>> % ldconfig -p | grep libR.so
>>>>> 807: libR.so (libc6,x86-64) => /usr/lib64/R/lib/libR.so
>>>>>
>>>>> This shared lib is provided by a home made package,
>>>>> R-intel-core-3.2.2. This package is similar to Fedora R-core-3.2.2,
>>>>> but built witn Intel compiler and MKL.
>>>>> --
>>>>> % dnf provides /usr/lib64/R/lib/libR.so
>>>>
>>>>
>>>> This is the wrong command to run for examining dependencies. You need to
>>>> ask for the provider of 'libR.so()(64bit)' not the pathname of libR.so.
>>>>
>>>> Show that your installed "R-intel-core" package is a provider of that:
>>>>
>>>>rpm -q --whatprovides 'libR.so()(64bit)'
>>>
>>>
>>> 
>>> % rpm -q --whatprovides 'libR.so()(64bit)'
>>> no package provides libR.so()(64bit)
>>> 
>>>
>>> BINGO
>>
>>
>> So I guess the trick is to create a yum repo in /etc/yum.repos.d  and
>> follow these instructions[1] ?
>
>
> You should also make sure your "home-made" libR RPM pokes the
> pkg-config system so the various build tools know about it.

May you please be more precise? I based the spec file on the regular R
package, but maybe missed something.


Obviously
> you've installed it, but likely
>
> pkg-config {--exists | --atleast-version=VERSION | --exact-
> version=VERSION | --max-version=VERSION} libR.so
>
> doesn't return any data, so it's assumed the library isn't there.
> --

Re: building rpm: error in shared libraries

2015-12-07 Thread arnaud gaboury
On Mon, Dec 7, 2015 at 5:16 PM, arnaud gaboury  wrote:
> On Mon, Dec 7, 2015 at 5:09 PM, Michael Schwendt  wrote:
>> On Mon, 7 Dec 2015 16:14:03 +0100, arnaud gaboury wrote:
>>
>>> I wrote and build successfuly a rpm package. When it comes to install,
>>> I have this error:
>>>
>>> # dnf install MyPackage.rpm
>>> Error: package rstudio-server-0.99.800-1.fc23.x86_64 requires
>>> libR.so()(64bit), but none of the providers can be installed
>>
>> What's the output of "dnf install -b -v …" for that?
>
> ---
> # dnf install -b -v rstudio-server-0.99.800-1.fc23.x86_64.rpm
> cachedir: /var/cache/dnf
> Loaded plugins: reposync, needs-restarting, system-upgrade,
> playground, download, noroot, Query, protected_packages,
> debuginfo-install, generate_completion_cache, builddep, copr,
> config-manager
> DNF version: 1.1.4
> repo: using cache for: fedora
> not found deltainfo for: Fedora 23 - x86_64
> not found updateinfo for: Fedora 23 - x86_64
> repo: using cache for: updates
> repo: using cache for: home_jeroenooms_opencpu-1.5
> not found deltainfo for: OpenCPU 1.5 (Fedora_22)
> not found updateinfo for: OpenCPU 1.5 (Fedora_22)
> repo: using cache for: trillian
> not found deltainfo for: Trillian
> not found updateinfo for: Trillian
> fedora: using metadata from Sat Oct 31 18:34:41 2015.
> updates: using metadata from Sun Dec  6 19:45:27 2015.
> home_jeroenooms_opencpu-1.5: using metadata from Wed Jul  1 14:22:10 2015.
> trillian: using metadata from Fri Jan  9 17:17:59 2015.
> Last metadata expiration check performed 2:38:10 ago on Mon Dec  7
> 14:35:28 2015.
> --> Starting dependency resolution
> --> Finished dependency resolution
> Error: package rstudio-server-0.99.800-1.fc23.x86_64 requires
> libR.so()(64bit), but none of the providers can be installed
> (try to add '--allowerasing' to command line to replace conflicting packages)
> 
>
>> The error message reads a bit as if providers are found but are
>> not installable due to hidden errors.
>>
>>> The cited library is indeed already installed:
>>>
>>> % ldconfig -p | grep libR.so
>>> 807: libR.so (libc6,x86-64) => /usr/lib64/R/lib/libR.so
>>>
>>> This shared lib is provided by a home made package,
>>> R-intel-core-3.2.2. This package is similar to Fedora R-core-3.2.2,
>>> but built witn Intel compiler and MKL.
>>> --
>>> % dnf provides /usr/lib64/R/lib/libR.so
>>
>> This is the wrong command to run for examining dependencies. You need to
>> ask for the provider of 'libR.so()(64bit)' not the pathname of libR.so.
>>
>> Show that your installed "R-intel-core" package is a provider of that:
>>
>>   rpm -q --whatprovides 'libR.so()(64bit)'
>
> 
> % rpm -q --whatprovides 'libR.so()(64bit)'
> no package provides libR.so()(64bit)
> 
>
> BINGO

So I guess the trick is to create a yum repo in /etc/yum.repos.d  and
follow these instructions[1] ?
>
>> For repos you can use "dnf", old "repoquery" or "dnf repoquery", too.
>>
>> You can also compare Requires/Provides manually by querying package
>> files using "rpm -qp --provides file.rpm" and "rpm -qp --requires file.rpm".
>>
>>> R-core-3.2.2-1.fc23.x86_64 : The minimal R components necessary for a
>>> functional runtime
>>> Repo: fedora
>>> 
>>>
>>> I added this line in my .spec file:
>>> requires: R-intel-core >= 2.11.1
>>
>> That would neither fix an unresolvable dependency on 'libR.so()(64bit)',
>> if no package in the enabled repos provides that "thing" or if a provider
>> cannot be installed.
>> --

[1]https://docs.fedoraproject.org/en-US/Fedora/12/html/Deployment_Guide/sec-Creating_a_Yum_Repository.html

-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: building rpm: error in shared libraries

2015-12-07 Thread arnaud gaboury
On Mon, Dec 7, 2015 at 5:09 PM, Michael Schwendt  wrote:
> On Mon, 7 Dec 2015 16:14:03 +0100, arnaud gaboury wrote:
>
>> I wrote and build successfuly a rpm package. When it comes to install,
>> I have this error:
>>
>> # dnf install MyPackage.rpm
>> Error: package rstudio-server-0.99.800-1.fc23.x86_64 requires
>> libR.so()(64bit), but none of the providers can be installed
>
> What's the output of "dnf install -b -v …" for that?

---
# dnf install -b -v rstudio-server-0.99.800-1.fc23.x86_64.rpm
cachedir: /var/cache/dnf
Loaded plugins: reposync, needs-restarting, system-upgrade,
playground, download, noroot, Query, protected_packages,
debuginfo-install, generate_completion_cache, builddep, copr,
config-manager
DNF version: 1.1.4
repo: using cache for: fedora
not found deltainfo for: Fedora 23 - x86_64
not found updateinfo for: Fedora 23 - x86_64
repo: using cache for: updates
repo: using cache for: home_jeroenooms_opencpu-1.5
not found deltainfo for: OpenCPU 1.5 (Fedora_22)
not found updateinfo for: OpenCPU 1.5 (Fedora_22)
repo: using cache for: trillian
not found deltainfo for: Trillian
not found updateinfo for: Trillian
fedora: using metadata from Sat Oct 31 18:34:41 2015.
updates: using metadata from Sun Dec  6 19:45:27 2015.
home_jeroenooms_opencpu-1.5: using metadata from Wed Jul  1 14:22:10 2015.
trillian: using metadata from Fri Jan  9 17:17:59 2015.
Last metadata expiration check performed 2:38:10 ago on Mon Dec  7
14:35:28 2015.
--> Starting dependency resolution
--> Finished dependency resolution
Error: package rstudio-server-0.99.800-1.fc23.x86_64 requires
libR.so()(64bit), but none of the providers can be installed
(try to add '--allowerasing' to command line to replace conflicting packages)


> The error message reads a bit as if providers are found but are
> not installable due to hidden errors.
>
>> The cited library is indeed already installed:
>>
>> % ldconfig -p | grep libR.so
>> 807: libR.so (libc6,x86-64) => /usr/lib64/R/lib/libR.so
>>
>> This shared lib is provided by a home made package,
>> R-intel-core-3.2.2. This package is similar to Fedora R-core-3.2.2,
>> but built witn Intel compiler and MKL.
>> --
>> % dnf provides /usr/lib64/R/lib/libR.so
>
> This is the wrong command to run for examining dependencies. You need to
> ask for the provider of 'libR.so()(64bit)' not the pathname of libR.so.
>
> Show that your installed "R-intel-core" package is a provider of that:
>
>   rpm -q --whatprovides 'libR.so()(64bit)'


% rpm -q --whatprovides 'libR.so()(64bit)'
no package provides libR.so()(64bit)


BINGO

> For repos you can use "dnf", old "repoquery" or "dnf repoquery", too.
>
> You can also compare Requires/Provides manually by querying package
> files using "rpm -qp --provides file.rpm" and "rpm -qp --requires file.rpm".
>
>> R-core-3.2.2-1.fc23.x86_64 : The minimal R components necessary for a
>> functional runtime
>> Repo: fedora
>> 
>>
>> I added this line in my .spec file:
>> requires: R-intel-core >= 2.11.1
>
> That would neither fix an unresolvable dependency on 'libR.so()(64bit)',
> if no package in the enabled repos provides that "thing" or if a provider
> cannot be installed.
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: building rpm: error in shared libraries

2015-12-07 Thread arnaud gaboury
On Mon, Dec 7, 2015 at 4:44 PM, Ranjan Maitra
 wrote:
> Question: why do you need R-intel-core? My RStudio works fine without it.

Long debate, but R built with Intel is faster.
>
> Did you try BuildRequiring R-core-devel?

libR.so is installed by R-core, but will try
>
> Thanks,
> Ranjan
>
> PS: Btw,
>
> $ sudo dnf whatprovides /usr/lib64/R/lib/libR.so
> Last metadata expiration check performed 1:42:29 ago on Mon Dec  7 08:00:56 
> 2015.
> R-core-3.2.2-2.fc23.x86_64 : The minimal R components necessary for a 
> functional
>: runtime
> Repo: @System
>
> R-core-3.2.2-2.fc23.x86_64 : The minimal R components necessary for a 
> functional
>: runtime
> Repo: updates
>
> R-core-3.2.2-1.fc23.x86_64 : The minimal R components necessary for a 
> functional
>: runtime
> Repo: fedora
>
> Try taking out R-intel-core: no idea where that comes from:

I already did it, no changes

>
> $ sudo dnf install R-intel-core
> Last metadata expiration check performed 1:43:46 ago on Mon Dec  7 08:00:56 
> 2015.
> No package R-intel-core available.
> Error: Unable to find a match.

>Normal, I made this package and gave it the name R-intel to make a difference 
>with regular R
>
> Ranjan
>
>
> On Mon, 7 Dec 2015 16:14:03 +0100 arnaud gaboury  
> wrote:
>
>> I wrote and build successfuly a rpm package. When it comes to install,
>> I have this error:
>>
>> # dnf install MyPackage.rpm
>> Error: package rstudio-server-0.99.800-1.fc23.x86_64 requires
>> libR.so()(64bit), but none of the providers can be installed
>>
>> The cited library is indeed already installed:
>>
>> % ldconfig -p | grep libR.so
>> 807: libR.so (libc6,x86-64) => /usr/lib64/R/lib/libR.so
>>
>> This shared lib is provided by a home made package,
>> R-intel-core-3.2.2. This package is similar to Fedora R-core-3.2.2,
>> but built witn Intel compiler and MKL.
>> --
>> % dnf provides /usr/lib64/R/lib/libR.so
>> Last metadata expiration check performed 3 days, 2:58:49 ago on Fri
>> Dec  4 13:10:47 2015.
>> R-intel-core-3.2.2-2.fc23.x86_64 : The minimal R components necessary
>> for a functional runtime
>> Repo: @System
>>
>> R-core-3.2.2-2.fc23.x86_64 : The minimal R components necessary for a
>> functional runtime
>> Repo: updates
>>
>> R-core-3.2.2-1.fc23.x86_64 : The minimal R components necessary for a
>> functional runtime
>> Repo: fedora
>> 
>>
>> I added this line in my .spec file:
>> requires: R-intel-core >= 2.11.1
>>
>>
>> I have no idea how make my rpm install and why the shared library is
>> not found. Is there any dirty trick to add in the package something
>> like a Provide:
>>
>> Thank you for hints
>>
>>
>> google.com/+arnaudgabourygabx
>> --
>> users mailing list
>> users@lists.fedoraproject.org
>> To unsubscribe or change subscription options:
>> https://admin.fedoraproject.org/mailman/listinfo/users
>> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
>> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
>> Have a question? Ask away: http://ask.fedoraproject.org
>
>
> --
> Important Notice: This mailbox is ignored: e-mails are set to be deleted on 
> receipt. Please respond to the mailing list if appropriate. For those needing 
> to send personal or professional e-mail, please use appropriate addresses.
>
> 
> FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
> Check it out at http://www.inbox.com/earth
>
>
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


building rpm: error in shared libraries

2015-12-07 Thread arnaud gaboury
I wrote and build successfuly a rpm package. When it comes to install,
I have this error:

# dnf install MyPackage.rpm
Error: package rstudio-server-0.99.800-1.fc23.x86_64 requires
libR.so()(64bit), but none of the providers can be installed

The cited library is indeed already installed:

% ldconfig -p | grep libR.so
807: libR.so (libc6,x86-64) => /usr/lib64/R/lib/libR.so

This shared lib is provided by a home made package,
R-intel-core-3.2.2. This package is similar to Fedora R-core-3.2.2,
but built witn Intel compiler and MKL.
--
% dnf provides /usr/lib64/R/lib/libR.so
Last metadata expiration check performed 3 days, 2:58:49 ago on Fri
Dec  4 13:10:47 2015.
R-intel-core-3.2.2-2.fc23.x86_64 : The minimal R components necessary
for a functional runtime
Repo: @System

R-core-3.2.2-2.fc23.x86_64 : The minimal R components necessary for a
functional runtime
Repo: updates

R-core-3.2.2-1.fc23.x86_64 : The minimal R components necessary for a
functional runtime
Repo: fedora


I added this line in my .spec file:
requires: R-intel-core >= 2.11.1


I have no idea how make my rpm install and why the shared library is
not found. Is there any dirty trick to add in the package something
like a Provide:

Thank you for hints


google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: list files in %files section of .spec

2015-12-07 Thread arnaud gaboury
On Mon, Dec 7, 2015 at 1:22 PM, Michael Schwendt  wrote:
> On Mon, 7 Dec 2015 11:06:18 +0100, arnaud gaboury wrote:
>
>> >> doubt is how deep I shall go in lisiting
>> >> direcrories/subdirectories/files.
>
>> >> What I would do is this:
>> >>
>> >> %files
>> >>
>> >> %{_libdir}/%{name}/bin/pandoc/<--- dir
>> >> %{_libdir}/%{name}/bin/postback/ < dir
>> >> %{_libdir}/%{name}/bin/r-ldpath <- file
>> >> %{_libdir}/%{name}/bin/rpostback  < file
>> >
>> > ERRATA:
>> >>
>> >> %{_libdir}%{name}/bin/pandoc/<--- dir
>> >> %{_libdir}%{name}/bin/postback/ < dir
>> >> %{_libdir}%{name}/bin/r-ldpath <- file
>> >> %{_libdir}%{name}/bin/rpostback  < file
>> >>
>> >> etc with all files
>
>> In fact, I just did this and it build fine:
>>
>> %files
>> %defattr(-, root, root, -)
>> %{_libdir}/%{name}/*
>> %{_localstatedir}/*
>> %{_sysconfdir}/*
>
> More correct would be
>
>   %files
>   %{_libdir}/%{name}/
>   %{_localstatedir}/*
>   %{_sysconfdir}/*
>
> to include also %{_libdir}/%{name} and not only its contents. The trailing 
> slash
> on the path name is purely cosmetic, however:
>
>   https://fedoraproject.org/wiki/Packaging:UnownedDirectories
>   
> https://fedoraproject.org/wiki/Packaging:Guidelines#File_and_Directory_Ownership
>
>> When looking at various spec files from Fedora repo, I can't see such
>> method.
>
> Then you've looked at the wrong spec files. Not all are good examples.
>
>> Most spec files contain a very long list of files. Why? Is
>> there any reason not to use /* ?
>
> It depends. Explicitly including individual files requires the buildroot
> to contain exactly the specified file. That can serve as a guard against
> incomplete builds. Else, extra file existance checks in %install or %check
> would be needed for similar protection. On the contrary, including entire
> directory trees can lead to including too many files in the wrong
> sub-packages or including added contents accidentally.

Very clear. Thank you so much.


> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: list files in %files section of .spec

2015-12-07 Thread arnaud gaboury
On Mon, Dec 7, 2015 at 10:22 AM, arnaud gaboury
 wrote:
> On Mon, Dec 7, 2015 at 10:02 AM, arnaud gaboury
>  wrote:
>> I am not sure how I shall lsit my files under the %files section. My
>> doubt is how deep I shall go in lisiting
>> direcrories/subdirectories/files.
>>
>> Below is part of the content of my buildroot
>> 
>> % ls usr/lib64/rstudio-server
>> bin/  resources/  www-symbolmaps/  INSTALL  README.md  VERSION
>> R/www/COPYING  NOTICE   SOURCE
>>
>> % ls -al usr/lib64/rstudio-server/bin/
>> total 22M
>> drwxr-xr-x 1 poisonivy poisonivy  142 Dec  7 08:12 ./
>> drwxr-xr-x 1 poisonivy poisonivy  144 Dec  7 08:11 ../
>> drwxr-xr-x 1 poisonivy poisonivy   42 Dec  7 08:11 pandoc/
>> drwxr-xr-x 1 poisonivy poisonivy  178 Dec  7 08:11 postback/
>> -rwxr-xr-x 1 poisonivy poisonivy  629 Dec  7 08:09 r-ldpath*
>> -rwxr-xr-x 1 poisonivy poisonivy 3.3M Dec  7 08:12 rpostback*
>> -rwxr-xr-x 1 poisonivy poisonivy 4.6M Dec  7 08:12 rserver*
>> -rwxr-xr-x 1 poisonivy poisonivy 2.8M Dec  7 08:12 rserver-pam*
>> -rwxr-xr-x 1 poisonivy poisonivy  11M Dec  7 08:12 rsession*
>> -rwxr-xr-x 1 poisonivy poisonivy 3.1K Dec  7 08:09 rstudio-server*
>> 
>>
>> What I would do is this:
>>
>> %files
>>
>> %{_libdir}/%{name}/bin/pandoc/<--- dir
>> %{_libdir}/%{name}/bin/postback/ < dir
>> %{_libdir}/%{name}/bin/r-ldpath <- file
>> %{_libdir}/%{name}/bin/rpostback  < file
>
> ERRATA:
>>
>> %{_libdir}%{name}/bin/pandoc/<--- dir
>> %{_libdir}%{name}/bin/postback/ < dir
>> %{_libdir}%{name}/bin/r-ldpath <- file
>> %{_libdir}%{name}/bin/rpostback  < file
>>
>> etc with all files

In fact, I just did this and it build fine:

%files
%defattr(-, root, root, -)
%{_libdir}/%{name}/*
%{_localstatedir}/*
%{_sysconfdir}/*

When looking at various spec files from Fedora repo, I can't see such
method.Most spec files contain a very long list of files. Why? Is
there any reason not to use /* ?


>>
>> Is this correct? pandoc/ and postbac directories only contain files, no 
>> subdir.
>>
>> Why not simply:
>>
>> %{_libdir}/%{name}/bin/
>>
>>
>> Thank you for hints.
>>
>>
>>
>>
>> --
>>
>> google.com/+arnaudgabourygabx
>
>
>
> --
>
> google.com/+arnaudgabourygabx



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: list files in %files section of .spec

2015-12-07 Thread arnaud gaboury
On Mon, Dec 7, 2015 at 10:02 AM, arnaud gaboury
 wrote:
> I am not sure how I shall lsit my files under the %files section. My
> doubt is how deep I shall go in lisiting
> direcrories/subdirectories/files.
>
> Below is part of the content of my buildroot
> 
> % ls usr/lib64/rstudio-server
> bin/  resources/  www-symbolmaps/  INSTALL  README.md  VERSION
> R/www/COPYING  NOTICE   SOURCE
>
> % ls -al usr/lib64/rstudio-server/bin/
> total 22M
> drwxr-xr-x 1 poisonivy poisonivy  142 Dec  7 08:12 ./
> drwxr-xr-x 1 poisonivy poisonivy  144 Dec  7 08:11 ../
> drwxr-xr-x 1 poisonivy poisonivy   42 Dec  7 08:11 pandoc/
> drwxr-xr-x 1 poisonivy poisonivy  178 Dec  7 08:11 postback/
> -rwxr-xr-x 1 poisonivy poisonivy  629 Dec  7 08:09 r-ldpath*
> -rwxr-xr-x 1 poisonivy poisonivy 3.3M Dec  7 08:12 rpostback*
> -rwxr-xr-x 1 poisonivy poisonivy 4.6M Dec  7 08:12 rserver*
> -rwxr-xr-x 1 poisonivy poisonivy 2.8M Dec  7 08:12 rserver-pam*
> -rwxr-xr-x 1 poisonivy poisonivy  11M Dec  7 08:12 rsession*
> -rwxr-xr-x 1 poisonivy poisonivy 3.1K Dec  7 08:09 rstudio-server*
> 
>
> What I would do is this:
>
> %files
>
> %{_libdir}/%{name}/bin/pandoc/<--- dir
> %{_libdir}/%{name}/bin/postback/ < dir
> %{_libdir}/%{name}/bin/r-ldpath <- file
> %{_libdir}/%{name}/bin/rpostback  < file

ERRATA:
>
> %{_libdir}%{name}/bin/pandoc/<--- dir
> %{_libdir}%{name}/bin/postback/ < dir
> %{_libdir}%{name}/bin/r-ldpath <- file
> %{_libdir}%{name}/bin/rpostback  < file
>
> etc with all files
>
> Is this correct? pandoc/ and postbac directories only contain files, no 
> subdir.
>
> Why not simply:
>
> %{_libdir}/%{name}/bin/
>
>
> Thank you for hints.
>
>
>
>
> --
>
> google.com/+arnaudgabourygabx



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


list files in %files section of .spec

2015-12-07 Thread arnaud gaboury
I am not sure how I shall lsit my files under the %files section. My
doubt is how deep I shall go in lisiting
direcrories/subdirectories/files.

Below is part of the content of my buildroot

% ls usr/lib64/rstudio-server
bin/  resources/  www-symbolmaps/  INSTALL  README.md  VERSION
R/www/COPYING  NOTICE   SOURCE

% ls -al usr/lib64/rstudio-server/bin/
total 22M
drwxr-xr-x 1 poisonivy poisonivy  142 Dec  7 08:12 ./
drwxr-xr-x 1 poisonivy poisonivy  144 Dec  7 08:11 ../
drwxr-xr-x 1 poisonivy poisonivy   42 Dec  7 08:11 pandoc/
drwxr-xr-x 1 poisonivy poisonivy  178 Dec  7 08:11 postback/
-rwxr-xr-x 1 poisonivy poisonivy  629 Dec  7 08:09 r-ldpath*
-rwxr-xr-x 1 poisonivy poisonivy 3.3M Dec  7 08:12 rpostback*
-rwxr-xr-x 1 poisonivy poisonivy 4.6M Dec  7 08:12 rserver*
-rwxr-xr-x 1 poisonivy poisonivy 2.8M Dec  7 08:12 rserver-pam*
-rwxr-xr-x 1 poisonivy poisonivy  11M Dec  7 08:12 rsession*
-rwxr-xr-x 1 poisonivy poisonivy 3.1K Dec  7 08:09 rstudio-server*


What I would do is this:

%files

%{_libdir}/%{name}/bin/pandoc/<--- dir
%{_libdir}/%{name}/bin/postback/ < dir
%{_libdir}/%{name}/bin/r-ldpath <- file
%{_libdir}/%{name}/bin/rpostback  < file

etc with all files

Is this correct? pandoc/ and postbac directories only contain files, no subdir.

Why not simply:

%{_libdir}/%{name}/bin/


Thank you for hints.




-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: alias command in a .spec file

2015-12-06 Thread arnaud gaboury
On Sun, Dec 6, 2015 at 10:28 AM, arnaud gaboury
 wrote:
> To build successfully a rpm package from my .spec file I need alias a command.
> The alias command is not taken into account in the .spec file. I can
> of course run it in my shell before the build, but I would like to
> include the process in .spec file.
>
> The link[1] is confusing. Something like:
> pm alias --MyAlias --define '_MyProg !#:+'
> ?
>
> Or the popt alias setting ?
> Define a global variable like MyAlias= MyProg ?
>
> Thank you for hints

One solution, and maybe cleanest, would be to unset an environment
variable (result would be same).
I can add this in my spec file:

if [ -n $MyVar ]:the
unset MyVar
fi

It works. Now best would be to save this variable, unset it at
begining and set it again at post. I can use
printenv | grep MyVar to catch the Var:Value, but no idea how to save
it in a %variable in my spec file. Idea would be something like this
in pseudo code:
%define MyVar printenv | grep MyVar


>
>
>
> [1]https://docs.fedoraproject.org/ro/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch20s03.html#id692629
> --
>
> google.com/+arnaudgabourygabx



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


alias command in a .spec file

2015-12-06 Thread arnaud gaboury
To build successfully a rpm package from my .spec file I need alias a command.
The alias command is not taken into account in the .spec file. I can
of course run it in my shell before the build, but I would like to
include the process in .spec file.

The link[1] is confusing. Something like:
pm alias --MyAlias --define '_MyProg !#:+'
?

Or the popt alias setting ?
Define a global variable like MyAlias= MyProg ?

Thank you for hints



[1]https://docs.fedoraproject.org/ro/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch20s03.html#id692629
-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: rpm package: Source0. do not download

2015-12-04 Thread arnaud gaboury
On Fri, Dec 4, 2015 at 5:42 PM, arnaud gaboury  wrote:
> here is the begining of my spec file:
>
> -
> Name: rstudio-server
> Version: 0.99.800
> Release: 1%{?dist}
> Summary: Rstudio Server lets you access Rstudio from anywhere using a
> web browser
> URL: http://www.rstudio.com
> Source0: github.com/rstudio/rstudio/archive/v%{version}.tar.gz
> Source1: rstudio-server.service
> License: AGPLv3
> Group: Applications/Editors
> BuildRequires: cmake >= 2.8
> BuildRequires: boost >= 1.5
> BuildRequires: java-1.8.0-openjdk-headless
> BuildRequires: java-headless
> BuildRequires: ant
> BuildRequires: unzip
> BuildRequires: openssl
> BuildRequires: bzip2-devel
> BuildRequires: pango
> BuildRequires: pam
> BuildRequires: zlib
> Requires: R-intel >= 2.11.1
> Requires: boost >= 1.5
> Requires: util-linux
> Requires: git
>
> %description
> blah blah
>
> %prep
> %autosetup
>
> 
>
> $ rpmbuild -bp MySpec
>
> ...
> the tar package does not download.
>
> The URL is fine as tested with wget, and with
> https://github.com/rstudio/rstudio/archive/v0.99.800.tar.gz , same
> result
>
> What am I missing?

When downloading manually the tar package, I got a exit 0 result, so OK.
It seems I was wrong when thinking the package would be downloaded
during the rpm.
>
> Thank you
>
> --
>
> google.com/+arnaudgabourygabx



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


rpm package: Source0. do not download

2015-12-04 Thread arnaud gaboury
here is the begining of my spec file:

-
Name: rstudio-server
Version: 0.99.800
Release: 1%{?dist}
Summary: Rstudio Server lets you access Rstudio from anywhere using a
web browser
URL: http://www.rstudio.com
Source0: github.com/rstudio/rstudio/archive/v%{version}.tar.gz
Source1: rstudio-server.service
License: AGPLv3
Group: Applications/Editors
BuildRequires: cmake >= 2.8
BuildRequires: boost >= 1.5
BuildRequires: java-1.8.0-openjdk-headless
BuildRequires: java-headless
BuildRequires: ant
BuildRequires: unzip
BuildRequires: openssl
BuildRequires: bzip2-devel
BuildRequires: pango
BuildRequires: pam
BuildRequires: zlib
Requires: R-intel >= 2.11.1
Requires: boost >= 1.5
Requires: util-linux
Requires: git

%description
blah blah

%prep
%autosetup



$ rpmbuild -bp MySpec

...
the tar package does not download.

The URL is fine as tested with wget, and with
https://github.com/rstudio/rstudio/archive/v0.99.800.tar.gz , same
result

What am I missing?

Thank you

-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


upgrade 22 > 23 a Fedora systemd nspawn container

2015-11-07 Thread arnaud gaboury
For those of us who are wondering if this can be tricky, I just want
to testify you just have to follow Fedora instruction[1] and restart
the machine. No issues at all and Fedora will be upgraded to 23.

You need to wait a little bit (~ 5-10 mn) after you run
# dnf system-upgrade reboot
for the system to install the new downloaded packages.


[1]https://fedoramagazine.org/upgrading-from-fedora-22-to-fedora-23/


google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: dnf install custom rpm - dnf upgrade

2015-10-12 Thread arnaud gaboury
On Mon, Oct 12, 2015 at 12:30 PM, Jan Zelený  wrote:
> On 12. 10. 2015 at 12:04:00, arnaud gaboury wrote:
>> I built my own .rpm's for a meta package. These packages are only a
>> modification of an existing Fedora package. Before I installed my own
>> packages, I first removed the original version from Fedora.
>>
>> Thus now $ dnf list installed return correctly:
>> Software version-MyBuild.fc22.1
>>
>> When doing a system upgrade, dnf want to install the original Fedora
>> version: Software-version.fc22.1
>
> I guess the official Fedora package was upgraded in remote repos and was
> therefore selected as an upgrade of your package. This happens if both
> packages have the same name.
>
>> Is there a way to change somewhere this behavior? Why dnf want to
>> upgrade a package which is not installed? I guess one solution would
>> be to give a different name for my own tweak rpm, but I thought
>> changing only versisoning would be enough. Another solution would be
>> to ignore these packages. Is there a clean and recommended way to
>> avoid dnf to upgrade these customs rpm's ?
>
> You basically have two options to do what you need:
>
> 1) Rename the package [1]

It sounds to me the cleanest way.
Thank you for these details

> 2) Bump the epoch so that the EVR of your custom package is always higher than
> the official one
>
> However, both of these options have some potential implications for stability
> of your system and you should know what are you doing before choosing one of
> them.
>
> [1]
> http://fedoraproject.org/wiki/Packaging:Guidelines#Renaming.2FReplacing_Existing_Packages
>
> Jan



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


dnf install custom rpm - dnf upgrade

2015-10-12 Thread arnaud gaboury
I built my own .rpm's for a meta package. These packages are only a
modification of an existing Fedora package. Before I installed my own
packages, I first removed the original version from Fedora.

Thus now $ dnf list installed return correctly:
Software version-MyBuild.fc22.1

When doing a system upgrade, dnf want to install the original Fedora version:
Software-version.fc22.1

Is there a way to change somewhere this behavior? Why dnf want to
upgrade a package which is not installed? I guess one solution would
be to give a different name for my own tweak rpm, but I thought
changing only versisoning would be enough. Another solution would be
to ignore these packages. Is there a clean and recommended way to
avoid dnf to upgrade these customs rpm's ?

Thank you for hints



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: install custom rpm package: failed dependencies

2015-10-09 Thread arnaud gaboury
On Fri, Oct 9, 2015 at 4:52 PM, stan  wrote:
> On Fri, 9 Oct 2015 07:42:02 -0700
> stan  wrote:
>
>> On Thu, 8 Oct 2015 22:11:12 +0200
>> arnaud gaboury  wrote:
>>
>> Ha!  I just went to the group to find the email address, and I saw
>> your post there.  I guess you can ignore my previous post as noise.
>
> Okay.  I just read the thread, and I see you got no joy there, as your
> question was considered inappropriate. There are people occasionally on
> this list that are skilled in spec files. (I'm not)  Perhaps one of
> them will help you.

Thank you for your answers. Yes, I have been bumped from devel to
users. I knew for sure it would be difficult to find an answer here,
thus why I posted @devels.

I found a way to solve my issue. Furthermore, someone from devel list
replied me privatly and gave me some hint. Unfortunately, no one could
benefit from the solutions...sad.
To sum up, best in fact was to post in devel list, even if some found
my post inapropriate.
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


install custom rpm package: failed dependencies

2015-10-08 Thread arnaud gaboury
I wrote a .spec file to build a meta pacakge with many shared librairies
installed by Intel parallel studio 2016. The spec file is attached.
There is no Fedora package for Intel, but the installation script
install many .rpm packages, and all are correctly listed when running

$ dnf list | grep intel
214:intel-ccomp-doc.noarch   2016.0-047
  @System
215:intel-comp-all-doc.noarch16.0.0-109
  @System
216:intel-comp-l-all-common-109.noarch   16.0.0-109
  @System
217:intel-comp-l-all-devel-109.x86_6416.0.0-109
  @System
..etc...

Building the rpm package went fine but I am left with one issue when installing.

# dnf install R-3.2.2-intel.fc22.1.x86_64.rpm
R-devel-3.2.2-intel.fc22.1.x86_64.rpm
R-core-devel-3.2.2-intel.fc22.1.x86_64.rpm
R-java-3.2.2-intel.fc22.1.x86_64.rpm
R-core-3.2.2-intel.fc22.1.x86_64.rpm
R-java-devel-3.2.2-intel.fc22.1.x86_64.rpm
libRmath-devel-3.2.2-intel.fc22.1.x86_64.rpm
libRmath-3.2.2-intel.fc22.1.x86_64.rpm
Error: nothing provides libimf.so()(64bit) needed by
libRmath-3.2.2-intel.fc22.1.x86_64.
nothing provides libifcoremt.so.5()(64bit) needed by
R-core-3.2.2-intel.fc22.1.x86_64.
nothing provides libimf.so()(64bit) needed by
libRmath-3.2.2-intel.fc22.1.x86_64.
nothing provides libifcoremt.so.5()(64bit) needed by
R-core-3.2.2-intel.fc22.1.x86_64.
nothing provides libifcoremt.so.5()(64bit) needed by
R-core-3.2.2-intel.fc22.1.x86_64.
nothing provides libifcoremt.so.5()(64bit) needed by
R-core-3.2.2-intel.fc22.1.x86_64.
nothing provides libifcoremt.so.5()(64bit) needed by
R-core-3.2.2-intel.fc22.1.x86_64.
nothing provides libifcoremt.so.5()(64bit) needed by
R-core-3.2.2-intel.fc22.1.x86_64

These share libs are in /opt/intel/lib/intel64/

$ ls /opt/intel/lib/intel64/
.
libifcoremt.so.5
libimf.so
...

$ ls /etc/ld.so.conf.d
bind99-x86_64.conf  intel-compiler-base.conf  intel-fortran.conf
intel-mkl.conf  intel-openmp.conf

with all correct path to shared libs



***

I do not see where this issue comes from. I would like to avoir # rpm
-i --no-deps to install my package. Why the  
message is repeating 5 times?
Thank you for any hints where to look.



google.com/+arnaudgabourygabx
%define java_arch amd64
%global _sysconfdir /etc/R  

Name: R
Version: 3.2.2
Release: intel%{?dist}.1
Summary: A language for data analysis and graphics
URL: http://www.r-project.org
Source0: ftp://cran.r-project.org/pub/R/src/base/R-3/R-%{version}.tar.gz
License: GPLv2+
Group: Applications/Engineering
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gcc-gfortran
BuildRequires: gcc-c++, tex(latex), texinfo, texinfo-tex  
BuildRequires: libpng-devel, libjpeg-turbo-devel, readline-devel
BuildRequires: tcl-devel, tk-devel, ncurses-devel
BuildRequires: pcre-devel, zlib-devel
BuildRequires: libcurl-devel
BuildRequires: valgrind-devel
BuildRequires: java-headless
BuildRequires: tre-devel
BuildRequires: autoconf, automake, libtool
BuildRequires: libSM-devel, libICE-devel, libXt-devel
BuildRequires: bzip2-devel, libtiff-devel
BuildRequires: gcc-objc, xz-devel
BuildRequires: libicu-devel
BuildRequires: less
BuildRequires: tex(inconsolata.sty)
BuildRequires: tex(upquote.sty)
BuildRequires: lapack
BuildRequires: intel-openmp-l-all-109
BuildRequires: intel-ifort-l-ps-109

# R-devel will pull in R-core
Requires: R-devel = %{version}-%{release}
# libRmath-devel will pull in libRmath
Requires: libRmath-devel = %{version}-%{release}
# Pull in Java bits (if you don't want this, use R-core)
Requires: R-java = %{version}-%{release}

%description
This is a metapackage that provides both core R userspace and 
all R development components.
R is a language and environment for statistical computing and graphics. 
R is similar to the award-winning S system, which was developed at 
Bell Laboratories by John Chambers et al. It provides a wide 
variety of statistical and graphical techniques (linear and
nonlinear modelling, statistical tests, time series analysis,
classification, clustering, ...).
R is designed as a true computer language with control-flow
constructions for iteration and alternation, and it allows users to
add additional functionality by defining new functions. For
computationally intensive tasks, C, C++ and Fortran code can be linked
and called at run time.

%package core
Summary: The minimal R components necessary for a functional runtime
Group: Applications/Engineering
Requires: xdg-utils, cups
Requires: tex(dvips), vi
Requires: perl, sed, gawk, tex(latex), less, make, unzip
# These are the submodules that R-core provides. Sometimes R modules say they
# depend on one of these submodules rather than just R. These are provided for 
# packager convenience.
Provides: R-base = %{version}
Provides: R-boot = 1.3.17
Provides: R-class = 7.3.13
Provides: R-cluster = 2.0.3
Provides: R-codetools = 0.2.14
Provides: R-datasets = %{version}
Provides: R-foreign 

Re: remove package without its dependencies

2015-09-30 Thread arnaud gaboury
On Wed, Sep 30, 2015 at 7:44 PM, Gordon Messmer
 wrote:
> On 09/30/2015 04:32 AM, arnaud gaboury wrote:
>>
>> I totally agree. At worth it can leave your system with unneeded packages.
>
>
> Your original request was ambiguous.  "rpm -e --nodeps" removes a package
> without checking for other packages that depend on the one you're removing.

Ah. I see it can be very annoying then.
> That's the inverse of what "clean_requirements_on_remove" does.  Thus,
> James' response.

So I guess clean_requirements_on_remove=false is a much safer solution
than the original command.
Thank you for this clarification.



>
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: remove package without its dependencies

2015-09-30 Thread arnaud gaboury
On Wed, Sep 30, 2015 at 12:48 PM, Ed Greshko  wrote:
> On 09/30/2015 06:38 PM, James Hogarth wrote:
>> On 30 September 2015 at 11:24, arnaud gaboury  
>> wrote:
>>> Is there any equivalent dnf command for :
>>>
>>> # rpm --nodeps -e MyPackage
>>>
>>
>> No because breaking your system on purpose is generally a horrible
>> idea - dependencies are there for a reason.
>
> I don't think that *not* removing something that was installed as a 
> dependency will break a system.

I totally agree. At worth it can leave your system with unneeded packages.
>
> I suppose for the purposes of the OP I'd investigate the dnf.conf parameter
>
>clean_requirements_on_remove
>   boolean
>
>   Remove  dependencies that are no longer used during dnf remove. 
> A
>   package   only   qualifies   for   removal   via   
> clean_require‐
>   ments_on_remove  if  it  was  installed  through  DNF  but not 
> on
>   explicit user request, i.e. it was pulled in as a dependency. 
> The
>   default   is  True.   (installonlypkgs  are  never  
> automatically
>   removed.)

Ok, thank you for this tip

>
> --
> In reality, some people should stick to running Windows and others should 
> stay away from computers altogether.
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


remove package without its dependencies

2015-09-30 Thread arnaud gaboury
Is there any equivalent dnf command for :

# rpm --nodeps -e MyPackage

Thank you

-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: dnf cache

2015-09-07 Thread arnaud gaboury
On Mon, Sep 7, 2015 at 10:32 AM, Ed Greshko  wrote:
> On 09/07/15 16:26, arnaud gaboury wrote:
>> Was in my current directory! Any way to tell in dnf.conf a specific
>> path for cache ?
>
> [egreshko@meimei ~]$ dnf download --help-cmd
> usage: dnf download [--help-cmd] [--source] [--destdir DESTDIR] [--resolve]
> packages [packages ...]
>
> positional arguments:
>   packages   packages to download
>
> optional arguments:
>   --help-cmd show this help about this tool
>   --source   download the src.rpm instead
>   --destdir DESTDIR  download path, default is current dir
>   --resolve  resolve and download needed dependencies

Thank you. But is there a line I can add to /etc/dnf/dnf.conf to tell
the DESTDIR in a permanent manner? Can't find such a thing in
dnf.conf(5).
>
>
> --
> It seems most people that say they are "done talking about it" never really 
> are until given the last word.
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: dnf cache

2015-09-07 Thread arnaud gaboury
On Mon, Sep 7, 2015 at 10:23 AM, arnaud gaboury
 wrote:
> % dnf download --source R
> enabling fedora-source repository
> enabling updates-source repository
> Last metadata expiration check performed 0:13:28 ago on Mon Sep  7
> 10:06:57 2015.
> [SKIPPED] R-3.2.1-2.fc22.src.rpm: Already downloaded
> The downloaded packages were saved in cache till the next successful
> transaction.
> You can remove cached packages by executing 'dnf clean packages'
>
> % sudo dnf clean packages
> [sudo] password for poisonivy:
> Cleaning repos: fedora updates
> 0 package files removed
>
> then % dnf download --source R again, but same output.
>
> % cat /etc/dnf/dnf.conf
> [main]
> gpgcheck=1
> installonly_limit=3
> clean_requirements_on_remove=true
>
>
> I have no idea where is the cache. /var/cache/dnf subdirectories will
> not show any .rpm.
>
> Where can I find my src.rpm ?

Sorry for this noise.
$ ls
.
R-3.2.1-2.fc22.src.rpm

Was in my current directory! Any way to tell in dnf.conf a specific
path for cache ?

> Thank you for help
>
>
> --
>
> google.com/+arnaudgabourygabx



-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


dnf cache

2015-09-07 Thread arnaud gaboury
% dnf download --source R
enabling fedora-source repository
enabling updates-source repository
Last metadata expiration check performed 0:13:28 ago on Mon Sep  7
10:06:57 2015.
[SKIPPED] R-3.2.1-2.fc22.src.rpm: Already downloaded
The downloaded packages were saved in cache till the next successful
transaction.
You can remove cached packages by executing 'dnf clean packages'

% sudo dnf clean packages
[sudo] password for poisonivy:
Cleaning repos: fedora updates
0 package files removed

then % dnf download --source R again, but same output.

% cat /etc/dnf/dnf.conf
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=true


I have no idea where is the cache. /var/cache/dnf subdirectories will
not show any .rpm.

Where can I find my src.rpm ?
Thank you for help


-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


rpmdev-setuptree in specific directory

2015-09-01 Thread arnaud gaboury
Fedora 22

For some practical reasons, I would like to gather all my rpm build
somewhere else than ~/rpmbuild.

I can't find any option/conf file to change this default behavior.
Even when cd somewhere else, running the command will always create
~/rpmbuild.
I can of course create a symlink, but I am not very happy with this solution.

Thank you for tips.

-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Multi seats on Fedora 22

2015-08-28 Thread arnaud gaboury
I tried one year ago to setup a multi seat on my box. By that time,
the setup was impossible as:
- I didn't use lightdm to log sessions
- I didn't have any two monitor hub.
- my distro was not Fedora and the systemd seat configuration was very tricky.

I am back now to this setup with everything needed:
- Fedora 22
- lightdm
- usb3 pluggable dockin station ($ lsusb returns it).
- systemd seat configured as shown by $ loginctl list-status

Even if I understand the principle (loginctl attatch seatNumber
/some/device), I am not sure of the exact how-to. Unfortunately I
couldn't find any good and recent entry about the setup.

A few questions:
- can I use my Nvidia driver or shall I use nouveau instead ?
- shall I modify by hand lightdm and Xorg conf or will they be updated
accordingly ?
- is there any pointer to a clear How-To ?

Thank you for advice

-- 

google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Cockpit error

2015-05-19 Thread arnaud gaboury
When connecting to cockpit, from Firefox or chromium, I get this error
when looking at the JS console:

TypeError: l.GetUnitFileState is not a function1 shell.js:38:3271
 TypeError: c.Subscribe is not a function1 bundle.js:2:8289

I can still browse and see pages.

Any idea why and how to fix it ?

Thank you


google.com/+arnaudgabourygabx
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: [systemd-devel] Fedora on systemd-nspawn container - ML best practice

2015-04-28 Thread arnaud gaboury
 On Tue, Apr 28, 2015, 11:38 AM Lennart Poettering 
wrote:

On Tue, 28.04.15 09:31, arnaud gaboury (arnaud.gabo...@gmail.com) wrote:

> I started running Fedora server on a systemd-nspawn container.
>
> I am wondering what is the best practice when an issue occurs:
> - send to Fedora user ML
> - send to systemd-devel ML
> - send both with CC
>
> I am afraid that when sending to only one list I will be told to ask
> the other one, thus wasting time between the two lists. On the other
> hand, CC to both lists can be viewed as spam.
>
> From a user point of view, best would be to post to both lists as long
> as the issue can come from systemd-nspawn functionality or Fedora.
>
> use case: after install, boot, upgrade Fedora container, network is
> down in container (when it used to work to install some new packages).
>
> Thank you for advice about ML posting.

Cross-posting is not particularly popular, so I'd avoid it.

 I know.

If it's nspawn related it's probably best to keep it on the systemd
ML.

Consider using using systemd-networkd in the container and on the
host. If so the network should just work between them.

 I will as systemd- networkd already manage my network on the host. Btw, as
fedora will act as a server, i will need a fix ip, get rid of ebtables and
firewalld in container (kernel is built with apparmor and grsec) etc etc.
Lot of work

Lennart

--
Lennart Poettering, Red Hat
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


  1   2   >