* Re: [Comm] SEvents @ 2008-05-30 15:22 ` Michael Shigorin 0 siblings, 1 reply; 6+ messages in thread From: Michael Shigorin @ 2008-05-30 15:22 UTC (permalink / raw) To: ALT Linux Community general discussions On Fri, May 30, 2008 at 07:47:31PM +0500, Rinat Bikov wrote: > Написана система событийного программирования SEvents для > образовательных целей (ничего лишнего). > Собрана под альтлинукс. > https://sourceforge.net/projects/sevents/ > Просьба высказать замечания и предложения, особенно по > документации (man, README.RUS). На быстрый взгляд -- вроде читабельная; спек тоже аккуратный, но ему недостаёт прохода buildreq (из rpm-utils). У меня сходу не получилось сообразить, что ещё надо поставить, чтоб собиралось в хэшере. Напустите? -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <f725ea640805300830o4a5fb015l6062ca7d98040b9e@mail.gmail.com>]
* Re: [Comm] SEvents @ 2008-05-30 19:39 ` Michael Shigorin 2008-05-30 20:14 ` Eugene Ostapets 0 siblings, 2 replies; 6+ messages in thread From: Michael Shigorin @ 2008-05-30 19:39 UTC (permalink / raw) To: ALT Linux Community general discussions On Fri, May 30, 2008 at 08:30:11PM +0500, Rinat Bikov wrote: > > > Написана система событийного программирования SEvents для > > > образовательных целей (ничего лишнего). > > > Собрана под альтлинукс. > > > https://sourceforge.net/projects/sevents/ > > > Просьба высказать замечания и предложения, особенно по > > > документации (man, README.RUS). > > На быстрый взгляд -- вроде читабельная; спек тоже аккуратный, > > но ему недостаёт прохода buildreq (из rpm-utils). У меня > > сходу не получилось сообразить, что ещё надо поставить, чтоб > > собиралось в хэшере. Напустите? > Ок, пропустил через buildreq, нужно ещё java-devel. Пришлёте спек? Я добавлял в чрут на сизифе java-1.*-devel, но за минут десять добиться сборки не получилось: jar: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory (при том, что эта библиотека содержится в недрах соответствующего java-1.*, который также установлен) -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] SEvents 2008-05-30 19:39 ` Michael Shigorin @ 2008-05-30 20:14 ` Eugene Ostapets 1 sibling, 1 reply; 6+ messages in thread From: Eugene Ostapets @ 2008-05-30 20:14 UTC (permalink / raw) To: ALT Linux Community general discussions 30 мая 2008 г. 22:39 пользователь Michael Shigorin <mike osdn.org.ua> написал: > Пришлёте спек? Я добавлял в чрут на сизифе java-1.*-devel, > но за минут десять добиться сборки не получилось: > > jar: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory > > (при том, что эта библиотека содержится в недрах > соответствующего java-1.*, который также установлен) BuildRequires: /proc ? -- С уважением, Евгений Остапец uin: 23747217 jid: eugene_ostapets@jabber.ru ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <f725ea640805301545r543ef796n8fd940663d3d12e6@mail.gmail.com>]
* Re: [Comm] SEvents @ 2008-05-31 8:31 ` Michael Shigorin 0 siblings, 0 replies; 6+ messages in thread From: Michael Shigorin @ 2008-05-31 8:31 UTC (permalink / raw) To: ALT Linux Community general discussions [-- Attachment #1: Type: text/plain, Size: 2351 bytes --] On Fri, May 30, 2008 at 11:14:52PM +0300, Eugene Ostapets wrote: > > jar: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory > BuildRequires: /proc ? Ага, только с учётом того, что hsh пускаю руками, а не обёрткой, которая это учитывает и добавляет --mount=/proc -- надо добавить и впредь не лениться проверить stderr по архивам: http://lists.altlinux.org/pipermail/devel/2007-August/061424.html Сам же делал http://search.altlinux.org/ %) On Sat, May 31, 2008 at 03:02:54AM +0500, Rinat Bikov wrote: > > Но у Вас, похоже, что-то из переменных окружения JAVA_* > > выставлено как надо -- у меня опять ловится: > > + jar cfm sevents-1.0.jar ../manifest.mf . > > jar: error while loading shared libraries: libjli.so: cannot open shared > > object file: No such file or directory > Странно, в универе на бранч 4.0 достаточно было доставить > java-1.6.0-sun-devel_03%a1.6.0.05-alt1_i586.rpm > к имеющемуся пакету > java-1.6.0-sun_03%a1.6.0.05-alt1_i586.rpm (вроде % правильно > поставил) чтобы заработало (просто rpm установилось, из src.rpm > так и не вышло поставить по большей степени потому, что > интернет было закончился). См. выше, это я медленный газ. $ nice time hsh --mount=/proc --no-sisyphus-check ~/hasher/tmpfs /home/mike/RPM/SRPMS/sevents-1.0-alt1.1.src.rpm [...] Wrote: /usr/src/RPM/SRPMS/sevents-1.0-alt1.1.src.rpm Wrote: /usr/src/RPM/RPMS/noarch/sevents-1.0-alt1.1.noarch.rpm 5.96user 0.93system 0:09.56elapsed 72%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+165939minor)pagefaults 0swaps 19.41user 8.72system 0:31.24elapsed 90%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (1major+1253566minor)pagefaults 0swaps $ _ Спек прилагается, но по существу отличие от исходного варианта -- # Automatically added by buildreq on Fri May 30 2008 BuildRequires: java-devel unzip BuildPreReq: rpm-build-java BuildPreReq: java-devel >= 1.6.0 BuildRequires: /proc BuildArch: noarch Requires: java >= 1.6.0 On Sat, May 31, 2008 at 03:45:45AM +0500, Rinat Bikov wrote: > Большое спасибо за помощь. Если ещё будут замечания > - с радостью приму. А у меня закончились :) Только вот смотрю на пакет и думаю -- давайте не буду его в сизиф за Вас забрасывать? :) -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ [-- Attachment #2: sevents.spec --] [-- Type: text/plain, Size: 2015 bytes --] Name: sevents Version: 1.0 Release: alt1.1 Summary: System of Events programming with random factor License: GPL Group: Education Url: https://sourceforge.net/projects/sevents Source: http://downloads.sourceforge.net/sevents/%name-%version.zip Packager: Rinat Bikov <bikr@mail.ru> # Automatically added by buildreq on Fri May 30 2008 BuildRequires: java-devel unzip BuildPreReq: rpm-build-java BuildPreReq: java-devel >= 1.6.0 BuildRequires: /proc BuildArch: noarch Requires: java >= 1.6.0 %description SEvents is a System of Event programming with random factor designed to accept script file and execute it with using extra modules. One module - one object, who relate on changing of some variables. It can change variables values, manages events activity and draw himself, using standart interface. %description -l ru_RU.UTF8 SEvents - п©я─п╬я│я┌п╣п╧я┬п╟я▐ я│п╦я│я┌п╣п╪п╟ я│п╬п╠я▀я┌п╦п╧пҐп╬пЁп╬ п©я─п╬пЁя─п╟п╪п╪п╦я─п╬п╡п╟пҐп╦я▐ я│ я└п╟п╨я┌п╬я─п╬п╪ я│п╩я┐я┤п╟п╧пҐп╬я│я┌п╦. п·пҐп╟ п©п╬пЄпЄп╣я─пІп╦п╡п╟п╣я┌ п©п╬пЄп╨п╩я▌я┤п╣пҐп╦п╣ пЄп╦пҐп╟п╪п╦я┤п╣я│п╨п╦я┘ п╠п╦п╠п╩п╦п╬я┌п╣п╨ (dll, dso) п╡ п╨п╟я┤п╣я│я┌п╡п╣ п╪п╬пЄя┐п╩п╣п╧, п©я─п╦ я│я┌п╟я─я┌п╣ п╦я│п©п╬п╩пҐя▐п╣я┌ я└п╟п╧п╩ я│п╨я─п╦п©я┌п╟, я┐п╨п╟пЇп╟пҐпҐя▀п╧ п╡ ~/sevents/.cfg/sevents.conf. %prep %setup -q %build cd jar ../sevents -d . compile jar cfm %name-%version.jar ../manifest.mf `ls -a | grep -v '..'` %install mkdir -p %buildroot/%_javadir mkdir -p %buildroot/%_bindir install -m 755 ./jar/%name-%version.jar %buildroot/%_javadir/%name-%version.jar install -m 755 sevents %buildroot/%_bindir/sevents ln -s %_javadir/%name-%version.jar %buildroot/%_javadir/%name.jar mkdir -p %buildroot/%_man1dir/ cp -r man/* %buildroot/%_man1dir/ %files %doc README README.RUS BNF %_man1dir/* %_javadir/* %_bindir/* %changelog * Sat May 31 2008 Michael Shigorin <mike@altlinux.org> 1.0-alt1.1 - minor spec fixup/cleanup - comprehensive buildrequires (thanks Rinat Bikov and Eugene Ostapets) * Fri May 30 2008 Rinat Bikov <bikr@mail.ru> 1.0-alt1 - initial build ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <f725ea640805301337j54558241x9d41bed42d30da58@mail.gmail.com>]
* Re: [Comm] SEvents @ 2008-05-30 20:48 ` Michael Shigorin 0 siblings, 1 reply; 6+ messages in thread From: Michael Shigorin @ 2008-05-30 20:48 UTC (permalink / raw) To: ALT Linux Community general discussions On Sat, May 31, 2008 at 01:37:41AM +0500, Rinat Bikov wrote: > У меня java-1.6.0-sun-devel > 1.6.0 - это минимальные требования к версии ява, так как (как > оказалось) я использую некоторые функции, которые присутствуют > в яве именно с этой версии. Спек прилагаю. Это действительно стоит фиксировать вручную, раз/пока автоматика не в курсе. :) > Да, кстати, вот некоторый вывод buildreq в конце: > PANIC: attached pid 5746 exited > PANIC: handle_group_exit: 5746 leader 5743 > PANIC: attached pid 5747 exited > PANIC: handle_group_exit: 5747 leader 5743 > PANIC: attached pid 5749 exited > PANIC: handle_group_exit: 5749 leader 5743 > PANIC: attached pid 5750 exited > PANIC: handle_group_exit: 5750 leader 5743 > PANIC: attached pid 5744 exited > PANIC: handle_group_exit: 5744 leader 5743 > + exit 0 > packagereq: optimized out: java > packagereq: BuildRequires: java-devel unzip Пока ещё вот что ловлю: error: Macro %_javadir not found Можете сделать rpm -qf `grep -r ^%_javadir /etc/rpm/macros.d/ | cut -f1 -d:` и добавить в BuildRequires или BuildPreReq вручную? > # Automatically added by buildreq on Fri May 30 2008 > BuildRequires: java-devel unzip Вот здесь лучше уточнить что-то вроде (не вглядывался в версионирование) BuildRequires: java-devel >= 1.6.0 > %prep > %setup -q -q уже с год по дефолту, хотя всё равно косметика... :) > %install > mkdir -p %buildroot/%_javadir Здесь можно не ставить "/" (хотя не помешает и тоже косметика) -- см. вывод rpm -bE sevents.spec > mkdir -p %buildroot/%_bindir > install -m 755 sevents %buildroot/%_bindir/sevents Это можно сделать (если файл один) одним ходом: install -pD -m755 sevents %buildroot/%_bindir/sevents (-p заодно сохранит время модификации файла) > mkdir -p %buildroot/%_man1dir/ > cp -r man/* %buildroot/%_man1dir/ Обычно с целью опять же сохранения времён модификации использую cp -a (или -pr). > %files > %doc README README.RUS BNF > %_man1dir/* > %_javadir/* > %_bindir/* А в остальном весьма симпатичный > %changelog > * Fri May 30 2008 Rinat Bikov <bikr/mail.ru> 1.0-alt1 > - initial build :) -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <f725ea640805301404u577729c5yf16c743b012ce07c@mail.gmail.com>]
* Re: [Comm] SEvents @ 2008-05-30 21:23 ` Michael Shigorin 0 siblings, 0 replies; 6+ messages in thread From: Michael Shigorin @ 2008-05-30 21:23 UTC (permalink / raw) To: ALT Linux Community general discussions On Sat, May 31, 2008 at 02:04:16AM +0500, Rinat Bikov wrote: > > > У меня java-1.6.0-sun-devel > > > 1.6.0 - это минимальные требования к версии ява, так как (как > > > оказалось) я использую некоторые функции, которые присутствуют > > > в яве именно с этой версии. Спек прилагаю. > > Это действительно стоит фиксировать вручную, раз/пока > > автоматика не в курсе. :) > Странно, давал другу на сусе потестировать, у него другая проблема: Туда проще кому-нить подсунуть для засовывания в SUSE Build Service. > ramil@greenpeace:~> rpm -i /home/ramil/Desktop/sevents-1.0-alt1.noarch.rpm > ошибка: Неудовлетворенные зависимости: java-1.6.0-sun-devel нужен для > sevents-1.0-alt1.noarch java-common нужен для > sevents-1.0-alt1.noarch sh нужен для sevents-1.0-alt1.noarch > Тут как раз автоматика в курсе, вот только что sh нету о_О Да, у них вряд ли есть такие пакеты... > > error: Macro %_javadir not found > rpm-build-java-1.0.0-alt1 > jpackage-utils-1.7.4-alt2 > rpm-build-compat-0.99-alt1 > > Пакеты добавил, но думаю, что тут центральный пакет - rpm-build-java Похоже на то. Что-то не додумался. Но у Вас, похоже, что-то из переменных окружения JAVA_* выставлено как надо -- у меня опять ловится: + jar cfm sevents-1.0.jar ../manifest.mf . jar: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory > > > # Automatically added by buildreq on Fri May 30 2008 > > > BuildRequires: java-devel unzip > > Вот здесь лучше уточнить что-то вроде (не вглядывался > > в версионирование) BuildRequires: java-devel >= 1.6.0 > Я пока не нашёл пример спека с подобным версионированием Вроде даже угадал: $ rpm -qp --provides java-1.6.0-sun-devel-1.6.0.05-alt1.i586.rpm | grep ^java-devel java-devel-sun = 0:1.6.0.05-alt1 java-devel = 0:1.6.0 > Замечания учёл Забыл: ещё -Group: Education/Informatics +Group: Education и -%description -l UTF8 +%description -l ru_RU.UTF-8 -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-05-31 8:31 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-05-30 15:22 ` [Comm] SEvents Michael Shigorin 2008-05-30 19:39 ` Michael Shigorin 2008-05-30 20:14 ` Eugene Ostapets 2008-05-31 8:31 ` Michael Shigorin 2008-05-30 20:48 ` Michael Shigorin 2008-05-30 21:23 ` Michael Shigorin
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git