Difference between revisions of "Ed"

From CBLFS
Jump to navigationJump to search
 
(15 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
{| style="text-align: left; background-color: AliceBlue;"
 
{| style="text-align: left; background-color: AliceBlue;"
|-
+
|-valign="top"
 
!Download Source:
 
!Download Source:
| http://ftp.gnu.org/pub/gnu/ed/ed-0.2.tar.gz
+
| http://ftp.gnu.org/pub/gnu/ed/ed-{{Ed-Version}}.tar.gz
|-
 
!Download Source:
 
| ftp://ftp.gnu.org/pub/gnu/ed/ed-0.2.tar.gz
 
|-
 
!Required Patch:
 
| http://svn.cross-lfs.org/svn/repos/patches/ed/ed-0.2-mkstemp-1.patch
 
|-
 
 
|}
 
|}
  
 
----
 
----
 +
 +
{{Package-Introduction|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. A restricted version of '''ed''', '''red''', can only edit files in the current directory and cannot execute shell commands. Ed is the "standard" text editor in the sense that it is the original editor for Unix, and thus widely available. For most purposes, however, it is superseded by full-screen editors such as [[Vim]] and [[Emacs]].
 +
 +
One of the reasons that Ed is in CBLFS is in case you run into patches that are in Ed format. While these are rare (diff-based patches are the norm), if you need to use such a patch, you'll need Ed.|http://www.gnu.org/software/ed/ed.html}}
  
 
== Dependencies ==
 
== Dependencies ==
  
 
== 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 34: Line 27:
 
'''''This package does not provide any libraries so only one installation is needed.'''''
 
'''''This package does not provide any libraries so only one installation is needed.'''''
  
=== 32Bit ===
+
=== 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:
  
  CC="gcc ${BUILD32}" ./configure --prefix=/usr --exec-prefix="" &&
+
./configure CC="gcc ${BUILD64}" --prefix=/usr --exec-prefix="" &&
 
  make
 
  make
  
Line 49: Line 38:
 
  make install
 
  make install
  
=== N32 ===
+
= Contents =
  
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:
+
{| style="text-align: left;"
 +
|-valign="top"
 +
! Installed Programs:
 +
| ed, red
 +
|-valign="top"
 +
! Installed Libraries:
 +
| None
 +
|-valign="top"
 +
! Installed Directories:
 +
| None
 +
|}
  
patch -Np1 -i ../ed-0.2-mkstemp-1.patch
+
=== Short Descriptions ===
  
Compile the package:
+
{| style="text-align: left;"
 
+
|-valign="top"
CC="gcc ${BUILDN32}" ./configure --prefix=/usr --exec-prefix="" &&
+
! ed
make
+
|is a line-oriented text editor.
 
+
|-valign="top"
Install the package
+
! red
 
+
| is a restricted ed—it can only edit files in the current directory and cannot execute shell commands.
make install
+
|}
 
 
=== 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:
 
 
 
CC="gcc ${BUILD64}" ./configure --prefix=/usr --exec-prefix="" &&
 
make
 
  
Install the package
+
[[Category:Text Editors]]
 
 
make install
 

Latest revision as of 09:10, 31 August 2009

Download Source: http://ftp.gnu.org/pub/gnu/ed/ed-1.4.tar.gz

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. A restricted version of ed, red, can only edit files in the current directory and cannot execute shell commands. Ed is the "standard" text editor in the sense that it is the original editor for Unix, and thus widely available. For most purposes, however, it is superseded by full-screen editors such as Vim and Emacs.

One of the reasons that Ed is in CBLFS is in case you run into patches that are in Ed format. While these are rare (diff-based patches are the norm), if you need to use such a patch, you'll need Ed.

Project Homepage: http://www.gnu.org/software/ed/ed.html

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.

64Bit

Compile the package:

./configure  CC="gcc ${BUILD64}" --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.
Retrieved from "?title=Ed&oldid=19001"