Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10916 - etc-update with nano error
Summary: etc-update with nano error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Brandon Low (RETIRED)
URL:
Whiteboard:
Keywords:
: 10949 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-18 12:10 UTC by Martin Holzer (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Holzer (RETIRED) gentoo-dev 2002-11-18 12:10:03 UTC
watch out "sdiff: subsidiary program `/usr/bin/nano' failed"


mymachine root # etc-update 
Scanning Configuration files...
The following is the list of files which need updating, each 
configuration file is followed by a list of possible replacement files.
1) /etc/make.conf
/etc/._cfg0000_make.conf
Please select a file to edit by entering the corresponding number (-1 to exit): 

Showing differences between /etc/make.conf and /etc/._cfg0000_make.conf
--- /etc/make.conf      2002-11-07 19:12:19.000000000 +0100
+++ /etc/._cfg0000_make.conf    2002-11-18 10:50:12.000000000 +0100
@@ -16,8 +16,6 @@
 # Example:
 #USE="X gtk gnome -alsa"
 
-GENTOO_MIRRORS="http://192.168.10.1/gentoo/"
-
 # Host Setting
 # ============
 #
@@ -42,8 +40,8 @@
 #
 # CPU types supported in gcc-3.2 and higher: athlon-xp, athlon-mp, athlon-4,
 # athlon-tbird, athlon, duron, k6, k6-2, k6-3, i386, i486, i586 (Pentium), i686
-# (Pentium Pro), pentium, pentium-mmx, pentiumpro, pentium2, pentium3, and
-# pentium4. Note that Gentoo Linux 1.4 and higher include at least gcc-3.2.
+# (Pentium Pro), pentium, pentium-mmx, pentiumpro, pentium2 (Celeron), 
pentium3,
+# and pentium4. Note that Gentoo Linux 1.4 and higher include at least gcc-3.2.
 # 
 # CPU types supported in gcc-2.95*: k6, i386, i486, i586 (Pentium), i686
 # (Pentium Pro), pentium, pentiumpro Gentoo Linux 1.2 and below use gcc-2.95*
@@ -51,7 +49,7 @@
 # Decent examples:
 #
 #CFLAGS="-mcpu=athlon-xp -O3 -pipe"
-CFLAGS="-march=i686 -O3 -pipe"
+#CFLAGS="-march=pentium3 -O3 -pipe"
 
 # If you set a CFLAGS above, then this line will set your default C++ flags to
 # the same settings. If you don't set CFLAGS above, then comment this line out.
@@ -145,3 +143,8 @@
 #     flag of the same name. It causes binary packages to be created of all
 #     packages that are merged.
 #FEATURES="sandbox ccache buildpkg"
+#
+# RSYNC_RETRIES sets the number of times portage will attempt to retrieve
+#     a current portage tree before it exits with an error. This allows
+#     for a more successful retrieval without user intervention most times.
+#RSYNC_RETRIES="3"
1) Replace original with update
2) Delete update, keeping original as is
3) Interactively merge original with update
4) Show differences again
Please select from the menu above (-1 to ignore this update): 3
/etc/._cfg0000_make.conf /etc/make.conf /etc/make.conf.merged
A previous version of the merged file exists, cleaning...
rm: remove regular file `/etc/make.conf.merged'? y
Merging /etc/._cfg0000_make.conf and /etc/make.conf
GENTOO_MIRRORS="http://192.168.10.1/gentoo/"                  <
                                                              <
%l
# (Pentium Pro), pentium, pentium-mmx, pentiumpro, pentium2,  | # (Pentium 
Pro), pentium, pentium-mmx, pentiumpro, pentium2 (
# pentium4. Note that Gentoo Linux 1.4 and higher include at  | # and pentium4. 
Note that Gentoo Linux 1.4 and higher include
%l
CFLAGS="-march=i686 -O3 -pipe"                                | #CFLAGS="-
march=pentium3 -O3 -pipe"
%l
                                                              > #
                                                              > # RSYNC_RETRIES 
sets the number of times portage will attempt
                                                              > #     a current 
portage tree before it exits with an error. T
                                                              > #     for a 
more successful retrieval without user interventi
                                                              > 
#RSYNC_RETRIES="3"
%r
sdiff: subsidiary program `/usr/bin/nano' failed
1) Replace /etc/make.conf with merged file
2) Show differences between merged file and original
3) Remerge original with update
4) Return to the previous menu
Please select from the menu above (-1 to exit, losing this merge): 1
Replacing /etc/make.conf with /etc/make.conf.merged
mv: overwrite `/etc/make.conf'? y
rm: remove regular file `/etc/._cfg0000_make.conf'? y

Exiting: No files to work on!
mymachine root #
Comment 1 Brandon Low (RETIRED) gentoo-dev 2002-11-18 13:38:25 UTC
it still works though... the error message is simply because nano returns a non-
zero code on successful edit.  I'll look into silencing it.
Comment 2 SpanKY gentoo-dev 2002-11-19 04:14:28 UTC
*** Bug 10949 has been marked as a duplicate of this bug. ***
Comment 3 Fernando Tobler 2002-12-01 10:50:36 UTC
In my case it was not possible to edit the changes when doing an
interactive merge. 
etc-update always gave an error that nano could not be started.
I then noticed that etc-update was searching nano in /usr/bin, but
actually nano is in /bin.
I made 
   ln -s /bin/nano /usr/bin/nano 
and etc-update is now working without error.
Comment 4 SpanKY gentoo-dev 2002-12-01 11:07:16 UTC
so the *fix* here is to either update the nano ebuild to put a symlink in /usr/bin/ or to fix 
EDITOR in 00basic ... 
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-01 11:45:45 UTC
Updated 00basic on CVS.