You are not logged in.

#26 2014-06-21 10:55:04

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Request a contributer to build my PKGBUILD

CyrIng - Your PKGBUILD is still not quite right.  See here:

PKGBUILD: https://gist.github.com/graysky2/ffed1509e41753a693db
readme.install: https://gist.github.com/graysky2/4ed93205a716c08e613a


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#27 2014-06-21 10:56:46

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Request a contributer to build my PKGBUILD

You should also have your service file load the module msr if it isn't loaded...


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#28 2014-06-22 16:25:07

CyrIng
Member
From: France
Registered: 2010-07-17
Posts: 106
Website

Re: Request a contributer to build my PKGBUILD

@graysky: thanks a lot for your help

https://aur.archlinux.org/packages/xfreq-2.0-git is definitely the developpment release.
https://aur.archlinux.org/packages/xfreq-intel-git is a old package but I didn't find in AUR how to erase it ?

I will try your PKGBUILD and change the post_install() to display to the user the SystemD procedure.
About the msr, I will also mention in the readme that doing a modprobe is a prerequisite.
However I have recently gather the knowledge to build my own msr kernel module which should handle in one loop all the registers. This will be more accurate and will provide also a mean to read the kernel scheduler.

CyrIng

Offline

#29 2014-06-22 17:11:19

CyrIng
Member
From: France
Registered: 2010-07-17
Posts: 106
Website

Re: Request a contributer to build my PKGBUILD

@graysky:
your PKGBUILD works like a charm.
I put it online as xfreq-2.0-git
Thank you.

For my information where does 55.7fe7aa8 come from ?

Offline

#30 2014-06-22 18:17:27

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Request a contributer to build my PKGBUILD

CyrIng wrote:

https://aur.archlinux.org/packages/xfreq-intel-git is a old package but I didn't find in AUR how to erase it ?

Email: aur-general@archlinux.org with the subject of "Delete request: xfreq-intel-git" and explain that you are the developer/package creator and accidentally made the entry.

CyrIng wrote:

For my information where does 55.7fe7aa8 come from ?

See the pkgver function.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#31 2014-06-22 18:30:01

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Request a contributer to build my PKGBUILD

CyrIng wrote:

About the msr, I will also mention in the readme that doing a modprobe is a prerequisite.

Why not just add this line to your service file:

ExecStartPre=/usr/bin/modprobe msr

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#32 2014-06-23 12:22:12

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Request a contributer to build my PKGBUILD

graysky wrote:
CyrIng wrote:

For my information where does 55.7fe7aa8 come from ?

See the pkgver function.

echo $(git rev-list --count master).$(git rev-parse --short master)

Looks like graysky kept the pkgver() i had used.

Cyring, i wasn't sure if you used tags in git, so decided to use  a simple pkgver with always works.


git rev-list --count master : returns the number of commits made to master
this allows easy updating / checking if you got latest version.

git rev-parse --short master : returns the (short) hash-tag of the latest commit
This is unique for every commit, so helps in troubleshooting to determine which commit caused trouble.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#33 2014-06-24 04:33:54

CyrIng
Member
From: France
Registered: 2010-07-17
Posts: 106
Website

Re: Request a contributer to build my PKGBUILD

Clear;
Thanks Wolf
I'm not however familiar with git tags.

Last edited by CyrIng (2014-06-24 04:43:34)

Offline

#34 2014-06-24 04:40:07

CyrIng
Member
From: France
Registered: 2010-07-17
Posts: 106
Website

Re: Request a contributer to build my PKGBUILD

graysky wrote:

Why not just add this line to your service file:

ExecStartPre=/usr/bin/modprobe msr

Your suggestion about letting the user dealing with the SystemD service is a good idea, so I will let him/her manage module the way he/she wants.

Last edited by CyrIng (2014-06-24 04:41:23)

Offline

#35 2014-06-24 04:59:32

CyrIng
Member
From: France
Registered: 2010-07-17
Posts: 106
Website

Re: Request a contributer to build my PKGBUILD

graysky wrote:

Email: aur-general@archlinux.org with the subject of "Delete request: xfreq-intel-git" and explain that you are the developer/package creator and accidentally made the entry.

I got an answer that I'm not allowed to post to this mailing list, and your message has been automatically rejected ...

I wonder what's the process to manage of AUR own files (and what happen if many make bad entries)

Offline

#36 2014-06-24 05:01:46

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: Request a contributer to build my PKGBUILD

You have to subscribe to the mailing list to post to it.

Offline

#37 2014-06-25 22:19:34

CyrIng
Member
From: France
Registered: 2010-07-17
Posts: 106
Website

Re: Request a contributer to build my PKGBUILD

Done.
Thanks

Scimmia wrote:

You have to subscribe to the mailing list to post to it.

Offline

#38 2014-06-25 22:28:30

CyrIng
Member
From: France
Registered: 2010-07-17
Posts: 106
Website

Re: Request a contributer to build my PKGBUILD

I have added a new new feature to display the temperature per logical core.
Then I updated the git repo but when I do

yaourt xfreq-2.0-git

it is not marked as a new package (even if building of the new sources provides the last release)
What should I do ?

Lone_Wolf wrote:
echo $(git rev-list --count master).$(git rev-parse --short master)

...

git rev-list --count master : returns the number of commits made to master
this allows easy updating / checking if you got latest version.

git rev-parse --short master : returns the (short) hash-tag of the latest commit
This is unique for every commit, so helps in troubleshooting to determine which commit caused trouble.

Offline

#39 2014-06-26 00:07:21

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Request a contributer to build my PKGBUILD

I am not a fan of AUR helpers, so I don't know about how that one works.  If you build with makepkg, And if the commit is different, building the package should update the PKGBUILD.

Last edited by graysky (2014-06-26 00:08:48)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB