Discussion:
Ruby errors/warnings by rpmlint
Pavel Valena
4 years ago
Permalink
----- Original Message -----
...
Yes, I think so.
### 2.
ruby-default-gems.noarch: W: summary-ended-with-dot C Default gems
which are part of Ruby StdLib.
Summary ends with a dot.
=>
The summary ending dot needs to be removed.
Yes.
### 3.
ruby-libs.x86_64: E: missing-call-to-chdir-with-chroot
/usr/lib64/libruby.so.3.0.0
This executable appears to call chroot without using chdir to change the
current directory. This is likely an error and permits an attacker to break
out of the chroot by using fchdir. While that's not always a security issue,
this has to be checked.
=>
Not sure when this error came.
This is probably inside some generic Ruby code. IMHO this is a false positive.

E.g. https://www.rubydoc.info/stdlib/core/Dir.chroot
...
Well, maybe. Vit has probably more insight.
...
It think this should not be a warning, but a mere INFO. Note the 'IF'.
=>
The Provides line needs for the Obsolete line.
I don't think we want to create Provides for those, as those are "Default" gems.
...
Shouldn't be an issue, as it's linked against Ruby, right?
### 8.
non-executable-script errors.
=> Some parts are nice to fix.
## rpms/ruby CI to add rpmlint test.
Can we check the rpmlint issues on an early timing: pull-request and push?
I think adding the rpmlint check ro rpm/ruby CI is a possible way
related to this ticket.
Yes, I agree we could add this for the CI (functional). I'm not sure some generic checks aren't considered already for all PRs- I'll inquire abou it and follow up with you on IRC.
https://src.fedoraproject.org/rpms/ruby/pull-request/67
Shall we add it after the PR #67 will be merged?
--
Jun | He - His - Him
Regards,
--
Pavel Valena
Software Engineer, Red Hat
Brno, Czech Republic
_______________________________________________
ruby-sig mailing list -- ruby-***@lists.fedoraproject.org
To unsubscribe send an email to ruby-sig-***@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/ruby-***@lists.fedoraproject.org
Do not reply to spam on the list, report
Jun Aruga
4 years ago
Permalink
...
For this issue, I actually found it by the following way.

```
$ rpm2cpio ruby-libs-3.0.0-146.fc35.x86_64.rpm | cpio -idmv

$ rpm2cpio rubygem-io-console-0.5.6-146.fc35.x86_64.rpm | cpio -idmv
...
cpio: ./usr/share/ruby/io not created: newer or same age version exists
...
```

The duplicated entry is only this entry. I checked it by the following script.

```
$ cat unpack.sh
#!/bin/bash

set -ex

for RPM_FILE in *.rpm; do
rpm2cpio "${RPM_FILE}" | cpio -idmv
done
```

I opened the ticket for rpmlint to ask them to implement to detect the
duplicated entries here.
https://github.com/rpm-software-management/rpmlint/issues/613


What do you think about these errors/warnings I reported on the email?
I am happy to send PR to fix it.

--
Jun | He - His - Him
_______________________________________________
ruby-sig mailing list -- ruby-***@lists.fedoraproject.org
To unsubscribe send an email to ruby-sig-***@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/ruby-***@lists.fedoraproject.org
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructu
Jun Aruga
4 years ago
Permalink
Pavel, thanks for your comment.
I will comment later.

Now I just inform you that I sent PR related to the 2 warnings in the
errors/warnings I mentioned.
https://src.fedoraproject.org/rpms/ruby/pull-request/78

--
Jun | He - His - Him
_______________________________________________
ruby-sig mailing list -- ruby-***@lists.fedoraproject.org
To unsubscribe send an email to ruby-sig-***@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/ruby-***@lists.fedoraproject.org
Do not reply to spam on the list, report it: https://pagure.io/fedo
Loading...