Overview

Request 838529 accepted

Now "osc service disabledrun" does all the magic.
BTW, the rpmlint warning about it not being PIE is because the project hardcodes "-fPIC" as option everywhere.

- Some .spec cleanup:
* Use %autosetup
* Use %find_lang --with-qt
* Remove redundant options to %cmake
* Use %cmake_build
- Use ~git instead of +git to mark it as "before 2.3.0"
- Add _service to generate the tarball and set the version
- Update to version 2.3.0~git20200908.0e0ccde5:
* Delete hublist.eu
* Fix race condition in Search::on

Loading...

Илья Индиго's avatar

Now "osc service disabledrun" does all the magic.

1 Now if a more recent commit comes out, what actions should I take to update to it?

2 I understand correctly, if I delete the tar.xz file and click on "Trigger services" (how to do it from osc?) Then it will be recreated automatically from git?

3 What is the compression ratio for xz? If not 9, how can it be set to 9?

4 How can you split the language file into separate packages for each language?

BTW, the rpmlint warning about it not being PIE is because the project hardcodes "-fPIC" as option

5 That is, I can't do anything about it from the spec-file, am I getting it right? Is PIE something to do with memory addressing in 32-bit systems or is it something else in gcc?


Fabian Vogt's avatar
  1. Just "osc service dr" and delete the old tarball
  2. I don't think the Web UI runs disabled services. so you need to use osc for that.
  3. The default: https://github.com/openSUSE/obs-service-recompress/blob/master/recompress#L90
  4. That just creates more overhead and usually not worth it. A %{name}-lang package is simple, just use %lang_package -n %{name}-qt and %files qt-lang -f %{name}.lang
  5. The issue is that -fPIC during linking overrides the "-fPIE" default. PIE enables ASLR for executables, which is for security hardening.

Илья Индиго's avatar

Just "osc service dr" and delete the old tarball

I probably at least need to change the version number in the spec-file, and in the changes-file something to write. Or don't I even need to do that? And also do not you need to specify the hash of the last commit and its date yourself?


Fabian Vogt's avatar

The tar_scm service has "changesgenerate" enabled and another service updates the version number in the .spec file. So it's all covered!


Fabian Vogt's avatar

The only thing you need to do (which is not really possible to automate in this case) is to update the version number to "2.4.0~git" or whatever after 2.3.0 is released.

Request History
Fabian Vogt's avatar

favogt created request

Now "osc service disabledrun" does all the magic.
BTW, the rpmlint warning about it not being PIE is because the project hardcodes "-fPIC" as option everywhere.

- Some .spec cleanup:
* Use %autosetup
* Use %find_lang --with-qt
* Remove redundant options to %cmake
* Use %cmake_build
- Use ~git instead of +git to mark it as "before 2.3.0"
- Add _service to generate the tarball and set the version
- Update to version 2.3.0~git20200908.0e0ccde5:
* Delete hublist.eu
* Fix race condition in Search::on


Илья Индиго's avatar

13ilya accepted request

Thank you!

openSUSE Build Service is sponsored by