Bug 733615 - pkg build dependency check does not work
Summary: pkg build dependency check does not work
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: octave
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rakesh Pandit
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-26 09:34 UTC by Thomas Sailer
Modified: 2013-01-12 00:18 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-12 00:18:52 UTC


Attachments (Terms of Use)

Description Thomas Sailer 2011-08-26 09:34:56 UTC
Description of problem:

When trying to build:
http://sailer.fedorapeople.org/octave-optim-1.0.16-2.fc15.src.rpm

I get:
error: the following dependencies where unsatisfied:
   optim needs miscellaneous >= 1.0.11
 optim needs struct >= 1.0.9

Even though:
octave-devel-3.4.2-2.fc17.x86_64
octave-miscellaneous-1.0.11-3.fc17.x86_64
octave-struct-1.0.9-4.fc17.x86_64

are installed.

The octave-optim spec file uses the RPM macro %octave_pkg_build, which expands to:
octave -H -q --no-site-file --eval 'pkg build '\''-verbose'\'' /var/tmp/octave-optim-1.0.16-2.fc17.x86_64 /home/sailer/rpmbuild/BUILD/optim-1.0.16'


Version-Release number of selected component (if applicable):
octave-3.4.2-2.fc17.x86_64
(though this bug is not specific to rawhide, it's reproducible on F15 as well)

How reproducible:
always

Steps to Reproduce:
1.wget http://sailer.fedorapeople.org/octave-optim-1.0.16-2.fc15.src.rpm
2.rpmbuild --rebuild octave-optim-1.0.16-2.fc15.src.rpm
  
Actual results:
error: the following dependencies where unsatisfied:
   optim needs miscellaneous >= 1.0.11
 optim needs struct >= 1.0.9


Expected results:
successfully built octave-optim binary package

Comment 1 Orion Poplawski 2011-08-29 16:17:06 UTC
Works fine for me with:

octave-3.4.2-2.fc15.i686
octave-devel-3.4.2-2.fc15.i686
octave-miscellaneous-1.0.11-3.fc15.i686
octave-struct-1.0.9-5.fc15.i686

Rawhide scratch build http://koji.fedoraproject.org/koji/taskinfo?taskID=3309487 built fine.  F15 build roots might not be up to date at the moment.  Should be once the recent octave updates are pushed to stable which should be soon.

Comment 2 Susi Lehtola 2011-08-29 16:54:37 UTC
I am 99% sure I commented on this issue and closed this yesterday. The problem was that I had accidentally done a buildroot override for octave-3.4.2-1.fc1{5,6} instead of octave-3.4.2-2.fc1{5,6}.

So, even though octave-3.4.2-2.fc16 was already in F16 stable, the buildroot override took preference, and compiling extensions didn't work in 3.4.2-1.

I succcesfully rebuild octave-optim yesterday after correcting the override.

Comment 3 Thomas Sailer 2011-11-28 18:25:03 UTC
Still does not work for me, see
http://koji.fedoraproject.org/koji/taskinfo?taskID=3547338

Comment 4 Orion Poplawski 2012-12-22 04:17:29 UTC
I think I've found the problem.  In the pkg build code, install() is called is such a way a to be completely impossible to test the package deps yet it is being requested to do so.  For now I'm patching build() to call install and telling it not check deps.

As I understand it, upstream is looking to do a major rewrite of the pkg functions so hopefully this will get addressed.

Comment 5 Fedora Update System 2012-12-22 15:58:46 UTC
octave-3.6.3-2.fc18.2 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/octave-3.6.3-2.fc18.2

Comment 6 Fedora Update System 2012-12-22 21:09:07 UTC
Package octave-3.6.3-2.fc18.2:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing octave-3.6.3-2.fc18.2'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-20841/octave-3.6.3-2.fc18.2
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-01-12 00:18:54 UTC
octave-3.6.3-2.fc18.2 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


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