You are not logged in.

#1 2007-05-18 19:10:04

moon_dog
Member
Registered: 2007-05-05
Posts: 23

makepkg

i frequently run into this type of problem when i use makepkg.  i'm not sure why this is, i've installed fakeroot and i run

sudo makepkg

.  shouldn't the PKGBUILD automatically create these directories?

cp: target `etc/example.conf' is not a directory
./PKGBUILD: line 59: /home/mo/pkg/etc/mplayer/: is a directory
ln: creating symbolic link `./luxirr.ttf': File exists
./PKGBUILD: line 61: /home/mo/pkg/usr/share/mplayer/subfont.ttf: No such file or directory
mv: missing destination file operand after `/home/mo/src/Abyss'
Try `mv --help' for more information.
./PKGBUILD: line 64: /home/mo/pkg/usr/share/mplayer/skins/default: No such file or directory
mv: missing destination file operand after `/home/mo/src/OSX-Brushed'
Try `mv --help' for more information.
./PKGBUILD: line 66: /home/mo/pkg/usr/share/mplayer/skins/OSX-Brushed: No such file or directory
mv: missing destination file operand after `/home/mo/src/phony'
Try `mv --help' for more information.
./PKGBUILD: line 68: /home/mo/pkg/usr/share/mplayer/skins/phony: No such file or directory
==> ERROR: Build Failed.  Aborting...

Offline

#2 2007-05-18 19:36:15

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: makepkg

Where did you find this pkgbuild?
Can you show it to us?

Oh, and you're supposed to create a dir (i.e. mplayer-skins) first. A "build directory" where you have these PKGBUILD and whatnot files. You'll make a mess of your home dir if you dont  wink


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#3 2007-05-18 19:46:07

moon_dog
Member
Registered: 2007-05-05
Posts: 23

Re: makepkg

it's a local PKGBUILD that i created after downloading the MPlayer source code.  i wanted to use a PKGBUILD so that i could recompile later if i wanted to, and it would be easy to remove.

here's the PKGBUILD.  source is in my home directory

pkgname=MPlayer
pkgver=1.0rc1
pkgrel=1
arch=(i686 x86_64)
license=('GPL')
source=(file:///home/mo/MPlayer-1.0rc1.tar.bz2)
md5sums=()

build() {
  cd $startdir/$pkgname-$pkgver
  ./configure --prefix=/usr --enable-gui
  make || return 1
  make DESTDIR=$startdir/pkg/usr install
}

i keep getting this error

==> Making package: MPlayer 1.0rc1-1 (Sat May 19 03:43:38 PDT 2007)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==>     Found MPlayer-1.0rc1.tar.bz2 in build dir
==> WARNING: MD5sums are missing or incomplete.  Cannot verify source integrity.
==> Extracting Sources...
==>     tar --use-compress-program=bzip2 -xf MPlayer-1.0rc1.tar.bz2
==> Removing existing pkg/ directory...
==> Starting build()...
./PKGBUILD: line 11: cd: /home/mo/MPlayer-1.0rc1: No such file or directory
./PKGBUILD: line 12: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
==> ERROR: Build Failed.  Aborting...

i don't understand what's happening.  extraction should create a directory automatically.

Offline

#4 2007-05-18 20:01:54

moon_dog
Member
Registered: 2007-05-05
Posts: 23

Re: makepkg

oh for fuck's sake.  are you supposed to extract the tarball first then run MAKEPKG?

Offline

#5 2007-05-18 20:02:57

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: makepkg

My guess would be that the directory is called mplayer-1.0rc1 rather than MPlayer-1.0rc1, try changing your package name to mplayer instead of MPlayer and see if it works.

moon_dog wrote:

oh for fuck's sake.  are you supposed to extract the tarball first then run MAKEPKG?

Not if it's some format makepkg can handle (like .tar.gz, .tar.bz2), makepkg will extract the files for you.

Last edited by [vEX] (2007-05-18 20:04:14)


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#6 2007-05-18 20:08:39

moon_dog
Member
Registered: 2007-05-05
Posts: 23

Re: makepkg

cool will do thanks

Offline

#7 2007-05-18 20:10:32

moon_dog
Member
Registered: 2007-05-05
Posts: 23

Re: makepkg

no go... same error...

Offline

#8 2007-05-18 20:15:14

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: makepkg

Extract the file manually (perhaps in /tmp) and see what the extracted directory is called.

EDIT: Why not use the official mplayer package? And if you really want to build it yourself you could borrow the PKGBUILD for said package, obtain it either through ABS or CVS web access.

Last edited by [vEX] (2007-05-18 20:18:33)


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#9 2007-05-18 20:17:53

moon_dog
Member
Registered: 2007-05-05
Posts: 23

Re: makepkg

the directory is called MPlayer-1.0rc1.  the PKGBUILD works if i extract it manually, but that's not really addressing the problem.

Offline

#10 2007-05-18 20:21:20

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: makepkg

D'oh, how could I miss it. makepkg creates two directories in the current working directory, src and pkg, you need to use "cd $startdir/src/$pkgname-$pkgver" for it to work.


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#11 2007-05-18 20:22:26

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: makepkg

Few things here.

First off, running "sudo makepkg" is a very bad idea.  A bad PKGBUILD can install to the filesystem and not to a package.

Secondly, you should not build in your homedir directly.  Each PKGBUILD should get its own directory.  In this case, try the following:

mkdir ~/mplayer/
mv ~/PKGBUILD ~/mplayer/
cd ~/mplayer
makepkg

Thirdly, why don't you use the stock mplayer PKGBUILD to start with?
http://cvs.archlinux.org/cgi-bin/viewcv … cvs-markup

Notice all the fun patches and stuff - those aren't there "just because", they're there to fix things.

Lastly, related to point 2 above, the mplayer install target might be goofy.  If you get "file exists" errors, you should perhaps remove the pkg/ dir that everything was installed to.  For this reason, I almost always build with "makepkg -c", which will clean up directories on a successful build.

Offline

#12 2007-05-18 20:36:11

moon_dog
Member
Registered: 2007-05-05
Posts: 23

Re: makepkg

that did it.  thanks a million

Offline

#13 2007-05-19 05:15:47

moon_dog
Member
Registered: 2007-05-05
Posts: 23

Re: makepkg

ok will do, is there anything else i should know?  thanks for all the support and help, by the way.

Offline

#14 2007-05-19 09:30:45

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: makepkg

Yep, you probably need to know something other, you will find a lot of interesting information here:
http://wiki.archlinux.org/index.php/ABS
overall read the part about 'customizing a package' that is what you need. As phrakture said the Archlinux's PKGBUILD file is the best place where start, overall with difficult packages as the mplayer one.

I also rebuild mplayer since I wanted to test the DVD menus (disabled in the official release). Using the Archlinux's PKGBUILD I just needed changing *one word* in the file and everything went fine!

Also read this, learning how to make a package is easy (really) but important if you need software outside the what the community offers (in my case, for example, the The Parma Polyhedra Library and C intermediate language):
http://wiki.archlinux.org/index.php/The … guidelines

And finally read this, it is an overkill (IMO) making a custom local repository if you a lone user of a workstation, but if you just have two computers it is a great way to give the new or modified programs to every one.
http://wiki.archlinux.org/index.php/Cus … nd_gensync

Offline

Board footer

Powered by FluxBB