Bug 473348

Summary: Review Request: drraw - Web based presentation front-end for RRDtool
Product: [Fedora] Fedora Reporter: Xavier Bachelot <xavier>
Component: Package ReviewAssignee: Rafael Aquini <aquini>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: aquini, cstpierr, fedora-package-review, notting, somlo
Target Milestone: ---Flags: aquini: fedora-review+
kevin: fedora-cvs+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: drraw-2.2-0.6.b2.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-22 00:34:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Xavier Bachelot 2008-11-27 21:58:26 UTC
Spec URL: http://www.bachelot.org/fedora/SPECS/drraw.spec
SRPM URL: http://www.bachelot.org/fedora/SRPMS/drraw-2.2-0.1.b1.fc8.src.rpm
Description: drraw is a simple web based presentation front-end for RRDtool that allows you to interactively build graphs of your own design. A graph definition can be turned into a template which may be applied to many Round Robin Database files. drraw specializes in providing an easy mean of displaying data stored with RRDtool and does not care about how the data is collected, making it a great complement to other RRDtool front-ends.

Comment 1 Chris St. Pierre 2008-12-23 05:18:25 UTC
This is not an official review.

1.  When applying patch #2, patch returns:

patch unexpectedly ends in middle of line

While this doesn't abort the build, the patch file should be fixed to not generate this error.

2.  This would fail to run with SELinux activated. You should fix the context of the CGI script, per http://fedoraproject.org/wiki/PackagingDrafts/SELinux.  Creating a drraw-selinux subpackage would probably be ideal in this case.

3.  Patch #2 appears to be a bug fix.  If you have filed a bug with the upstream source, you should reference this in your spec file; if not, you should file one and reference it.  See http://fedoraproject.org/wiki/Packaging/Guidelines#All_patches_should_have_an_upstream_bug_link_or_comment

Comment 2 Xavier Bachelot 2009-01-12 15:04:38 UTC
(In reply to comment #1)
> This is not an official review.
> 
> 1.  When applying patch #2, patch returns:
> 
> patch unexpectedly ends in middle of line
> 
I've removed this patch and replaced it with a patch that update to latest trunk. There's only a handful of changes since the last beta.

> While this doesn't abort the build, the patch file should be fixed to not
> generate this error.
> 
> 2.  This would fail to run with SELinux activated. You should fix the context
> of the CGI script, per http://fedoraproject.org/wiki/PackagingDrafts/SELinux. 
> Creating a drraw-selinux subpackage would probably be ideal in this case.
> 
I'm not SELinux proficient, but I'll try to take care of that. Thanks for the pointer. In your opinion, does such a requirement block the review or can we save that for later ?

> 3.  Patch #2 appears to be a bug fix.  If you have filed a bug with the
> upstream source, you should reference this in your spec file; if not, you
> should file one and reference it.  See
> http://fedoraproject.org/wiki/Packaging/Guidelines#All_patches_should_have_an_upstream_bug_link_or_comment

There's no bug tracker for this project. This was reported on their mailing list by a colleague of mine, as well as some patch for new features. Actually, even the svn repository is not public, but after a few mails with upstream, I now have read-only access.

I'll post new spec and srpms when the selinux issue is addressed. Thanks for the pre-review.

Comment 5 Xavier Bachelot 2009-04-03 10:32:27 UTC
New version, add a Group: tag to -selinux subpackage.

http://www.bachelot.org/fedora/SPECS/drraw.spec
http://www.bachelot.org/fedora/SRPMS/drraw-2.2-0.5.b2.fc10.src.rpm

Comment 6 Gabriel Somlo 2009-06-23 19:36:21 UTC
also not an official review (yet) :)

Installing your drraw-selinux subpackage didn't actually make any difference
for me (stock up-to-date f10 install, selinux set to enforcing).

The error logged to syslog advised me to run 'sealert -l something', which
in turn recommended that I run 'chcon -t bin_t /usr/share/drraw/drraw.cgi',
which fixed the issue (again, independently of whether the -selinux subpackage
was installed or not).

Digging through the selinux packaging wiki link from comment #1, I ended up at

http://www.redhat.com/archives/fedora-selinux-list/2006-April/msg00115.html

which seems to suggest that in your case a subpackage is unnecessary, and all
you really need is:

%post
chcon -t bin_t %{_datadir}/%{name}/drraw.cgi

and no need to worry about %postun at all. chcon is part of coreutils, so no need to drag in policycoreutils (probably no need for a -selinux subpackage at all).

