You are not logged in.

#1 2005-03-31 16:14:19

Meshuggin
Member
From: /home/meshuggin
Registered: 2005-03-23
Posts: 137

Error on making package: snownews

Hi, I'm learning how to build my own packages, succesfully I made fluxbox and gxmame packages, but with snownews I've got an error in makepkg process , I hope you guys help me out.

My PKGBUILD:

pkgname=snownews
pkgver=1.5.6.1
pkgrel=1
pkgdesc="Text mode RSS newsreader for Linux and Unix"
url="http://kiza.kcore.de/software/snownews/"
license="GPL"
depends=('libxml2' 'ncurses>=5.0')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://kiza.kcore.de/software/snownews/download/snownews-1.5.6.1.tar.gz)
md5sums=()

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

And the Error message is:

install: cannot stat `/var/abs/local/snownews/pkgdoc/man/de/snownews.1': No such file or directory
install: cannot stat `/var/abs/local/snownews/pkgdoc/man/fr/snownews.1': No such file or directory
install: cannot stat `/var/abs/local/snownews/pkgdoc/man/it/snownews.1': No such file or directory
install: cannot stat `/var/abs/local/snownews/pkgdoc/man/nl/snownews.1': No such file or directory
install: cannot stat `/var/abs/local/snownews/pkgdoc/man/ru_RU.KOI8-R/snownews.1': No such file or directory
make: *** [install-man] Error 1
==> ERROR: Build Failed.  Aborting...

When I realized a make && make install manually, I got no errors, so ...  something missing on my PKGBUILD?

Thanx


Arch GNU/Linux 0.7.1 (Noodle)
Linux 2.6.14-archck1

Offline

#2 2005-04-01 14:07:42

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: Error on making package: snownews

i think that the install script in the sources is buggy, and iut does ignore the DESTDIR value.

You have two solutions:make the PKGBUILD do the installation process or, what's nicer, write a patch that fixes this bug... and send it to snownews developers.

Offline

#3 2005-04-01 15:58:53

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

Re: Error on making package: snownews

make sure DESTDIR is the proper variable for the makefile... that's a common place of errors

you may need to sed the Makefile... lemme look at it real quick

Offline

#4 2005-04-01 16:11:23

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

Re: Error on making package: snownews

try this: (untested)

this line:
$(INSTALL) -m 0644 $(DESTDIR)$(MAN)/$$L/snownews.1 $(PREFIX)/man/$$L/man1;

should be:
$(INSTALL) -m 0644 $(MAN)/$$L/snownews.1 $(DESTDIR)$(PREFIX)/man/$$L/man1;

I dunno if the $s need to be escaped or not...

pkgname=snownews
pkgver=1.5.6.1
pkgrel=1
pkgdesc="Text mode RSS newsreader for Linux and Unix"
url="http://kiza.kcore.de/software/snownews/"
license="GPL"
depends=('libxml2' 'ncurses>=5.0')
source=(http://kiza.kcore.de/software/snownews/download/$pkgname-$pkgver.tar.gz)
md5sums=()

build()
{
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
# may or maynot need the dollar signs escaped....
  sed -i "s#$(DESTDIR)$(MAN)#$(MAN)#g" Makefile
  sed -i "s#snownews.1 $(PREFIX)/man/#snownews.1 $(DESTDIR)$(PREFIX)/man/#g" Makefile
  make || return 1
  make DESTDIR=$startdir/pkg install
}

Offline

#5 2005-04-02 14:19:06

Meshuggin
Member
From: /home/meshuggin
Registered: 2005-03-23
Posts: 137

Re: Error on making package: snownews

It worked out perfectly according your PKGBUILD phrakture!, thanxs! ... I need to learn use "sed" better, very useful in some circunstances like this wink


Arch GNU/Linux 0.7.1 (Noodle)
Linux 2.6.14-archck1

Offline

#6 2005-04-04 15:02:44

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

Re: Error on making package: snownews

Meshuggin wrote:

It worked out perfectly according your PKGBUILD phrakture!, thanxs! ... I need to learn use "sed" better, very useful in some circunstances like this wink

just for a basic overview:

sed -i expr filename

expr can be a million things, but the common usage is to replace things in "filename"... the expression is as follows:

"s<symbol><original text><symbol><new text><symbol>g"

the "s" indicates it's a replace operation... the <symbol> can be almost anything, but I usually use "@", "#", "|", or "/" - the "g" at the end if for global, meaning replace every occurance in the file... leave g off and it only hits the first occurance... so:

sed -i "s@something@nothing@g" myfile

will replace every instance of the word "something" with the word "nothing" in myfile...

Offline

#7 2005-04-06 00:06:30

Meshuggin
Member
From: /home/meshuggin
Registered: 2005-03-23
Posts: 137

Re: Error on making package: snownews

Thank U so much phrakture for your time wink


Arch GNU/Linux 0.7.1 (Noodle)
Linux 2.6.14-archck1

Offline

Board footer

Powered by FluxBB