This is the mail archive of the libc-alpha@cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

pt_chown is being installed as data and not a program


>Submitter-Id:	net
>Originator:	Maciej W. Rozycki
>Organization:	Technical University of Gdansk, Poland
>Confidential:	no
>Synopsis:	pt_chown is being installed as data and not a program
>Severity:	non-critical
>Priority:	low
>Category:	libc
>Class:		support
>Release:	libc-2.0.104
>Environment:	Linux
Host type: alpha-unknown-linux-gnu
System: Linux melmac.amg.gda.pl 2.1.129 #3 Mon Nov 23 13:04:10 CET 1998 alpha unknown
Architecture: alpha

Addons: crypt linuxthreads
Build CFLAGS: -pipe -O2
Build CC: gcc
Compiler version: egcs-2.92.23 19981122 (gcc2 ss-980609 experimental)
Kernel headers: UTS_RELEASE
Symbol versioning: yes
Build static: yes
Build shared: yes
Build pic-default: no
Build profile: yes
Build omitfp: yes
Build bounded: no
Build static-nss: yes
Stdio: libio

>Description:
	pt_chown is being installed as data which prevents it from being
	stripped when requested.
>How-To-Repeat:
	After issuing the following commands:

	INSTALL_PROGRAM='${INSTALL} -s' <path_to_configure>/configure \
		<needed_options>
	make
	make install

	the resulting /usr/libexec/pt_chown is not stripped.
>Fix:
	The following patch seems to work correctly for me:

diff -u --recursive --new-file glibc-2.0.96.macro/login/Makefile glibc-2.0.96/login/Makefile
--- glibc-2.0.96.macro/login/Makefile	Mon Sep 21 01:18:36 1998
+++ glibc-2.0.96/login/Makefile	Tue Sep 29 01:26:04 1998
@@ -56,7 +56,7 @@
 # pt_chown needs to be setuid root.
 $(inst_libexecdir)/pt_chown: $(objpfx)pt_chown $(+force)
 	$(make-target-directory)
-	-$(INSTALL) -m 4755 -o root $< $@
+	-$(INSTALL_PROGRAM) -m 4755 -o root $< $@
 
 $(objpfx)utmpd: $(utmpd-routines:%=$(objpfx)%.o)
 




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]