Once your package gets accepted, file bug against selinux-policy and request that your package be handled (again, as per the wiki page in comment #1)

Comment 7 Rafael Aquini 2010-07-31 03:22:41 UTC
PING

It's been more than a year with no progress; This bug should be closed soon if
there is no response, shouldn't it?

Comment 8 Xavier Bachelot 2010-08-01 13:43:57 UTC
(In reply to comment #7)
> PING
> 
> It's been more than a year with no progress; This bug should be closed soon if
> there is no response, shouldn't it?    

The review is not assigned to anyone. The only reported issue for now is about the SE Linux stuff. I tried to blindly addressed it by adding a -selinux subpackage with what I think is the correct fix. However, I wasn't able to test it, that's why I said blindly. I don't know much when it comes to SE Linux, but I believe the proposed change in comment #6 is not the proper fix. If someone step up to the plate for the review, I'll setup a VM and take another look at the SE Linux issue, but I don't think this is a blocker.

Comment 9 Rafael Aquini 2010-08-02 16:54:28 UTC
Xavier,

I'm assigning this bug to me, and proceeding the formal review as follows.


Good:
* Package is named drraw which follows the upstream project name
* spec file naming follows package naming
* License in spec and sources is BSD which is open source
* License text included in the tarball so no need to include one.
* Spec is legible and American English
* http://web.taranis.org/drraw/dist/drraw-2.2b2.tar.gz
* Source matches upstream
* No locale files
* No shared libraries
* No bundled libraries
* Not relocatable
* No directories created unowned
* No duplicate files
* Default permissions are set
* Package is code
* No large documentation
* No %doc files are used at runtime
* No header files
* Not a GUI application
* Does not own files or directories from other packages
* All filenames are utf8


Needswork:
* Patch files should have upstream issues opened to look good for our purposes

* rpmlint complains about macros in comments:
   drraw.src:68: W: macro-in-comment %{SOURCE2}
   drraw.src:88: W: macro-in-comment %doc
   1 packages and 0 specfiles checked; 0 errors, 2 warnings.

* Minor adjusts needed to sections %post & %unpost at -selinux subpackage:

%post selinux
semanage fcontext -a -t httpd_sys_script_exec_t '%{_datadir}/%{name}(/.*)?' 2>/dev/null || :
semanage fcontext -a -t httpd_sys_rw_content_t '%{_localstatedir}/lib/%{name}(/.*)?' 2>/dev/null || :
restorecon -R %{_datadir}/%{name} %{_localstatedir}/lib/%{name} || :


%postun selinux
if [ $1 -eq 0 ] ; then
semanage fcontext -d -t httpd_sys_script_exec_t '%{_datadir}/%{name}(/.*)?' 2>/dev/null || :
semanage fcontext -d -t httpd_sys_rw_content_t '%{_localstatedir}/lib/%{name}(/.*)?' 2>/dev/null || :
fi

* Test builds in mock & koji

Comment 10 Rafael Aquini 2010-08-10 02:50:53 UTC
Xavier,

It's been a week since I've posted a formal review to this package of yours without having a single reply from you. Please, let me know if you are facing any difficulty to finish this work, and tell me how can I help you.

If you, for instance, just lost your interest in getting this work reviewed, let me aware as well.

Regards.

Comment 11 Xavier Bachelot 2010-08-16 14:10:55 UTC
(In reply to comment #10)
> Xavier,
> 
> It's been a week since I've posted a formal review to this package of yours
> without having a single reply from you. Please, let me know if you are facing
> any difficulty to finish this work, and tell me how can I help you.
> 
> If you, for instance, just lost your interest in getting this work reviewed,
> let me aware as well.
> 
> Regards.

Hi Rafael,

Thanks for the review. I'm just back from a 2 weeks vacation with no internet access. I've not lost interest and I'll submit a new srpm addressing the issues you outlined asap (probably before the end of the week).

Regards,
Xavier

Comment 12 Xavier Bachelot 2010-08-19 15:02:13 UTC
Rafael,
New package with your comments addressed :
http://www.bachelot.org/fedora/SPECS/drraw.spec
http://www.bachelot.org/fedora/SRPMS/drraw-2.2-0.6.b2.fc13.src.rpm

Thanks for the selinux fix (this is still untested though).

Comment 13 Rafael Aquini 2010-08-20 00:20:53 UTC
Xavier,

Tanks for replying promptly, and also thanks for addressing the NEEDSWORK suggested. As a result, drraw has been built correctly in mock and koji, and also it has installed and worked fine in my test system.

  http://koji.fedoraproject.org/koji/taskinfo?taskID=2413481 

IMHO this package looks OK, and I'm approving it.

Regards.


APPROVED

Comment 14 Xavier Bachelot 2010-08-20 10:44:53 UTC
New Package SCM Request
=======================
Package Name: drraw
Short Description: Web based presentation front-end for RRDtool
Owners: xavierb
Branches: f12 f13 f14 el5 el6
InitialCC: 


Thanks a lot for the review Rafael :-)

Comment 15 Rafael Aquini 2010-08-20 18:25:31 UTC
Xavier,

Please, consider including man pages for drraw before shipping it to testing, as it is a SHOULD item on review process.

Regards

Comment 16 Kevin Fenzi 2010-08-23 20:53:52 UTC
Git done (by process-git-requests).

Comment 17 Fedora Update System 2010-08-26 12:43:00 UTC
drraw-2.2-0.6.b2.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/drraw-2.2-0.6.b2.fc13

Comment 18 Fedora Update System 2010-08-26 12:43:05 UTC
drraw-2.2-0.6.b2.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/drraw-2.2-0.6.b2.fc12

Comment 19 Fedora Update System 2010-08-26 12:43:10 UTC
drraw-2.2-0.6.b2.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/drraw-2.2-0.6.b2.fc14

Comment 20 Fedora Update System 2010-08-26 18:35:24 UTC
drraw-2.2-0.6.b2.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update drraw'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/drraw-2.2-0.6.b2.fc14

Comment 21 Fedora Update System 2010-09-14 22:26:05 UTC
drraw-2.2-0.6.b2.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/drraw-2.2-0.6.b2.el5

Comment 22 Fedora Update System 2010-09-15 18:28:41 UTC
drraw-2.2-0.6.b2.el5 has been pushed to the Fedora EPEL 5 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update drraw'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/drraw-2.2-0.6.b2.el5

Comment 23 Fedora Update System 2010-09-22 00:33:54 UTC
drraw-2.2-0.6.b2.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 24 Fedora Update System 2010-09-22 00:35:58 UTC
drraw-2.2-0.6.b2.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 25 Fedora Update System 2010-09-23 12:54:18 UTC
drraw-2.2-0.6.b2.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 26 Fedora Update System 2010-09-30 17:08:21 UTC
drraw-2.2-0.6.b2.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.