Hi,
yesterday we migrated devel:languages:ruby:backports [1] and
devel:languages:ruby [2] to the new ruby packaging scheme. my personal test
projects [3] show, that this gives us a working base. So now it is the
time to fix all the old cruft we have in d:l:r:e. Some packages havent
been touched since 5+years and still have the packaging schema from back
then.
Preparation
=============
# add devel:languages:ruby:backports as repository to your distro if you
# are not on factory:
$ zypper ar http://download.opensuse.org/repositories/devel:/languages:/ruby:/backports…
$ zypper in ruby2.0-rubygem-gem2rpm
#
# script attached. if you are not on 13.1 you have to update the path to
# the template.
#
$ mv g2r ~/bin/g2r ; chmod a+rx ~/bin/g2r
Fixing a single package
=========================
#
# Inside the package working copy
#
$ g2r
#
# check if we lost any important fields like license, buildrequires,
# custom descriptions.
#
$ osc diff
#
# if we lost anything copy gem2rpm.yml and move the lost bits into the
# config. Hint: the old spec file is still in the .osc directory.
#
$ cp /usr/share/doc/packages/ruby2.0-rubygem-gem2rpm/gem2rpm.yml .
# port port port
$ g2r
#
# changes entry
#
$ osc vc -m 'update to new packaging scheme and add gem2rpm.yml'
$ osc addremove
$ osc build ...
$ osc ci
Bonus Points
==============
If the gem2rpm.yml only holds the license for the package, file a pull
request upstream to add the license to the gemspec. rubygems also
recommends spdx format, which will make out life a lot easier. [4]
Known Issues
==============
For now please ignore build failures on SLE 11 SP3, if the symptoms are
"unpackaged files found". There is a bug in rpm which cuts off the
output generated by scripts in macros.
[1] https://build.opensuse.org/project/show/devel:languages:ruby:backports
[2] https://build.opensuse.org/project/show/devel:languages:ruby
[3] https://build.opensuse.org/project/monitor/home:darix:rubyhttps://build.opensuse.org/project/monitor/home:darix:apps
[4] http://guides.rubygems.org/specification-reference/#license
--
openSUSE - SUSE Linux is my linux
openSUSE is good for you
www.opensuse.org
Dear Ruby specialists,
For a while already, a few ruby packages in Factory/Tumbleweed are not
able to build (generally due to some packages changing to 'new'
packaging style, but not others).
The current list of packages is:
* rubygem-locale_rails
* rubygem-owncloud-admin
* rubygem-xmlhash
All of them being unresolvable.
not directly a ruby build failure, but still related:
puppet fails to resolve with: have choice for
rubygem(ruby:2.1.0:json_pure) >= 0 needed by rubygem-hiera:
ruby2.1-rubygem-json_pure-1_5 ruby2.1-rubygem-json_pure
It would be greatly appreciated to have those corrected soon.
Best regards
--
Dimstar / Dominique Leuenberger <dimstar(a)opensuse.org>
--
To unsubscribe, e-mail: opensuse-ruby+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-ruby+owner(a)opensuse.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi guys,
I linked rubygem-colorator from d:l:r:e to my home project, and
suddenly it is unresolvable for 12.3 due to rdoc.
Even if I copy the 'new prefers' lines from d:l:r:e's prjconf to my
prjconf, it still is unresolvable. Do I have to wait for some time
until the changes prjconf has an effect? I triggered a rebuild, but
still no change.
Any hints are highly appreciated.
Regards,
Johannes
- --
`But he knows your dad was right all along now about Voldemort being
back -´ `Dumbledore says people find it far easier to forgive others
for being wrong than being right,´ said Hermione.
(Ron and Hermione in Harry Potter and the Half-Blood Prince)
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/
iEYEARECAAYFAlRzjmUACgkQzi3gQ/xETbIzZgCeMLxJANL7l62a9z/ShJQoZQvI
BlIAoJUsvK1B2FqAJjRrqliXHgkbOCIE
=WPHl
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse-ruby+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-ruby+owner(a)opensuse.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
during my adventure to build jekyll and all of its dependencies (which
is nearly finished, two submit requests are still open), I had to
install and uninstall the packages a lot.
What I found were lots of errors:
> Removing ruby2.1-rubygem-sass-3.4.6-1.1 [.....done] Additional rpm
> output: warning: file /usr/bin/scss.ruby2.1: remove failed: No such
> file or directory warning: file /usr/bin/scss-3.4.6: remove failed:
> No such file or directory warning: file /usr/bin/scss: remove
> failed: No such file or directory warning: file
> /usr/bin/sass.ruby2.1: remove failed: No such file or directory
> warning: file /usr/bin/sass-convert.ruby2.1: remove failed: No such
> file or directory warning: file /usr/bin/sass-convert-3.4.6: remove
> failed: No such file or directory warning: file
> /usr/bin/sass-convert: remove failed: No such file or directory
> warning: file /usr/bin/sass-3.4.6: remove failed: No such file or
> directory warning: file /usr/bin/sass: remove failed: No such file
> or directory
I guess these are created by update-alternatives. How to fix these
errors? Is this a file for %ghost?
But, how to do this? There is no %files section in the spec, so I
figure this should go into gem2rpm.yml, maybe in the files section?
I see no errors during building the package, otherwise I would have
fixed the errors emitted by rpmlint.
Regards,
Johannes
- --
Coming back to where you started is not the same as never leaving.
(Terry Pratchett)
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/
iEYEARECAAYFAlRzhcEACgkQzi3gQ/xETbLU5QCeN/LTmlaoc1peCIf1OArP6whB
gpAAnRwcqbypUSkvkOIgZsmrrmrvnZRl
=cW/Z
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse-ruby+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-ruby+owner(a)opensuse.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi everyone,
as I wanted to try out Jekyll, I started to gather together the things
I would need to get it to build on the obs:
> https://build.opensuse.org/project/monitor/home:ojkastl_buildservice:Jekyll
As
>
I wanted to gain a little more insight into how to package
ruby-stuff and how obs works, I have not added d:l:r & Co as
additional repositories. Works out fine, after I found the
RUBY-OBS-Voodoo hidden in the prjconf of said repositories... ;-)
I got a version of Jekyll 2.5.0 that builds, at least for 13.1 and
13.2. I created it using gem2rpm and adjusted it so avoid as many
rpmlint warnings as I could.
But, two things remain, that puzzle me. OK, three.
1)
ruby-packaging-helper builds fine in both d:l:r and d:l:r:backports,
but is 'broken' in my home project. The error message is:
"missing repositories: devel:languages:ruby/openSUSE_Tumbleweed"
I looked into the package and found no hint on why this repository
should be needed at all.
Could it be because d:l:r is not build against Tumbleweed? And the
package is aggregated apparently?
2) Jekyll builds fine for 12.3 on my local machine (osc build --clean
openSUSE_12.3 x86_64), but fails on OBS.1. Could be because of the 62
warnings I get:
> This package contains a file whose path contains something that
> looks like an unexpanded macro; this is often the sign of a
> misspelling. Please check your specfile.
But I do not know on which line of the spec this happens and how to
avoid it. And if it is the reason for the error...
3)
Last but not least, if someone else wants to use the package, and I
wanted to get it into d:l:r:e, how to do that? Branch d:l:r:e, copypac
from my project, and SR?
Thanks in advance. And please, I just dived into the whole ruby thing,
I am sure I misread/oversaw some information hidden in the wikis. And
I was lost in darix' mail about the whole new packaging scheme... ;-)
Regards,
Johannes
- --
I think a nerd is a person who uses the telephone to talk to other
people about telephones. And a computer nerd therefore is somebody who
uses a computer in order to use a computer.
(Douglas Adams in "Triumph of the Nerds")
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/
iEYEARECAAYFAlRfqo0ACgkQzi3gQ/xETbLTtACfcRbssjQ9LqY22+o/rzhiKHxh
UgIAninzn50JtzsVPnweMSO+UySLJP9F
=8aO2
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse-ruby+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-ruby+owner(a)opensuse.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
during my adventures to build jekyll on the OBS I found one
dependency, that I can't satisfy:
> sudo zypper in ruby2.1-rubygem-pygments.rb Loading repository
> data... Reading installed packages... Resolving package
> dependencies...
>
> Problem: nothing provides /usr/bin/lasso9 needed by
> ruby2.1-rubygem-pygments.rb-0.6.0-3.1.x86_64 Solution 1: do not
> install ruby2.1-rubygem-pygments.rb-0.6.0-3.1.x86_64 Solution 2:
> break ruby2.1-rubygem-pygments.rb-0.6.0-3.1.x86_64 by ignoring some
> of its dependencies
>
> Choose from above solutions by number or cancel [1/2/c] (c):
The only gem I found that is called something with lasso is built, but
does not provide /usr/bin/lasso9.
I also tried to install pygments.rb from d:l:r:e, but also no solution.
I found one spec from fedora, where this is excluded:
%global __requires_exclude ^/usr/bin/lasso9$
I'll try and see if this works, but I find it ugly. And I wonder why
this has not been needed before, the package has not been created today...
Any hints will be highly appreciated!
Regards,
Johannes
- --
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety.
(Benjamin Franklin, 1759)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/
iEYEARECAAYFAlRjm+IACgkQzi3gQ/xETbKi1ACfd6pvba2flGU5Se3ijTiaAfEC
p30AoIbDZofWrY8TVJntxdVLJU/PixoJ
=lY9a
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse-ruby+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-ruby+owner(a)opensuse.org