You are not logged in.

#1 2011-01-14 09:49:20

Dennis Beekman
Member
From: Borne Overijsel
Registered: 2010-06-21
Posts: 54

Is there a command to make pacman do --build-dep like debian ?

I am currently using ubuntu but because i wanted to build my own system using XFCE or Gnome i  am looking once again at ARCH.
But i find the Pacman package mananger to lack a few options that apt does have... if they are there i cannot find them.

On Debian/Ubuntu the command used is "apt-get build-dep <package name>" and the package manager will then tell me all the deps that i need and installs them aswell if i wish.
Is there a way todo the same with the Pacman package manager ? so install only the dependencies of a particular package and not the package itself so i can build it from source ?

Offline

#2 2011-01-14 10:09:16

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,771

Re: Is there a command to make pacman do --build-dep like debian ?

There are a number of wrappers for pacman that will do what you want, they are but a simple search away


Mr Green

Offline

#3 2011-01-14 10:17:23

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Is there a command to make pacman do --build-dep like debian ?

Read the pacman man page, and also the Pacman Rosetta in the wiki. Pacman's dependency handling is excellent, and more than covers the requirement you described above.

Offline

#4 2011-01-14 10:19:13

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819

Re: Is there a command to make pacman do --build-dep like debian ?

Pacman will never build packages for you, but makepkg can do that. Check its manpage.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2011-01-14 11:33:33

Dennis Beekman
Member
From: Borne Overijsel
Registered: 2010-06-21
Posts: 54

Re: Is there a command to make pacman do --build-dep like debian ?

so if i understand properly pacman cannot do it, but a wrapper for pacman might ? such as Pacman Rosetta ... i will have to have a look at that... but it wasn't very clear when i googled it.

@.:B:. The command "build-dep" doesn't actually build the packages, it just installs all the dependencies for a particular package.

Offline

#6 2011-01-14 11:34:58

karol
Archivist
Registered: 2009-05-06
Posts: 25,433

Re: Is there a command to make pacman do --build-dep like debian ?

Offline

#7 2011-01-14 11:38:56

Allan
is always right
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,465
Website

Re: Is there a command to make pacman do --build-dep like debian ?

pacman -Sp --print-format %n <pkg>

And in the order you need to build them too...

Offline

#8 2011-01-14 11:40:12

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819

Re: Is there a command to make pacman do --build-dep like debian ?

Dennis Beekman wrote:

@.:B:. The command "build-dep" doesn't actually build the packages, it just installs all the dependencies for a particular package.

I probably wasn't clear enough: makepkg can do all you want. Pull in dependencies, and let you compile the package. With one command.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#9 2011-01-14 11:57:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,433

Re: Is there a command to make pacman do --build-dep like debian ?

@ .:B:.
Maybe we should change the wiki? 'Automatic' doesn't tell you which app to use.

