You are not logged in.

#1 2014-12-05 23:01:53

subraizada3
Member
Registered: 2013-06-02
Posts: 90

Help with fixing package

Almost a year ago, the SVN URL for the redeclipse-svn package changed. At that time, it was orphaned, so I adopted the package and fixed the URL in the PKGBUILD. Since then, I stopped playing the game. Now, when I try to install it on my new computer, the package function fails. Being inexperienced with PKGBUILDS, etc., I would like some help in fixing the package.

Here's the package function:

cd "$srcdir/$_svnmod"
        make -C src/ DESTDIR="$pkgdir" prefix=/usr \
                appname=redeclipse cappname=REDECLIPSE \
                appsrcname=redeclipse \
                system-install
        install -Dm644 doc/all-licenses.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

And here's what I get when I try to makepkg:

==> Entering fakeroot environment...
==> Starting package()...
make: Entering directory '/home/sub/aur/redeclipse-svn/src/redeclipse/src'
mkdir -p /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/lib/redeclipse
mkdir -p /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/lib/redeclipse
cp -r ../data /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/redeclipse/data
mkdir -p /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/bin
mkdir -p /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/man/man6
cp: cannot create directory '/home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/redeclipse/data': No such file or directory
mkdir -p /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/bin
system-install.mk:98: recipe for target 'system-install-data' failed
make: *** [system-install-data] Error 1
make: *** Waiting for unfinished jobs....
mkdir -p /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/doc/redeclipse
install -m755 redeclipse /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/lib/redeclipse/redeclipse
mkdir -p /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/redeclipse
sed -e 's,@LIBEXECDIR@,/usr/lib,g' \
	-e 's,@DATADIR@,/usr/share,g' \
	-e 's,@DOCDIR@,/usr/share/doc,g' \
	-e 's,@APPNAME@,redeclipse,g' \
	-e 's,@CAPPNAME@,REDECLIPSE,g' \
	../doc/man/redeclipse.6.am | \
	gzip -9 -n -c > /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/man/man6/redeclipse.6.gz
install -m755 redeclipse_server \
	/home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/lib/redeclipse/redeclipse-server
sed -e 's,@LIBEXECDIR@,/usr/lib,g' \
	-e 's,@DATADIR@,/usr/share,g' \
	-e 's,@DOCDIR@,/usr/share/doc,g' \
	-e 's,@APPNAME@,redeclipse,g' \
	-e 's,@CAPPNAME@,REDECLIPSE,g' \
	../doc/man/redeclipse-server.6.am | \
	gzip -9 -n -c > /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/man/man6/redeclipse-server.6.gz
cp -r ../doc/examples /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/doc/redeclipse/examples
cp ../doc/guidelines.txt /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/doc/redeclipse/guidelines.txt
install -m755 install/nix/redeclipse-server.am \
	/home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/bin/redeclipse-server
printf "\
g,@LIBEXECDIR@,\
s,@LIBEXECDIR@,/usr/lib,g\n\
g,@DATADIR@,\
s,@DATADIR@,/usr/share,g\n\
g,@DOCDIR@,\
s,@DOCDIR@,/usr/share/doc,g\n\
g,@APPNAME@,\
s,@APPNAME@,redeclipse,g\n\
w\n" | ed -s /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/bin/redeclipse-server
install -m755 install/nix/redeclipse.am \
	/home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/bin/redeclipse
printf "\
g,@LIBEXECDIR@,\
s,@LIBEXECDIR@,/usr/lib,g\n\
g,@DATADIR@,\
s,@DATADIR@,/usr/share,g\n\
g,@DOCDIR@,\
s,@DOCDIR@,/usr/share/doc,g\n\
g,@APPNAME@,\
s,@APPNAME@,redeclipse,g\n\
w\n" | ed -s /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/bin/redeclipse
install -m644 ../data/config/version.cfg \
	/home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/redeclipse/version.cfg
ln -s /usr/share/redeclipse/version.cfg \
	/home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/lib/redeclipse/version.cfg
ln -s /usr/share/redeclipse/data \
	/home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/lib/redeclipse/data
make: Leaving directory '/home/sub/aur/redeclipse-svn/src/redeclipse/src'
==> ERROR: A failure occurred in package().
    Aborting...

The error seems to be here:

mkdir -p /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/man/man6
cp: cannot create directory '/home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/redeclipse/data': No such file or directory
mkdir -p /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/bin

Offline

#2 2014-12-05 23:40:37

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,517
Website

Re: Help with fixing package

I suspect there is a problem in the makefile.  You might be able to work around it by making the base directories needed in $pkgdir before running the make install.  But I wanted to verify this my checking out the current PKGBUILD - unfortunately, the one in the AUR is so broken it doesn't even retreive any source files.  It doesn't fail to - it just retrieves an empty svn repository.

Can you provide the version you are using.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2014-12-05 23:49:58

subraizada3
Member
Registered: 2013-06-02
Posts: 90

Re: Help with fixing package

I'm using the latest redeclipse-svn package in the AUR, last updated 2014-12-05 22:59.
The previous update before that was early 2014, I just changed an error in the first line (which was a comment) right now.

I just deleted the folder from my computer and redid the build, it downloads the SVN correctly for me and gives the same error when building.

Offline

#4 2014-12-06 00:00:13

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,517
Website

Re: Help with fixing package

Oops - sorry, I'm not sure what happened unless there were server issues on the source end.  Makepkg was "successfully" retrieving the source, but it was always just an empty file - I tried several times.  But just now it worked - unfortunately I ran out of space part way through the download.  This thing is huge.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2014-12-06 00:01:58

subraizada3
Member
Registered: 2013-06-02
Posts: 90

Re: Help with fixing package

The source is about 800 MB, but the /tmp on my laptop started running out at 3.7 GB when I tried using yaourt to build it.

Offline

#6 2014-12-06 00:32:00

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

Re: Help with fixing package

Tell yaourt to build it somewhere else.

Offline

#7 2014-12-06 00:33:23

subraizada3
Member
Registered: 2013-06-02
Posts: 90

Re: Help with fixing package

I make a temporary folder on my hard drive for large AUR packages.

Offline

#8 2014-12-06 00:36:02

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

Re: Help with fixing package

I'm talking about

--tmp <dir>
    Use <dir> as temporary folder. default to '/tmp'

Offline

#9 2014-12-06 00:45:30

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,517
Website

Re: Help with fixing package

Sorry for derailing this.  Karol, the size was only an issue for me - that doesn't seem to be related to the OPs problems.  I don't know where the 800MB figure came from, but nearly 2GB of space were used up before the svn checkout stalled due to running out of space - the download never even completed.  I didn't try again after that as my download speed isn't that good and it would take a long while to just confirm what I already suspected about the Makefile.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2014-12-06 00:52:57

subraizada3
Member
Registered: 2013-06-02
Posts: 90

Re: Help with fixing package

The latest stable release was about 650 MB, but lots of things have been added since then so I estimated 800. A more thorough investigation into the size using svn gave me 5,257 files that totaled to 963 MB.

Isn't the makefile shipped with the upstream code? I checked out the svn repo, and there is a src/Makefile. It compiles and runs just fine when I manually download and compile the source.

Offline

Board footer

Powered by FluxBB