GithubHelp home page GithubHelp logo

Packaging for RPM about nohang HOT 49 CLOSED

hakavlad avatar hakavlad commented on May 30, 2024
Packaging for RPM

from nohang.

Comments (49)

tim77 avatar tim77 commented on May 30, 2024 3

@tim77 What about CentOS 8?

Packaged.

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024 2

@tim77 psi-monitor has been improved, see https://imgur.com/a/ENYTBYd

Please upgrade pkg

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024 1

Maybe because i build from latest git snapshot, not release?

v0.1 doesn't have version file, but v0.2 will have it.

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024 1

Thank you for the packages.

from nohang.

tim77 avatar tim77 commented on May 30, 2024 1

Done. BTW i am still waiting for someone to review my package and then i can push it in main repos...

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024 1

@tim77 Please make a rebuild. The demon received an important update related to the acceleration of GUI notifications 05ae755

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024 1

you released new, tagged version

OK, I want to tag, but

TODO: write a docs and else some fixes

from nohang.

KAMiKAZOW avatar KAMiKAZOW commented on May 30, 2024 1

v0.2 will have it.

Is there an ETA for that, btw? I want to get nohang into official openSUSE repositories and @tim77 does such great work on snapshot builds, I obviously want to base my work in his.

Packaging 0.1 seems antiquated after only a few months and using git snaphots is discouraged by openSUSE maintainers.

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024 1

Is there an ETA for that, btw?

I hope to make a release this month.

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024 1

I hope to make a release this year.

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

It's not empty if installed via git clone && make.

from nohang.

tim77 avatar tim77 commented on May 30, 2024

Maybe because i build from latest git snapshot, not release?

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

No. It does not matter.

	install -d $(DESTDIR)$(CONFDIR)/nohang
	-git describe --tags --long --dirty > version
        -install -m0644 version $(DESTDIR)$(CONFDIR)/nohang/version

https://github.com/hakavlad/nohang/blob/master/Makefile

Maybe I should remake Makefile. But I don't know how.

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

There is no such problem with AUR https://aur.archlinux.org/packages/nohang-git/ package, version is not empty and --version works well.

from nohang.

tim77 avatar tim77 commented on May 30, 2024

I found what cause this:

git describe --tags --long --dirty > version
fatal: not a git repository (or any of the parent directories): .git

This because i downloaded sources via git API, not git clone. Cloning repo and any internet access during build process not allowed in Fedora. But we can easily fix this and add this ver info in spec file during build RPM.

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

Thank you. By the way, version on you package shows v0.1-4c1b5ee instead of v0.1-435-4c1b5ee.

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024
BuildRequires:  systemd
%else
BuildRequires:  systemd-rpm-macros
%endif
Requires:       logrotate%{?_isa}
%if 0%{?fedora} || 0%{?rhel} >= 8
Recommends:     libnotify%%{?_isa}
%endif
%{?systemd_requires}

logrotate and libnotify are optdepends and not required by default. Systemd gives best expirience, but it is not depend/recommend.

from nohang.

tim77 avatar tim77 commented on May 30, 2024

Thank you. By the way, version on you package shows v0.1-4c1b5ee instead of v0.1-435-4c1b5ee.

Usually this enough. But if this critical go discuss this there and ask other maintainers how to do this better.

from nohang.

tim77 avatar tim77 commented on May 30, 2024

logrotate and libnotify are optdepends and not required by default. Systemd gives best expirience, but it is not depend/recommend.

OK we can made logrotate as optional dependency too and own this dirs by nohang as well i think.

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

@tim77 I'd like to see the next packages:

  • nohang (only release versions, stable)
  • nohang-devel (unstable, maybe with autobuild)
  • nohang-desktop with config optimized for desktop, release versions

Is it possible?

from nohang.

tim77 avatar tim77 commented on May 30, 2024

I think this could be done easily: IMO best way to do this if you did two separate build in makefile (nohang and nohang-desktop) and this both version i split as sub packages in rpm spec file. And push this both version to main Fedora repos.

