I'm developing an RPM, with a %post scriptlet that invokes some
classic UNIX commands (grep, sed, etc.).
I can build my RPM, but I found that the commands in my %post
scriptlet weren't showing up as automatically-found dependancies
for my RPM. (rpm -q --requires -p foo-1-1.i386.rpm)
So, I went ahead and expressly added them as requirements:
And _still_ the requirements aren't being reported by the RPM.
This is under CentOS 5.1. I reviewed my build of the RPM under
RHEL4 update 5, and it had the same symptoms. The other umpteen
dozens of RPMs built over the years seem to honor the 'Requires'
directives.
Has anyone seen this symptom before? I have no idea how to diagnose
this, other than instrumenting python code...
FWIW, I haven't redefined any macros, or anything...
--
Brian Reichert <reichert@numachi.com>
55 Crystal Ave. #286 Daytime number: (603) 434-6842
Derry NH 03038-1725 USA BSD admin/developer at large
_______________________________________________
Rpm-list mailing list
Rpm-list@redhat.com
https://www.redhat.com/mailman/listinfo/rpm-list
04-04-2008, 11:02 PM
"Jeff Johnson"
'Requires' directive in spec file ignored?
On Fri, Apr 4, 2008 at 6:36 PM, Brian Reichert <reichert@numachi.com> wrote:
I've never seen this one before:
I'm developing an RPM, with a %post scriptlet that invokes some
classic UNIX commands (grep, sed, etc.).
I can build my RPM, but I found that the commands in my %post
scriptlet weren't showing up as automatically-found dependancies
for my RPM. *(rpm -q --requires -p foo-1-1.i386.rpm)
So, I went ahead and expressly added them as requirements:
*Requires: /sbin/chkconfig
*Requires: /bin/cp
*Requires: /bin/grep
*Requires: /sbin/service
*Requires: /sbin/ldconfig
Smells like a goofy spec file syntax problem, like unclosed macro, or Requiresddly placed.
Post a link to your spec file, perhaps I can spot the problem.
73 de Jeff*
_______________________________________________
Rpm-list mailing list
Rpm-list@redhat.com
https://www.redhat.com/mailman/listinfo/rpm-list
04-07-2008, 03:00 PM
Brian Reichert
'Requires' directive in spec file ignored?
On Fri, Apr 04, 2008 at 07:02:53PM -0400, Jeff Johnson wrote:
> On Fri, Apr 4, 2008 at 6:36 PM, Brian Reichert <reichert@numachi.com> wrote:
> > So, I went ahead and expressly added them as requirements:
> >
> > Requires: /sbin/chkconfig
> > Requires: /bin/cp
> > Requires: /bin/grep
> > Requires: /sbin/service
> > Requires: /sbin/ldconfig
> >
>
> Smells like a goofy spec file syntax problem, like unclosed macro, or
> Requires:
> oddly placed.
>
> Post a link to your spec file, perhaps I can spot the problem.
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@redhat.com
> https://www.redhat.com/mailman/listinfo/rpm-list
--
Brian Reichert <reichert@numachi.com>
55 Crystal Ave. #286 Daytime number: (603) 434-6842
Derry NH 03038-1725 USA BSD admin/developer at large
_______________________________________________
Rpm-list mailing list
Rpm-list@redhat.com
https://www.redhat.com/mailman/listinfo/rpm-list
04-07-2008, 05:00 PM
"Jeff Johnson"
'Requires' directive in spec file ignored?
The spec file you posted has this:
Summary: mDNSResponder
Name: mDNSResponder
Version: %{version}
Release: %{release}The "Version: %{version}" causes a macro recursion becauseafter Version: is parsed, one ends up defining version to itself.
Basically same as doing
** *%define version %{version}which can never be evaluated.
After commenting out all the elements in, I see dependencies:
$ rpm -qp mDNSResponder-1.2-3.*.rpm --requires
/bin/sh/bin/sh/bin/sh/sbin/ldconfig/sbin/ldconfigexecutable(chkconfig)executable(chkconfig) executable(cp)executable(cp)
executable(grep)executable(sed)executable(service) executable(service)
73 de Jeff
_______________________________________________
Rpm-list mailing list
Rpm-list@redhat.com
https://www.redhat.com/mailman/listinfo/rpm-list
04-07-2008, 05:40 PM
Rex Dieter
'Requires' directive in spec file ignored?
Brian Reichert wrote:
> Hey, if you're willing to look:
> http://www.numachi.com/~reichert/misc/mDNSResponder.spec
neat. Here's a mDNSResponder.spec that I worked on for fedora/redhat
awhile back:
http://kdeforge.unl.edu/apt/kde-redhat/SOURCES/mDNSResponder/
(never got enough round-tuits to finish submitting it)
-- Rex
_______________________________________________
Rpm-list mailing list
Rpm-list@redhat.com
https://www.redhat.com/mailman/listinfo/rpm-list
04-07-2008, 06:25 PM
Brian Reichert
'Requires' directive in spec file ignored?
On Mon, Apr 07, 2008 at 01:00:11PM -0400, Jeff Johnson wrote:
> Basically same as doing
> %define version %{version}
> which can never be evaluated.
I supply the macro in an external file, so I don't see that complaint.
> After commenting out all the elements in, I see dependencies:
--
Brian Reichert <reichert@numachi.com>
55 Crystal Ave. #286 Daytime number: (603) 434-6842
Derry NH 03038-1725 USA BSD admin/developer at large
_______________________________________________
Rpm-list mailing list
Rpm-list@redhat.com
https://www.redhat.com/mailman/listinfo/rpm-list
04-07-2008, 06:34 PM
Brian Reichert
'Requires' directive in spec file ignored?
On Mon, Apr 07, 2008 at 12:40:32PM -0500, Rex Dieter wrote:
> Brian Reichert wrote:
>
> > Hey, if you're willing to look:
> > http://www.numachi.com/~reichert/misc/mDNSResponder.spec
>
> neat. Here's a mDNSResponder.spec that I worked on for fedora/redhat
> awhile back:
> http://kdeforge.unl.edu/apt/kde-redhat/SOURCES/mDNSResponder/
>
> (never got enough round-tuits to finish submitting it)
--
Brian Reichert <reichert@numachi.com>
55 Crystal Ave. #286 Daytime number: (603) 434-6842
Derry NH 03038-1725 USA BSD admin/developer at large
_______________________________________________
Rpm-list mailing list
Rpm-list@redhat.com
https://www.redhat.com/mailman/listinfo/rpm-list
04-07-2008, 06:43 PM
Brian Reichert
'Requires' directive in spec file ignored?
On Mon, Apr 07, 2008 at 01:00:11PM -0400, Jeff Johnson wrote:
> The spec file you posted has this:
>
> Summary: mDNSResponder
> Name: mDNSResponder
> Version: %{version}
> Release: %{release}
>
> The "Version: %{version}" causes a macro recursion because
> after Version: is parsed, one ends up defining version to itself.
>
> Basically same as doing
> %define version %{version}
> which can never be evaluated.
I elected to hard-code the version info, to test your hypothesis, but the
oucome was the same. :/
> 73 de Jeff
--
Brian Reichert <reichert@numachi.com>
55 Crystal Ave. #286 Daytime number: (603) 434-6842
Derry NH 03038-1725 USA BSD admin/developer at large
_______________________________________________
Rpm-list mailing list
Rpm-list@redhat.com
https://www.redhat.com/mailman/listinfo/rpm-list
04-07-2008, 08:05 PM
Tim Mooney
'Requires' directive in spec file ignored?
In regard to: Re: 'Requires' directive in spec file ignored?, Brian...:
On Mon, Apr 07, 2008 at 01:00:11PM -0400, Jeff Johnson wrote:
Basically same as doing
%define version %{version}
which can never be evaluated.
I supply the macro in an external file, so I don't see that complaint.
After commenting out all the elements in, I see dependencies:
Assuming rpm is using executabledeps.sh to actually generate the
dependencies in the executable() namespace, then the first version of
"bash" in your PATH must support the --rpm-requires hack. Does your
version of bash support that?
Tim
--
Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J6, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
_______________________________________________
Rpm-list mailing list
Rpm-list@redhat.com
https://www.redhat.com/mailman/listinfo/rpm-list
04-07-2008, 10:36 PM
Brian Reichert
'Requires' directive in spec file ignored?
On Mon, Apr 07, 2008 at 03:05:48PM -0500, Tim Mooney wrote:
> Assuming rpm is using executabledeps.sh to actually generate the
> dependencies in the executable() namespace, then the first version of
> "bash" in your PATH must support the --rpm-requires hack. Does your
> version of bash support that?