[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Is this some automated Shell patch format?

Posted on 2004-11-19
1
Medium Priority
?
247 Views
Last Modified: 2013-12-16
I am trying to install Subversion but it complains that it cannot find the Berkeley database.  It has the right path, and the configure log indicates it is finding the include and library files, but it is failing, anyway, saying it cannot find usable Berkeley headers and library files.
The Subversion web site (http://subversion.tigris.org/project_faq.html#linux-bdb42-build) indicates this patch (http://subversion.tigris.org/db42-support-patch.txt)  should be applied to ./subversion/apr-util/config.   Below, the first few lines from the patch (it is over 500 lines long):

--- srclib/apr-util/configure      Fri Oct 24 10:51:13 2003
+++ srclib/apr-util/configure      Wed Nov 26 02:45:42 2003
@@ -13386,6 +13386,536 @@
    { (exit 1); exit 1; }; }
     fi
     ;;
+  db42)
+
+  places="$check_places"
+  if test -z "$places"; then
+    places="std /usr/local/BerkeleyDB.4.2"
+  fi
+
+  bdb_version="4"
+  if test ""1"" != "-1"; then
+    bdb_version="$bdb_version."2""
+    if test ""-1"" != "-1"; then
+      bdb_version="$bdb_version."-1""
+    fi
+  fi
+  bdb_places="$places"
+  bdb_default_search_headers="db4/db.h db.h"
+  bdb_default_search_lib_names="db-4.2 db4 db"

I have never seen this format for a shell script, before.  Is this some sort of format for an automated patch process?  It does not conform to the GNU 'patch' format.  Is it something else from the vast library of 'things I do not know about' ?

I used sed to cut out the leading + symbols and simply pasted the patch in over what seemed to be the appropriate code in the configure script.  It ran, but the same problems re-occurred.  So, either I did not apply the patch correctly or there is another problem.  While I explore the 'other problem' scenario, I was hoping someone could teach me something about this patch file.
Thank you!
0
Comment
Question by:jrtanenb
1 Comment
 
LVL 62

Accepted Solution

by:
gheist earned 375 total points
ID: 12628839
this is diff format, not a shell script.

patch -p0 < that file

Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- srclib/apr-util/configure     Fri Oct 24 10:51:13 2003
|+++ srclib/apr-util/configure     Wed Nov 26 02:45:42 2003
--------------------------

....

most likley will replace one revision of file named srclib/apr-util/configure with another
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question