You are not logged in.

#1 2005-07-28 10:51:32

Alexo
Member
From: near a cup of coffee
Registered: 2005-06-27
Posts: 90

Links graphic mode

I did

pacman -S links

how do I now compile it with the --enable-graphics option?

I know that a package compiled w/ -g mode may be released soon but I'd rather not wait.

Offline

#2 2005-07-28 11:34:49

jackmetal
Member
From: US
Registered: 2005-06-13
Posts: 164

Re: Links graphic mode

To recompile it you'll need to use ABS (the Arch Build System).  The wiki is excellent: (http://wiki.archlinux.org/index.php/ABS … ild_System)

Basically, once you have abs installed: copy the 'links' directory to your local abs and edit the PKGBUILD to include the options you want.  Then run makepkg (it will dowload the src, compile and package it into an arch package).  Then just to a pacman -A packagename to install it.

I've just recently started using ABS and have found it to be very easy to deal with.  I have made numerous new packages (and updates to existing ones like hdup, firefox, thunderbird, xplanet, etc...)


--

Some of the world's greatest feats were
accomplished by people not smart enough
to know they were impossible.
-- Doug Larson

Offline

#3 2005-07-28 20:40:11

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: Links graphic mode

Hey, I was cleaning my old pkgbuilds and I found this PKGBUILD:

pkgname=links
pkgver=2.1pre17
pkgrel=1
pkgdesc="A text WWW browser, similar to Lynx"
url="http://atrey.karlin.mff.cuni.cz/~clock/twibright/links/"
depends=('openssl' 'gpm')
makedepends=('pkgconfig')
source=(http://atrey.karlin.mff.cuni.cz/~clock/twibright/links/download/links-$pkgver.tar.bz2)
md5sums=('94315d9ba68bbb543d93b3b3b4f07582')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr --enable-javascript --enable-graphics --without-x --without-sdl --with-ssl
  make || return 1
  make DESTDIR=$startdir/pkg install
}

I made it just to see how it works with my server machine. I'm not using it because I prefer elinks. But it was working. I had some problems after exiting it but I blame drivers :-)
Anyway, you need to first run /etc/rc.d/gpm start before starting links.

Offline

#4 2005-07-29 11:15:33

Alexo
Member
From: near a cup of coffee
Registered: 2005-06-27
Posts: 90

Re: Links graphic mode

I'll work on it right away.

Thanks!

Offline

#5 2005-07-29 21:41:52

Alexo
Member
From: near a cup of coffee
Registered: 2005-06-27
Posts: 90

Re: Links graphic mode

Ok here's how it went:

# cd /var/abs/network/links
# makepkg
# dir
PKGBUILD  filelist   links-2.1-pre17-1.pkg.tar.gz   pkg   src
#pacman -A links
loading package data... could not open package: no such file or directory

PKGBUILD same as lanrat kindly shared...
What went wrong?

Offline

#6 2005-07-29 21:51:35

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Links graphic mode

Use the entire filename for the package.

pacman -A links-2.1-pre17-1.pkg.tar.gz

Offline

#7 2005-07-29 22:02:39

jackmetal
Member
From: US
Registered: 2005-06-13
Posts: 164

Re: Links graphic mode

Another quick suggestion Alexo.

I noticed that you were working directly in the base ABS package.  Typically, what you will want to do is create your own location for them..   This will keep your changes/additions to ABS separate from the base system ABS.

As an example (here's what I do to keep them separate):

I keep my personal ABS in /var/abs/local
What I'll do if I want to edit one is create a directory under that for the package.  Using your example I would do something like:

1) mkdir /var/abs/local/links
2) cp /var/abs/network/links/* /var/abs/local/links
3) cd /var/abs/local/links , and edit the PKGBUILD to suite my needs
4) makepkg (in my local abs - /var/abs/local/links)
5) pkgadd -A links-2.1-pre17-1.pkg.tar.gz

That way you'll have your addition and also still have the clean base system. 

Some of the ABS experts can verify this, but I 'think' that if you run abs again, it will overwrite your edited PKGBUILD since it's in the base ABS location..


--

Some of the world's greatest feats were
accomplished by people not smart enough
to know they were impossible.
-- Doug Larson

Offline

#8 2005-07-31 22:48:47

Alexo
Member
From: near a cup of coffee
Registered: 2005-06-27
Posts: 90

Re: Links graphic mode

makepkg and pacman went ok, but then:

# links -g
Could not initialize any graphics driver.
Tried the following drivers:
fb:
Could not get VT mode

another problem, this time with links text mode:
When I go to url www.archlinux.org I get:

.:INTERNAL ERROR at ipret.e.628:Aiee! Unknown variable type!
Forcing core dump
Segmentation fault

and then link exits to command line.

Offline

Board footer

Powered by FluxBB