ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Michael Bykov <m.bykov@gmail.com>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] собрать пакет
Date: Wed, 21 Apr 2021 18:44:20 +0300
Message-ID: <CAN5SjADakJhn5JQenEw3sQ0KgmyQt_b2NpbHQKJpyVhfyO-4uA@mail.gmail.com> (raw)
In-Reply-To: <0de3df24-e98c-5223-1560-6215798ad84d@altlinux.org>

ср, 21 апр. 2021 г. в 16:22, Andrey Cherepanov <cas@altlinux.org>:
>
> 20.04.2021 20:53, Michael Bykov пишет:
>
> Салют,
>
> ничего не понимаю в сборке пакетов, поэтому, сорри за простой вопрос:
>
> пытаюсь собрать пакет (описание - http://diglossa.org/пакет) для Альта
> под p9. По инструкции для Electron.js:
>
> $ yarn release
>
> это означает:
>  "release": "webpack --config=build/webpack.app.config.js
> --env=production && electron-builder"
>
> Получаю хорошенький rpm-чик. При попытке установить который получаю:
>
> Следующие пакеты имеют неудовлетворенные зависимости:
> diglossa.js: Требует: gtk3 но пакет не может быть установлен
> E: Извините, `битые' пакеты
>
> В https://travis-ci.org пакеты нормально собираются, см
>
> https://github.com/mbykov/diglossa.js/releases/tag/v0.9.63
>
> В travis я получаю  rpm для Centos-a, и deb для Убунты. Все ок.
> rpm для Центоса у нас, естественно, не работает.
>
> и есть tar.gz, из него приложение у меня на p9 и p8 стартует и
> работает нормально.
>
>
> Есть-ли у нас где-то инструкция, как собрать пакет rpm для Альта в
> таких условиях? Или к кому можно обратиться, кто с таким сталкивался?
> Или просто, как напрямую собрать пакет для альта из tar.gz?
>
> Из gtk3 сейчас у меня стоят
>
> $ rpm -qa|grep gtk3
> libjavascriptcoregtk3-devel-2.4.11-alt9.1.p9.x86_64
> libdbusmenu-gtk3-16.04.0-alt1.x86_64
> gtk3-theme-greybird-3.22.14-alt1.noarch
> libwebkitgtk3-devel-2.4.11-alt9.1.p9.x86_64
> libdbusmenu-gtk3-devel-16.04.0-alt1.x86_64
> libcanberra-gtk3-0.30-alt3.x86_64
> libappindicator-gtk3-12.10.0-alt11.x86_64
> libclutter-gtk3-1.8.4-alt1.x86_64
> libjavascriptcoregtk3-2.4.11-alt9.1.p9.x86_64
> libindicator-gtk3-12.10.1-alt1_11.x86_64
> libwebkitgtk3-2.4.11-alt9.1.p9.x86_64
>
> $ rpm -qa|grep gtk.3
> gtk+3-themes-incompatible-3.20-alt3.noarch
> libgtk+3-3.24.11-alt1.x86_64
> libgtk+3-devel-3.24.11-alt1.x86_64
> libgtk+3-gir-3.24.11-alt1.x86_64
> libgtk+3-schemas-3.24.11-alt1.noarch
>
>
>
> Возможно, что код на JS у нас не определяет зависимостей пакета.


> Без логов сборки и установки (а не Вашей интерпретации) обсуждение бессмысленно.

Не очень много могу добавить, нечего почти.

Если вы клонируете

$ git clone https://github.com/mbykov/diglossa.js

и запустите команды
$ DEBUG=electron-builder
$ yarn release

то получите

yarn run v1.15.2
$ webpack --config=build/webpack.app.config.js --env=production &&
electron-builder
asset app.js 4.18 MiB [compared for emit] (name: app) 1 related asset
asset background.js 38.8 KiB [compared for emit] (name: background) 1
related asset
asset popup.js 30.8 KiB [compared for emit] (name: popup) 1 related asset
runtime modules 2.75 KiB 12 modules
cacheable modules 4.15 MiB
  modules by path ./src/ 4.14 MiB
    modules by path ./src/*.js 120 KiB 18 modules
    modules by path ./src/i18n/*.js 11.7 KiB 11 modules
    modules by path ./src/css/*.css 3.99 MiB 8 modules
    modules by path ./src/lib/*.js 20.8 KiB 7 modules
  modules by path ./node_modules/ 9.13 KiB
    ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
6.67 KiB [built] [code generated]
    ./node_modules/css-loader/dist/runtime/api.js 2.46 KiB [built]
[code generated]
  ./package.json 2.36 KiB [built] [code generated]
25 modules
webpack 5.34.0 compiled successfully in 13891 ms
  • electron-builder  version=22.10.5 os=4.9.223-std-def-alt0.M80P.1
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=dist/builder-effective-config.yaml
  • rebuilding native dependencies  dependencies=leveldown@5.6.0
platform=linux arch=x64
  • rebuilding native dependency  name=leveldown version=5.6.0
  • packaging       platform=linux arch=x64 electron=11.4.3
appOutDir=dist/linux-unpacked
  • Unpacking electron zip  zipPath=undefined
  • downloading
url=https://github.com/electron/electron/releases/download/v11.4.3/electron-v11.4.3-linux-x64.zip
size=76 MB parts=8
  • downloaded
url=https://github.com/electron/electron/releases/download/v11.4.3/electron-v11.4.3-linux-x64.zip
duration=15.343s
  • building        target=rpm arch=x64 file=dist/diglossa.js-0.9.63.x86_64.rpm
Done in 258.25s

и аккуратный пакет в  dist/diglossa.js-0.9.63.x86_64.rpm

При попытке его установить

$ sudo apt-get install dist/diglossa.js-0.9.63.x86_64.rpm
                                   (git)-[master]
[sudo] password for michael:
Reading Package Lists... Done
Building Dependency Tree... Done
Selecting diglossa.js for 'dist/diglossa.js-0.9.63.x86_64.rpm'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  diglossa.js: Depends: gtk3 but it is not installable
E: Broken packages

И что делать дальше?

При этом пакет из tar.gz стартует и работает. Значит, можно как-то
собрать и rpm. Но вот как?

P.S. Если попробуете запустить $ yarn release, удалите из package.json
target для deb и атрибут publish



> --
> Andrey Cherepanov
> cas@altlinux.org
>
> _______________________________________________
> Sisyphus mailing list
> Sisyphus@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/sisyphus



-- 
М.

http://diglossa.org

  parent reply	other threads:[~2021-04-21 15:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-20 17:53 Michael Bykov
2021-04-21 15:44   ` Michael Bykov [this message]
2021-04-22  8:15 ` Ivan A. Melnikov
2021-04-22  8:45   ` Michael Bykov
2021-04-26 12:16     ` Michael Bykov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAN5SjADakJhn5JQenEw3sQ0KgmyQt_b2NpbHQKJpyVhfyO-4uA@mail.gmail.com \
    --to=m.bykov@gmail.com \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git