LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (http://www.linuxquestions.org/questions/%2Absd-17/)
-   -   When "make install clean" ports fails everytime! (http://www.linuxquestions.org/questions/%2Absd-17/when-make-install-clean-ports-fails-everytime-215893/)

Devboy 08-10-2004 02:38 PM

When "make install clean" ports fails everytime!
 
Whats happening is when ever i want to install a program via the ports, i seems to encounter a problem it always spits out somthing like:

patching failed ex:

Code:


/sbin/ldconfig -m /usr/local/lib
===>  Registering installation for libidn-0.5.3
===>  Returning to build of kdelibs-3.2.3_1
===>  kdelibs-3.2.3_1 depends on shared library: jasper - not found
===>    Verifying install for jasper in /usr/ports/graphics/jasper
===>  Vulnerability check disabled
>> jasper-1.701.0.zip doesn't seem to exist in /usr/ports/distfiles/.
>> Attempting to fetch from http://www.ece.uvic.ca/~mdadams/jasper/software/.
Receiving jasper-1.701.0.zip (1361754 bytes): 100% (ETA 00:00)
1361754 bytes transferred in 31.1 seconds (42.73 kBps)
===>  Extracting for jasper-1.701.0
>> Checksum OK for jasper-1.701.0.zip.
===>  jasper-1.701.0 depends on executable: unzip - found
===>  Patching for jasper-1.701.0
===>  Applying FreeBSD patches for jasper-1.701.0
2 out of 2 hunks failed--saving rejects to configure.rej
>> Patch patch-configure failed to apply cleanly.
*** Error code 1


Marble 08-10-2004 03:44 PM

Did you cvsup your ports after installing FreeBSD? If you are using an out of date ports tree (it gets updated daily), then you will run into lots of errors trying to install via ports.

If you did update your ports tree and still find this error, then check /usr/ports/UPDATING to see if anything about this is noted.

Open your cvsup file (an example can be found in /usr/src/examples/cvsup/ports-supfile - copy that to someplace where you keep your scripts)

Edit the file to designate a cvsup server (cvsup1.FreeBSD.org - for example)
keep ports at ports-all, otherwise you can run into issues. Don't worry about making a refuse file or selecting ports not to install.

Run:
cvsup -g -L 2 /path/to/ports-supfile

Wait...

When it's done:
cd /usr/ports
make index

wait .... (long time)

pkgdb -u

and you should be good to go. Then try installing that port again.

Generally I cvsup my ports tree before I go and install programs. You can always set a cron job to cvsup once a week, or once every other day. You don't need to do it too often as it taxes the cvsup servers. But since I don't install every day I only do it before I install something or any kind of portupgrade ...

Devboy 08-11-2004 03:11 AM

Aha! i knew i was doing somit wrong, i did downlaad to gzip and used that without luck so i ran the cvsup -g -L 2 ports-supfile and it updated but i never knew about make index and pkgdb -u :).

thanks ill give it a try!

Devboy 08-11-2004 03:25 AM

hey, i tried running

pkgdb - u

and it oputted command not found but make index worked :) but did output a warning:


Generating INDEX - please wait..Warning: Duplicate INDEX entry: freeciv-gtk2-1.14.1
Done.

I went to try install kmess none the elss and without luck it came up with a patch-configure error again.

Marble 08-11-2004 03:30 AM

you need to install portupgrade: /usr/ports/sysutils/portupgrade

Devboy 08-11-2004 12:42 PM

umm! did that all works updated 98packages i went to install kmess and same problem ocured :S.

suggestions?

Marble 08-11-2004 05:11 PM

Research before you start upgrading packages using portupgrade. There are different ways you can do it. Using the -r flag will update dependencies as well, without it doesn't. So if you upgrade a port without paying attention to what is dependent on it, you can create version problems.

Don't know if that is what your problem is specifically, but something to know.

Devboy 08-11-2004 05:31 PM

damm pain in the ass! i even downloaded the openssl of freebsd ports and installed it manualy into the devel port dir and when to install it but same error it fails when applying freebsd patches.

Stack 08-11-2004 06:44 PM

Quote:

Originally posted by Devboy
hey, i tried running

pkgdb - u

and it oputted command not found but make index worked :) but did output a warning:


Generating INDEX - please wait..Warning: Duplicate INDEX entry: freeciv-gtk2-1.14.1
Done.

I went to try install kmess none the elss and without luck it came up with a patch-configure error again.

You need to run 'pkgdb -F' to fix the pkg data base...

Marble 08-11-2004 07:46 PM

Yes... forgot that one:

cvsup ports tree
cd /usr/ports make index
pkgdb -u
pkgdb -F


All times are GMT -5. The time now is 07:17 AM.