makepkg running as root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, 22 Jan 2008 02:42:10 pm you wrote:
> On Jan 21, 2008 9:33 PM, richard terry <rterry@xxxxxxxxxx> wrote:
> > Sometimes I build packages from AUR, and (obviously wrongly), do this as
> > root.
> >
> > Today I got this message:
> >
> > ==> ERROR: Running makepkg as root is a BAD idea and can cause
> >     permanent, catastrophic damage to your system. If you
> >     wish to run as root, please use the --asroot option.
> >
> > Can someone explain.
>
> What's to explain that that message didn't already explain?

Just what it could do to your system.

See the attatched PKGBUILD (which I adapted from an old one in AuR)

I tried to compile it as myself, and it crashed at the end of the build, 
(sorry didn't keep messages), saying something about not being able to write 
to some directory or other (ok, so I'm not a geek!!!). When I re-built it as 
root it worked fine.

BTW, could you/someone checkout this PKGBUILD file and tell me what's wrong 
with the way I've adapted it (I'm assuming its not correct, though it works 
as I did it with no understanding of what I'm doing.

Thanks.

Richard
# Contributor: Toni Foerster <stonerl@xxxxxxxx>
# changed by Richard Terry (so it is probably Wrong! rterry@xxxxxxxxxx
# to get the lastest development branch of Gambas libffi added as dependency
pkgname=gambas2-svn-1028
pkgver=20082201
pkgrel=2
pkgdesc="Gambas is a free development environment based on a Basic interpreter."
arch=('i686')
url="http://gambas.sourceforge.net";
depends=('libldap' 'librsvg' 'postgresql' 'libmysqlclient' 'curl' 'sqlite2' \
	 'sqlite3' 'sdl_mixer' 'sdl_image' 'unixodbc' 'kdelibs' 'poppler' \
	  'libfbclient' 'omniorb' 'libffi')
license=('GPL')
conflicts=('gambas_2' 'gambas2')
install=gambas2-svn.install
source=(gambas2.desktop gambas2.png)
md5sums=('421d09a2868e163dcfae24687cdf5c4a'
         '72dad89f2b239925f8766f2adf4756b8')

_svntrunk=https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0/
_svnrevision=1028

build() {
	cd $startdir/src/
	msg "Checking out svn-tree..."
	svn checkout -r $_svnrevision $_svntrunk|| return 1
	cd $startdir/src/2.0/
	msg "Configure files..."
	./reconf-all
	./configure --disable-qte \
		    --prefix=/usr
 
	msg "Start Compiling..."	    
	make bindir=$startdir/pkg/usr/bin || return 1
	make DESTDIR=$startdir/pkg install || return 1

	chmod -R 755 $startdir/pkg/usr/share/gambas2/help

	install -D -m644 $startdir/src/gambas2.desktop \
			 $startdir/pkg/usr/share/applications/gambas2.desktop
	install -D -m644 $startdir/src/gambas2.png \
			 $startdir/pkg/usr/share/pixmaps/gambas2.png
}

[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux