Bug 225641 - Merge Review: chkconfig
Summary: Merge Review: chkconfig
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ruben Kerkhof
QA Contact: Fedora Package Reviews List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-01-31 17:49 UTC by Nobody's working on this, feel free to take it
Modified: 2012-12-23 00:35 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-06-17 06:41:40 UTC
Type: ---
Embargoed:
ruben: fedora-review+


Attachments (Terms of Use)
allow to override all the paths (5.47 KB, patch)
2007-02-05 23:21 UTC, Patrice Dumas
no flags Details | Diff
updated patch (6.37 KB, patch)
2007-02-05 23:29 UTC, Patrice Dumas
no flags Details | Diff

Description Nobody's working on this, feel free to take it 2007-01-31 17:49:35 UTC
Fedora Merge Review: chkconfig

http://cvs.fedora.redhat.com/viewcvs/devel/chkconfig/
Initial Owner: notting

Comment 1 Ruben Kerkhof 2007-02-03 21:49:34 UTC
* RPM name is OK
* This is the latest version
* Builds fine in mock
* File list of chkconfig looks OK
* File list of ntsysv looks OK

Needs work:
* BuildRoot should be %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  (wiki: PackagingGuidelines#BuildRoot)
* Missing SMP flags. If it doesn't build with it, please add a comment
  (wiki: PackagingGuidelines#parallelmake)
* Spec file: some paths are not replaced with RPM macros
  (wiki: QAChecklist item 7)

Minor:
* Duplicate BuildRequires: newt (by newt-devel)

Notes:
* Please use {?dist} in the Release tag
* I'm not sure what BuildPrereq does, but can you use BuildReq?
* Can you use make DESTDIR instead of make instroot
* Replace /etc with %{_sysconfdir} and /usr/sbin with %{_sbindir}

rpmlint output is not silent:

[ruben@odin chkconfig]$ cat rpmlint-srpm.log 
W: chkconfig no-url-tag
W: chkconfig buildprereq-use newt newt-devel gettext
W: chkconfig macro-in-%changelog pre
W: chkconfig macro-in-%changelog pre


Comment 2 Bill Nottingham 2007-02-04 04:49:11 UTC
(In reply to comment #1)
> Needs work:
> * BuildRoot should be
%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Fixed upstream.

>   (wiki: PackagingGuidelines#BuildRoot)
> * Missing SMP flags. If it doesn't build with it, please add a comment

Sure! Although, there's only 4 source files. Can't speed it up
*that* much. :)

>   (wiki: PackagingGuidelines#parallelmake)
> * Spec file: some paths are not replaced with RPM macros

/etc, /usr/sbin are compiled in. Having it as a macro can't really help.

> Minor:
> * Duplicate BuildRequires: newt (by newt-devel)

Fixed.

> Notes:
> * Please use {?dist} in the Release tag

It's not really ever rebased between releases.

> * I'm not sure what BuildPrereq does, but can you use BuildReq?

It's a synonym. Switched, though.

> * Can you use make DESTDIR instead of make instroot

Fixed upstream.

> * Replace /etc with %{_sysconfdir} and /usr/sbin with %{_sbindir}

See above.

> [ruben@odin chkconfig]$ cat rpmlint-srpm.log 
> W: chkconfig no-url-tag

No URL to have.

> W: chkconfig buildprereq-use newt newt-devel gettext
> W: chkconfig macro-in-%changelog pre
> W: chkconfig macro-in-%changelog pre

Fixed.

Uploaded spec @ http://people.redhat.com/notting/review/



Comment 3 Ruben Kerkhof 2007-02-04 11:27:19 UTC
Hi Bill,

I just tried a mock build from the spec at http://people.redhat.com/notting/review/, and it failed.

+ make DESTDIR=/var/tmp/chkconfig-1.3.32-1-root-mockbuild MANDIR=/usr/share/man install
[ -d //sbin ] || mkdir -p //sbin
[ -d //usr/sbin ] || mkdir -p //usr/sbin
[ -d //usr/share/man ] || mkdir -p //usr/share/man
[ -d //usr/share/man/man8 ] || mkdir -p //usr/share/man/man8
[ -d //usr/share/man/man5 ] || mkdir -p //usr/share/man/man5
[ -d //var/lib/alternatives ] || mkdir -p -m 755 //var/lib/alternatives
[ -d //etc/alternatives ] || mkdir -p -m 755 //etc/alternatives
install -m 755 chkconfig //sbin/chkconfig
install: cannot remove `//sbin/chkconfig': Permission denied
make: *** [install] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.20880 (%install)

So we can either stick with instroot, or replace instroot with DESTDIR in the Makefile.
One issue is that DESTDIR is not passed through to the Makefile in the po subdirectory.
Please let me know what you think.

Ok, in reply to comment #2:
> /etc, /usr/sbin are compiled in. Having it as a macro can't really help.

They're defined as variables in the makefile.
You could use make DESTDIR=$RPM_BUILDROOT ALTDIR=%{_sysconfdir}/alternatives etc.. but I'm not 
sure it's worth the effort.  Unless we're planning on moving /etc to another directory in FC-8 ;-)

> It's not really ever rebased between releases.

Ok

> No URL to have.

Ok, the URL can be added after the merge, when the tarball is available from the Fedora repo.

Thanks,

Ruben



Comment 4 Patrice Dumas 2007-02-04 12:48:16 UTC
(In reply to comment #2)

> /etc, /usr/sbin are compiled in. Having it as a macro can't really help.

This shouldn't be so. Can't that be corrected?

Comment 5 Bill Nottingham 2007-02-04 18:19:08 UTC
(In reply to comment #4)
> (In reply to comment #2)
> 
> > /etc, /usr/sbin are compiled in. Having it as a macro can't really help.
> 
> This shouldn't be so. Can't that be corrected?

I'm not really planning to port the package to autoconf just so /etc could be
moved...

Comment 6 Ruben Kerkhof 2007-02-04 19:02:27 UTC
Bill, have you decided yet if you go with DESTDIR or instroot?
It's not a blocker but if you change instroot to DESTDIR you have to adjust some things to let it build in a 
chroot.


Comment 7 Patrice Dumas 2007-02-04 22:40:38 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > (In reply to comment #2)
> > 
> > > /etc, /usr/sbin are compiled in. Having it as a macro can't really help.
> > 
> > This shouldn't be so. Can't that be corrected?
> 
> I'm not really planning to port the package to autoconf just so /etc could be
> moved...

This isn't needed. Carefully chosen make variables overriden when
running make can do the same.

Comment 8 Bill Nottingham 2007-02-05 20:04:10 UTC
> It's not a blocker but if you change instroot to DESTDIR you have to adjust
some things to let it build in a 
> chroot.

As stated, it's already fixed in CVS (upstream).


Comment 9 Bill Nottingham 2007-02-05 20:12:15 UTC
(In reply to comment #7)
> This isn't needed. Carefully chosen make variables overriden when
> running make can do the same.

For /usr/sbin, yes, and that I've fixed in CVS. I have no intention of replacing
/etc with a macro, as that really *is not changable*. It's a fixed path in the
LSB, and it's compiled into the binary.


Comment 10 Ruben Kerkhof 2007-02-05 20:58:53 UTC
(In reply to comment #8)

Would it be possible to upload the new spec?
It's not available at http://cvs.fedora.redhat.com/viewcvs/devel/chkconfig/ (yet)

Comment 11 Bill Nottingham 2007-02-05 22:14:46 UTC
Spec and tarball uploaded.

Comment 12 Bill Nottingham 2007-02-05 22:15:55 UTC
Whoops. Spec and tarball uploaded to http://people.redhat.com/notting/review/. :)



Comment 13 Patrice Dumas 2007-02-05 23:21:57 UTC
Created attachment 147417 [details]
allow to override all the paths

I think that it is important to be able to override the
paths when testing a software, such that it is possible
to do things without messing up the system, or without
administrator rights.

Comment 14 Patrice Dumas 2007-02-05 23:29:33 UTC
Created attachment 147418 [details]
updated patch

The previous one was wrong...

Comment 15 Patrice Dumas 2007-02-05 23:34:56 UTC
The dependency on chkconfig should certainly be fully versionned:

Requires: chkconfig = %{version}-%{release}

Comment 16 Bill Nottingham 2007-02-06 16:29:51 UTC
That patch is an issue for upstream, not review.

Release added to requires, although if the translations break in an incompatible
way between a -1 and -2, we've got bigger issues. (That's why the requires is
there.)

Comment 17 Ruben Kerkhof 2007-02-06 21:28:02 UTC
I had another look from the spec included in http://people.redhat.com/notting/review/
chkconfig-1.3.33.tar.gz , and it looks ok to me.

Can you please upload your new tarball with the fully versioned Requires?

Patrice is right, it is a MUST, althought the guidelines say "In the vast majority of cases". But I guess that's 
why it's called a guideline.

Comment 18 Bill Nottingham 2007-02-07 02:44:48 UTC
Uploaded.

Comment 19 Ruben Kerkhof 2007-02-07 20:50:23 UTC
Thanks.

I don't see any blockers, so this package is approved.


Comment 20 Ruben Kerkhof 2007-03-18 10:05:33 UTC
Assigning ticket to myself as per http://fedoraproject.org/wiki/PackageReviewProcess

Comment 21 Maurizio 2012-12-23 00:35:36 UTC
cvs fails unrecognized


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