Difference between revisions of "Ed"

From CBLFS
Jump to navigationJump to search
m (I reformatted the "Contents" section to to use tables.)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source (HTTP):
 
!Download Source (HTTP):
| http://ftp.gnu.org/pub/gnu/ed/ed-0.2.tar.gz
+
| http://ftp.gnu.org/pub/gnu/ed/ed-{{Ed-Version}}.tar.bz2
 
|-
 
|-
 
!Download Source (FTP):
 
!Download Source (FTP):
| ftp://ftp.gnu.org/pub/gnu/ed/ed-0.2.tar.gz
+
| ftp://ftp.gnu.org/pub/gnu/ed/ed-{{Ed-Version}}.tar.bz2
|-
 
!Required Patch:
 
| http://svn.cross-lfs.org/svn/repos/patches/ed/ed-0.2-mkstemp-1.patch
 
 
|-
 
|-
 
|}
 
|}
Line 21: Line 18:
  
 
== Non-Multilib ==
 
== Non-Multilib ==
 
Ed normally uses the mktemp function to create temporary files in /tmp, but this function contains a vulnerability (see the section on Temporary Files at  http://en.tldp.org/HOWTO/Secure-Programs-HOWTO/avoid-race.html). Apply the following patch to make Ed use mkstemp  instead, a secure way to create temporary files:
 
 
patch -Np1 -i ../ed-0.2-mkstemp-1.patch
 
  
 
Compile the package:
 
Compile the package:
Line 39: Line 32:
  
 
=== 32Bit ===
 
=== 32Bit ===
 
Ed normally uses the mktemp function to create temporary files in /tmp, but this function contains a vulnerability (see the section on Temporary Files at  http://en.tldp.org/HOWTO/Secure-Programs-HOWTO/avoid-race.html). Apply the following patch to make Ed use mkstemp  instead, a secure way to create temporary files:
 
 
patch -Np1 -i ../ed-0.2-mkstemp-1.patch
 
  
 
Compile the package:
 
Compile the package:
Line 54: Line 43:
  
 
=== N32 ===
 
=== N32 ===
 
Ed normally uses the mktemp function to create temporary files in /tmp, but this function contains a vulnerability (see the section on Temporary Files at  http://en.tldp.org/HOWTO/Secure-Programs-HOWTO/avoid-race.html). Apply the following patch to make Ed use mkstemp  instead, a secure way to create temporary files:
 
 
patch -Np1 -i ../ed-0.2-mkstemp-1.patch
 
  
 
Compile the package:
 
Compile the package:
Line 69: Line 54:
  
 
=== 64Bit ===
 
=== 64Bit ===
 
Ed normally uses the mktemp function to create temporary files in /tmp, but this function contains a vulnerability (see the section on Temporary Files at  http://en.tldp.org/HOWTO/Secure-Programs-HOWTO/avoid-race.html). Apply the following patch to make Ed use mkstemp  instead, a secure way to create temporary files:
 
 
patch -Np1 -i ../ed-0.2-mkstemp-1.patch
 
  
 
Compile the package:
 
Compile the package:

Revision as of 22:56, 15 December 2006

Download Source (HTTP): http://ftp.gnu.org/pub/gnu/ed/ed-1.4.tar.bz2
Download Source (FTP): ftp://ftp.gnu.org/pub/gnu/ed/ed-1.4.tar.bz2

Introduction to Ed

Ed is a line-oriented text editor. It is used to create, display, modify and otherwise manipulate text files, both interactively and via shell scripts. Ed isn't something which many people use. It's described here because it can be used by the patch program if you encounter an ed-based patch file. This happens rarely because diff-based patches are preferred these days.

Dependencies

Non-Multilib

Compile the package:

./configure --prefix=/usr --exec-prefix="" &&
make

Install the package

make install

Multilib

This package does not provide any libraries so only one installation is needed.

32Bit

Compile the package:

CC="gcc ${BUILD32}" ./configure --prefix=/usr --exec-prefix="" &&
make

Install the package

make install

N32

Compile the package:

CC="gcc ${BUILDN32}" ./configure --prefix=/usr --exec-prefix="" &&
make

Install the package

make install

64Bit

Compile the package:

CC="gcc ${BUILD64}" ./configure --prefix=/usr --exec-prefix="" &&
make

Install the package

make install

Contents

Installed Programs: ed, red
Installed Libraries: None
Installed Directories: None

Short Descriptions

ed is a line-oriented text editor.
red is a restricted ed—it can only edit files in the current directory and cannot execute shell commands.