And we can automatize build process in COPR for nohang-devel

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

8dacba0 done

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

@tim77 Please make a rebuild.

from nohang.

tim77 avatar tim77 commented on May 30, 2024

Temp version here. We need to make things better there and automatize desktop case... :) WIP.

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

how can I install nohang-desktop?

from nohang.

tim77 avatar tim77 commented on May 30, 2024
sudo dnf install nohang-desktop -y

But you need manually replace or run nohang with desktop config file included into nohang-desktop package. We need to automatize this but better if we do this without %post scripts.

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

But you need manually replace

How to get it out of the box?

We need to automatize this but better if we do this without %post scripts.

How can we do this?

better if we do this without %post scripts

Why?

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

@tim77 Can I help you?

from nohang.

tim77 avatar tim77 commented on May 30, 2024

Yes, IMO together we can do better. :) Check again this post and go discuss this there where other maintainers can help us too.

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

@tim77 GUI notifications is broken, please make a rebuild.

Also nohang-desktop doesn't work (it uses non-desktop config).

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

@tim77 What about CentOS 8?

from nohang.

tim77 avatar tim77 commented on May 30, 2024

Also nohang-desktop doesn't work (it uses non-desktop config).

Yes, that was i what i talked about earlier. Easy to fix this via %post install scrips but we lose another useful feature by doing this - %config(noreplace). Definitely help wanted there, how to handle this better...

For now user need to manually replace config file with desktop config.

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

What about changing %install?

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

Recommends: %{name}-desktop

Why?

from nohang.

tim77 avatar tim77 commented on May 30, 2024

What about changing %install?

Then we lost regular non-desktop version. Need to made to separate packages then.

Recommends: %{name}-desktop

Why?

Why what? It is optional weak dependency.

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

Why it is in Recommends? Why nohang depends on nohang-desktop?

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

What about 2 independant packages?

from nohang.

tim77 avatar tim77 commented on May 30, 2024

What about 2 independant packages?

Need to open new review-request, waiting, waiting, waiting...

Why it is in Recommends? Why nohang depends on nohang-desktop?

  1. One more time - it not depends, it recommends it and could be skip easily if user wants.
  2. It helps user with such questions.

For Fedora and RHEL8 possible to supplement already installed packages so maybe good idea to improve this case when DE or Xorg installed on target system.

Maybe better to made two systemd units for desktop and non desktop? :) Just asking.

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

@tim77 Could you make a rebuild, please?

from nohang.

tim77 avatar tim77 commented on May 30, 2024

Yep. I seen yesterday this #56 Not critical? It would be nice if you released new, tagged version which already tested.

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

#56 Seems like it is an old output bug, not critical

from nohang.

tim77 avatar tim77 commented on May 30, 2024

No rush then. :) Works for me and much more predictable compared to earlyoom.

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

much more predictable compared to earlyoom

Please write your review here https://pagure.io/fedora-workstation/issue/98

from nohang.

tim77 avatar tim77 commented on May 30, 2024

Using git snaphots is discouraged by Fedora as well. So agree with @KAMiKAZOW nohang should switch to releases/tags.

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

Packaging 0.1 seems antiquated after only a few months

BTW nohang 0.1 released more than year ago.

For release 0.2, I want to solve some problems and write documentation. Right now, on my localhost, the daemon is undergoing significant changes.

I want to close these issues to release:

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

Maybe I should close only #22 and release.

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

@KAMiKAZOW How to install nohang on openSUSE and on SLE? Could you make a PR to fix README.md, please?

from nohang.

KAMiKAZOW avatar KAMiKAZOW commented on May 30, 2024

It would be easier if you made a proper release, then I could submit it to the distribution itself.

from nohang.

hakavlad avatar hakavlad commented on May 30, 2024

@KAMiKAZOW Congratulations! https://github.com/hakavlad/nohang/releases/tag/v0.2.0

Also maybe you want to package new tools (prelockd, memavaild, uresourced), see https://github.com/hakavlad/nohang#solution

from nohang.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.