On 10/03/16 16:20, Stephen Gallagher wrote:

I've just pushed a new update to the repository that also includes Node.js 5.8.0
(released yesterday). Of course, since the minor version jumped, binary packages
may need a rebuild.

If we're going to look into supporting the rapidly-updating 5.x branch in F25, I
wonder if we should modify the automatic dependency-generation to do:
Requires: nodejs(abi) >= %{abi_major}.%{abi_minor}
Conflicts: nodejs(abi) >= %{abi_major+1}

Of course, I have no idea how this automatic dependency is created, so I don't
know how complicated it will be to fix. But I think we have to, since 5.x seems
to bump minor versions at least once every couple months. Assuming it's properly
following semantic versioning, the rebuild shouldn't actually be needed unless
we bump the major version.

Oh it's easy to do - the nodejs spec file creates nodejs_native.req in the %install section with those rules.

Why makes the second conflicts though? Why not:

Requires: nodejs(abi) >= %{abi_major}.%{abi_minor}
Requires: nodejs(abi) < %{abi_major+1}

Which is what the dependency generator would do for a caret dependency on a node module.

Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/
_______________________________________________
nodejs mailing list
nodejs@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/nodejs@lists.fedoraproject.org

Reply via email to