@ Dennis Beekman
Some dependencies (I'm not talking about build-dependencies here) are optional (e.g. extra features, GUI) and you have to install them by hand: 'pacman -S optdep1 optdep2 optdep3'.

Last edited by karol (2011-01-14 12:01:55)

Offline

#10 2011-01-14 12:08:09

Dennis Beekman
Member
From: Borne Overijsel
Registered: 2010-06-21
Posts: 54

Re: Is there a command to make pacman do --build-dep like debian ?

right... i see...
I just liked the build-dep command for my games so they're minimal deps where installed and i then build the games from source afterwards so i have the latest version.

But i gues we will have to use a wrapper for pacman or do it oldschool by hand

Thanxs

Last edited by Dennis Beekman (2011-01-14 12:08:42)

Offline

#11 2011-01-14 12:10:22

Allan
is always right
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,465
Website

Re: Is there a command to make pacman do --build-dep like debian ?

As .:B:. said, "makepkg -s" does that provided you are using a PKGBUILD to build the game (which you should).

Offline

#12 2011-01-14 12:12:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,433

Re: Is there a command to make pacman do --build-dep like debian ?

Just do 'makepkg -s PKGBUILD':

       -s, --syncdeps
           Install missing dependencies using pacman. When build-time or run-time dependencies are not found, pacman
           will try to resolve them. If successful, the missing packages will be downloaded and installed.

Last edited by karol (2011-01-14 12:15:03)

Offline

#13 2011-01-14 12:54:15

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,771

Re: Is there a command to make pacman do --build-dep like debian ?

Makepkg will do the job...

I think wrappers [clyde packer etc...] cover all bases, if pacman does not have required deps [which is sometimes the case] then you need something to pull from aur

EDIT but I could be wrong!

Last edited by Mr Green (2011-01-14 12:55:06)


Mr Green

Offline

#14 2011-01-14 14:40:23

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: Is there a command to make pacman do --build-dep like debian ?

Since you say you've looked into Arch in the past, and are strongly considering it now, you oughtta follow the advice of the amply experienced responders here and read the wiki pages on Pacman and Makepkg.  These posters have more-or-less answered your questions completely.  Since you have shown a genuine interest so far, here's a little more info: The wrappers Mr. Green refers to are an option you can use to deal with the Arch User Repository--you might think of it as a giant PPA, only in the AUR's case all packages are built from source using scripts.  For the sake of security and simplicity (refer to the Arch Way in the wiki) Pacman only deals with packages from the binary repos.  Makepkg is a tool that uses scripts to build binary packages from source tarballs, which can then be handled by Pacman.  Pacman wrappers often simply tie together the two processes.  Not only do both tools cover what you're looking to do, but I daresay many, many people do just that regularly.  I have half-a-dozen or so packages I build from vcs every week.  There you have it.  If you do come to Arch, you'll be totally welcome--these folks are great--but you will be expected to do the majority of this sort of research on your own.  Hope this helps.

P.S. : I hope this doesn't come off as snide; I just crawled outta bed fifteen minutes ago, and the caffeine hasn't kicked me in the head yet. hmm

Offline

#15 2011-01-14 15:50:25

fsckd
Forum Moderator
Registered: 2009-06-15
Posts: 3,642

Re: Is there a command to make pacman do --build-dep like debian ?

This thread is confusing to someone who doesn't know what the build-dep option to apt-get is. It installs the build dependencies of a package so that it may be built. The usual tool for building packages for Arch Linux is makepkg and it can do this automatically by calling pacman on the user's behalf. The OP is advised to peruse the man pages and wiki a little more, especially the articles on AUR.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#16 2012-10-01 10:42:22

rhoit
Member
From: 977
Registered: 2012-07-05
Posts: 62
Website

Re: Is there a command to make pacman do --build-dep like debian ?

I know it ya way old disscussion! anyways!
if i have to complete the dependecies to complie the source! what would be the solution.
./configure is not generating the Makefile!

Offline

#17 2012-10-01 12:35:14

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 14,787
Website

Re: Is there a command to make pacman do --build-dep like debian ?

rhoit, this question has been answered, thoroughly and repeatedly in this thread.

You have a similar question to the OP - did you read the answers in this thread?  If you are having trouble using makepkg, start your own thread giving the relevant information: the package you're trying to build, the dependencies that are missing, and any error messages you recieve.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#18 2012-10-01 12:49:16

karol
Archivist
Registered: 2009-05-06
Posts: 25,433

Re: Is there a command to make pacman do --build-dep like debian ?

I think rhoit asked about similar stuff in the wiki: https://wiki.archlinux.org/index.php/Ta … an_Rosetta

Offline

#19 2012-10-01 14:12:28

fsckd
Forum Moderator
Registered: 2009-06-15
Posts: 3,642

Re: Is there a command to make pacman do --build-dep like debian ?

Hi rhoit, you need to make a PKGBUILD. There may already be one for the package you are trying to install. Search the repositories and search AUR. If none exist, you can request someone else build one for you (AUR Issues, Discussion & PKGBUILD Requests) or make a PKGBUILD yourself. As I wrote almost two years ago, read the man pages. If something is unclear, start a new thread and ask about that.
Closing,


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB