Bug 253469 - Review Request: opyum - Offline package installation and update tools
Summary: Review Request: opyum - Offline package installation and update tools
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Parag AN(पराग)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-08-20 03:11 UTC by Debarshi Ray
Modified: 2007-11-30 22:12 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-10-14 20:17:39 UTC
Type: ---
Embargoed:
panemade: fedora-review+
kevin: fedora-cvs+


Attachments (Terms of Use)

Description Debarshi Ray 2007-08-20 03:11:33 UTC
Spec URL: http://rishi.fedorapeople.org/opyum.spec
SRPM URL: http://rishi.fedorapeople.org/opyum-0.0.2-1.fc8.src.rpm

Description:
Opyum (pronounced 'opium') provides a set of tools to enable users, who do not
have a good network (eg., Internet) connection at their ready disposal, to
easily install new packages or update existing ones through the conventional
package management system available in Fedora.

Comment 1 Parag AN(पराग) 2007-08-20 04:47:33 UTC
mock build failed with following error.

checking python module: pirut... no
configure: error: failed to find required module pirut
error: Bad exit status from /var/tmp/rpm-tmp.23798 (%build)


Comment 2 Debarshi Ray 2007-08-22 21:24:10 UTC
Trying to check for Pirut in the configure script using
$ $PYTHON -c "import pirut"
gives the following traceback on Koji. The absence of a running X server causes
the issue, since the pirut modules eventually pull in gtk too.

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 26, in <module>
    import gtk
  File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 76, in
<module>
    _init()
  File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 64, in _init
    _gtk.init_check()
RuntimeError: could not open display

It is important to have the check in the upstream tarball, since Pirut is a
critical dependency for Opyum and anybody building from the release tarball
should be made aware of that. However, I am going to patch out the check for the
RPM package since Pirut is already mentioned as a Requires and BuildRequires.

Comment 3 Debarshi Ray 2007-08-22 22:29:02 UTC
Spec: http://rishi.fedorapeople.org/opyum.spec
SRPM: http://rishi.fedorapeople.org/opyum-0.0.2-2.fc8.src.rpm

Here is the new pair of Spec & SRPM.

Comment 4 Parag AN(पराग) 2007-08-28 06:13:20 UTC
Is this issue discussed on fedora-devel? Not understand why we need to patch
pirut dependency? Why can't configure successfully detects it?

Comment 5 Debarshi Ray 2007-08-28 13:21:02 UTC
I was told in #fedora-devel by ivazquez that patching out the check for pirut in
configure would be fine since the Requires and BuildRequires are taking care of
that.

The configure file basically does:
$ $PYTHON -c "import pirut"
...to check for the availability of the Pirut modules. However importing the
Pirut  modules also imports gtk. Importing Gtk needs DISPLAY to be set and a
running X. Although one can take care of DISPLAY, I do not think we have X
running on the Koji build servers. Hence the error.

Comment 6 Stewart Adam 2007-08-28 14:39:10 UTC
I've never created a configure script before but from what I understand it's a
bash script... this would work:

python_sitelib=$(python -c "from distutils.sysconfig import get_python_lib;
print get_python_lib()")
echo -n "Checking for pirut... "
if [ -d "$python_sitelib/pirut" ];then
  echo "Yes, $python_sitelib/pirut"
else
  echo 'No'
fi

Comment 7 Parag AN(पराग) 2007-08-29 05:41:35 UTC
remove python as BR in spec file

Comment 8 Parag AN(पराग) 2007-08-30 03:57:04 UTC
ok let it be as it is 
BR: python

Review:
+ package builds in mock (development i386).
+ rpmlint is silent for SRPM and for RPMs.
+ source files match upstream.
299873e5d0b4d762a261edb6b9bc62e6  opyum-0.0.2.tar.gz
+ package meets naming and packaging guidelines.
+ specfile is properly named, is cleanly written
+ Spec file is written in American English.
+ Spec file is legible.
+ dist tag is present.
+ build root is correct.
+ license is open source-compatible.
+ License text is included in package.
+ no -doc subpackage.
+ BuildRequires are proper.
+ %clean is present.
+ package installed properly.
+ Macro use appears rather consistent.
+ Package contains code, not content.
+ no static libraries.
+ no .pc files are present.
+ no -devel subpackage exists.
+ no .la files.
+ no translations are available.
+ Does owns the directories it creates.
+ no duplicates in %files.
+ file permissions are appropriate.
+ gtk-update-icon-cache scriptlets are used.
+ Desktop files handled correctly.
+ Requires: /bin/bash /usr/bin/python hicolor-icon-theme pirut >= 1.3.11
+ GUI APP.
APPROVED.


Comment 9 Debarshi Ray 2007-08-30 07:58:16 UTC
New Package CVS Request
=======================
Package Name: opyum
Short Description: Offline package installation and update tools.
Owners: debarshi.ray
Branches: FC-6, F-7
InitialCC: 
Cvsextras Commits: no


Comment 10 Jens Petersen 2007-08-31 00:48:23 UTC
Please re-request using your FAS username in the Owners field.

Comment 11 Debarshi Ray 2007-08-31 06:13:14 UTC
New Package CVS Request
=======================
Package Name: opyum
Short Description: Offline package installation and update tools.
Owners: rishi
Branches: FC-6, F-7
InitialCC: 
Cvsextras Commits: no



Comment 12 Kevin Fenzi 2007-08-31 17:06:05 UTC
cvs done.

Comment 13 Parag AN(पराग) 2007-09-19 06:58:35 UTC
is this built already? If yes then you can close this review request.

Comment 14 Debarshi Ray 2007-09-25 05:44:44 UTC
I have not built it due to some problems with my workstation. I will soon
release version 0.0.3 and close this bug after building it.

Comment 15 Toshio Ernie Kuratomi 2007-10-13 17:11:15 UTC
ping?

The branch has been created but the source package still hasn't been imported or
built.

Comment 16 Debarshi Ray 2007-10-14 20:17:39 UTC
Imported and built for Rawhide.


Note You need to log in before you can comment on or make changes to this bug.