You are not logged in.

#1 2010-08-10 02:14:01

nullh
Member
Registered: 2010-08-10
Posts: 11

[Solved] Trick pacman into thinking I have installed a package

First, I would like to say that if there's another thread on this, I haven't found it. I did find one similar thread that was solved, but the person that solved it just gave a PKGBUILD and told the user to install it. I'd at least like to know what he/she did so I can do it on my own. The package I self-compiled was different from his, so I cannot use his solution, plus I just like to know how to do these things should the problem ever show itself again or I need to do this to another package or for another person. Give someone a fish/teach someone to fish...

That aside, one of the first things I did with my arch box was compile JACK myself. I always like to tweak it's options and make it just right for what I want to use it for, and I use an irregular version, so it made sense to compile it from source. One configure, make, make install later, I had JACK in my system! Unfortunately when compiling like that, pacman's database isn't updated so it was convinced that I did not, in fact, have jack. Since then I have lived with editing jack out of the PKGBUILDs of any jack-requiring package I wanted to install.

There has to be a better way! So, I call upon you, those who are archier than I, to assist me in solving my problem! I've been using linux for years, so you don't have to explain it to a three year old, but I have only been using arch for a couple months (and so far, it's AWESOME!). Thanks in advance, and have a great day!

Last edited by nullh (2010-08-10 15:19:06)

Offline

#2 2010-08-10 02:24:26

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: [Solved] Trick pacman into thinking I have installed a package

Make a PKGBUILD for Jack instead of make, make install. The PKGBUILD does the exact same thing, except it keeps track of things. Unless you're 1 in a billion in your usage, the exact configuration you want is probably already in the AUR.

Please check out the 'provides' field, as well. As a long-time linux user you shouldn't need more help than that.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2010-08-10 02:34:26

nullh
Member
Registered: 2010-08-10
Posts: 11

Re: [Solved] Trick pacman into thinking I have installed a package

My apologies, I've never made a pkgbuild before. I don't make packages, I just use them.

I did make a PKGBUILD just now, though, and it does appear to work. Thanks for the words of encouragement.
For anyone else that needs this, I'll copy and paste what I have in the PKGBUILD file. If it's wrong, you can slap me on the wrist, but it seemed to do the job!

pkgname=('jack-fake')
pkgver=('1.9.5')
pkgrel=('1')
arch=('x86_64')
provides=('jack')

Last edited by nullh (2010-08-10 02:34:50)

Offline

#4 2010-08-10 02:45:09

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [Solved] Trick pacman into thinking I have installed a package

It's cleaner to compile out JACK (I'm assuming jack audio connection kit) of the the program that's causing your problems. In my opinion It's easier to add a config line than it is to pretend like something is there.

Last edited by skottish (2010-08-10 02:45:42)

Offline

#5 2010-08-10 03:40:58

jac
Member
From: /home/jac
Registered: 2009-05-19
Posts: 431
Website

Re: [Solved] Trick pacman into thinking I have installed a package

I think ngoonee meant make a PKGBUILD that configures, makes, and installs JACK as you want it to be configured, not make a dummy package. You've been editing other PKGBUILDs, so changing the JACK PKGBUILD that already exists to be the way you want shouldn't be hard. You can get the default one by either using abs (look at the wiki) or by searching for JACK on the front page, and then clicking SVN Entries on the right of it's page.

Offline

#6 2010-08-10 03:47:05

nullh
Member
Registered: 2010-08-10
Posts: 11

Re: [Solved] Trick pacman into thinking I have installed a package

Thank you for clarifying that. And, come to think of it, that's actually quite a brilliant plan. I just didn't think of it at the time! I will do that in the future though, thanks!

Offline

#7 2010-08-10 12:44:42

jac
Member
From: /home/jac
Registered: 2009-05-19
Posts: 431
Website

Re: [Solved] Trick pacman into thinking I have installed a package

Please prefix "[Solved]" to the thread title by editing your first post smile

Offline

#8 2010-08-10 15:19:31

nullh
Member
Registered: 2010-08-10
Posts: 11

Re: [Solved] Trick pacman into thinking I have installed a package

Oops, my bad, sorry! I got busy and forgot.

Offline

Board footer

Powered by FluxBB