2011/3/16 Vincent Carmona <[email protected]>: > 2011/3/12 Vincent Carmona <[email protected]>: >> Hi. >> >> I am trying to package ruby-libnotify for my personnal use for now. >> >> I use the 3.0 (quilt) format and cdbs. I add a patch to remove >> rubygems use in extconf.rb but it doesn't seems to be applied in >> pbuilder or by debuild command. >> >> $ LANG=C debuild -S >> dpkg-buildpackage -rfakeroot -d -us -uc -S >> dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g >> -O2 >> dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): >> dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g >> -O2 >> dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g >> -O2 >> dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: >> vendor): -Wl,-Bsymbolic-functions >> dpkg-buildpackage: source package libnotify-ruby1.8 >> dpkg-buildpackage: source version 0.4.1.1-0ubuntu0~zik1natty >> dpkg-buildpackage: source changed by Vincent Carmona <[email protected]> >> dpkg-source --before-build vargolo-ruby-libnotify-d284621 >> dpkg-source: warning: patches have not been applied, applying them now >> (use --no-preparation to override) >> dpkg-source: info: applying rubygems.patch >> fakeroot debian/rules clean >> test -x debian/rules >> dh_testroot >> dh_clean >> dh_clean: Compatibility levels before 5 are deprecated. >> /usr/bin/make -f debian/rules reverse-config >> make[1]: Entering directory >> `/home/instable/Desktop/zik/notifyppa/vargolo-ruby-libnotify-d284621' >> make[1]: Nothing to be done for `reverse-config'. >> make[1]: Leaving directory >> `/home/instable/Desktop/zik/notifyppa/vargolo-ruby-libnotify-d284621' >> if [ -d "." ]; then \ >> cd . && >> QUILT_PATCHES=/home/instable/Desktop/zik/notifyppa/vargolo-ruby-libnotify-d284621/debian/patches >> quilt --quiltrc /dev/null pop -a -R || test $? = 2 ; \ >> fi >> Removing patch rubygems.patch >> Restoring ext/extconf.rb >> >> No patches applied >> rm -rf ./.pc >> rm -f debian/stamp-patch* >> if [ ! -L debian-setup.rb ] ; then if [ -f debian-setup.rb ] ; then mv >> debian-setup.rb debian-setup.rb.moved_away_by_debian_build ; fi ; ln >> -s /usr/lib/ruby/1.8/setup.rb debian-setup.rb ; fi >> /usr/bin/ruby debian-setup.rb config --installdirs=std >> ---> lib >> <--- lib >> ---> ext >> /usr/bin/ruby1.8 >> /home/instable/Desktop/zik/notifyppa/vargolo-ruby-libnotify-d284621/ext/extconf.rb >> /home/instable/Desktop/zik/notifyppa/vargolo-ruby-libnotify-d284621/ext/extconf.rb:8:in >> `require': no such file to load -- rubygems (LoadError) >> from >> /home/instable/Desktop/zik/notifyppa/vargolo-ruby-libnotify-d284621/ext/extconf.rb:8 >> debian-setup.rb:656:in `command': system("/usr/bin/ruby1.8" >> "/home/instable/Desktop/zik/notifyppa/vargolo-ruby-libnotify-d284621/ext/extconf.rb") >> failed (RuntimeError) >> from debian-setup.rb:661:in `ruby' >> from debian-setup.rb:1239:in `extconf' >> from debian-setup.rb:1231:in `config_dir_ext' >> from debian-setup.rb:1533:in `__send__' >> from debian-setup.rb:1533:in `traverse' >> from debian-setup.rb:1550:in `dive_into' >> from debian-setup.rb:1531:in `traverse' >> from debian-setup.rb:1525:in `exec_task_traverse' >> from debian-setup.rb:1520:in `each' >> from debian-setup.rb:1520:in `exec_task_traverse' >> from debian-setup.rb:1224:in `exec_config' >> from debian-setup.rb:992:in `exec_config' >> from debian-setup.rb:827:in `__send__' >> from debian-setup.rb:827:in `invoke' >> from debian-setup.rb:774:in `invoke' >> from debian-setup.rb:1579 >> make: *** [clean] Error 1 >> dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status >> 2 >> debuild: fatal error at line 1337: >> dpkg-buildpackage -rfakeroot -d -us -uc -S failed >> >> >> >> >> my d/rules: >> #!/usr/bin/make -f >> >> include /usr/share/cdbs/1/rules/debhelper.mk >> include /usr/share/cdbs/1/rules/patchsys-quilt.mk >> include /usr/share/ruby-pkg-tools/1/class/ruby-setup-rb.mk >> >> >> I thought everything (3.0 format) will be magic. What am I missing ? >> >> > The packaging files can be seen at > https://launchpad.net/~vinc-mai/+archive/zik/+files/libnotify-ruby1.8_0.4.1.1-0ubuntu0%7Ezik1natty.debian.tar.gz > . > Any help ? > >> -- >> Vincent Carmona >> > > > > -- > Vincent Carmona >
I have resolved my problem. Quilt apply patches after building process which seems a good thing. My intended was to drop all use of rubygems at runtime. In upstream sources rubygems is needed at building time so I add rubygems to build-depends. -- Vincent Carmona -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

