ports/148948: [patch] sysutils/freecolor: mark as only for i386, respect STRIP

Anonymous swell.k at gmail.com
Mon Jul 26 05:50:02 UTC 2010


>Number:         148948
>Category:       ports
>Synopsis:       [patch] sysutils/freecolor: mark as only for i386, respect STRIP
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 26 05:50:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
>Description:
Doesn't work on amd64. But works if compiled with `-m32' in CFLAGS.

  (gdb) r
  Starting program: /usr/pkg/bin/freecolor
  During symbol reading, DW_AT_name missing from DW_TAG_base_type.
  During symbol reading, cannot get low and high bounds for subprogram DIE at 11006.

  Program received signal SIGBUS, Bus error.
  memset () at /usr/src/lib/libc/amd64/string/memset.S:51
  51              rep
  (gdb) bt f
  #0  memset () at /usr/src/lib/libc/amd64/string/memset.S:51
  No locals.
  During symbol reading, debug info gives in-file macro definition with zero line 0: __STDC__ 1.
  #1  0x000000000040104a in bargraph (argc=<value optimized out>, argv=<value optimized out>) at freecolor.c:80
          remain =
  During symbol reading, incomplete CFI data; unspecified registers (e.g., rax) at 0x400c30.
  <error reading variable>
          numofmarkstwo = <value optimized out>
          percentone = <error reading variable>
          percenttwo = <error reading variable>
          numberofmarks = <value optimized out>
          remainnum = 4293812526
  #2  main (argc=<value optimized out>, argv=<value optimized out>) at freecolor.c:201
          percentram = <value optimized out>
          percentswap = <value optimized out>
          percentbuffer = <value optimized out>
          ramfree = <value optimized out>
          ramtotal = <value optimized out>
          swapfree = <value optimized out>
          swaptotal = <value optimized out>
          doloop = 0
          cachedbuffer = 1.40737505e+14
          totaltotal = 8.56155341e+09
          realbarchart = <error reading variable>
          swapbarchart = <error reading variable>
          totalbarchart = <error reading variable>
          i = <value optimized out>
          dototals = 0
          doold = 0
          linestoup = 2
          meminfo_cached = <value optimized out>
          divisor = 1024
          mem_stats = <value optimized out>
          swap_stats = <value optimized out>

>How-To-Repeat:
>Fix:
--- a.diff begins here ---
Index: sysutils/freecolor/Makefile
===================================================================
RCS file: /a/.cvsup/ports/sysutils/freecolor/Makefile,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile
--- sysutils/freecolor/Makefile	2 Jun 2009 11:09:36 -0000	1.12
+++ sysutils/freecolor/Makefile	26 Jul 2010 04:47:38 -0000
@@ -15,7 +15,15 @@ COMMENT=	Displays free memory as a bargr
 
 LIB_DEPENDS=	statgrab.8:${PORTSDIR}/devel/libstatgrab
 
+ONLY_FOR_ARCHS=	i386
+
 GNU_CONFIGURE=	yes
+MAKE_ENV+=	INSTALL="${INSTALL}" INSTALL_PROGRAM="${INSTALL_PROGRAM}"
 PLIST_FILES=	bin/freecolor
 
+.if !defined(WITHOUT_SETGID)
+BINGRP?=	kmem
+BINMODE?=	2555
+.endif
+
 .include <bsd.port.mk>
Index: sysutils/freecolor/files/patch-Makefile.in
===================================================================
RCS file: /a/.cvsup/ports/sysutils/freecolor/files/patch-Makefile.in,v
retrieving revision 1.2
diff -u -p -r1.2 patch-Makefile.in
--- sysutils/freecolor/files/patch-Makefile.in	31 Oct 2005 00:38:52 -0000	1.2
+++ sysutils/freecolor/files/patch-Makefile.in	26 Jul 2010 04:36:30 -0000
@@ -1,11 +1,23 @@
 --- Makefile.in.bak	Sun Oct 30 09:50:03 2005
 +++ Makefile.in	Sun Oct 30 09:50:13 2005
-@@ -21,7 +21,7 @@
+--- Makefile.in.orig	2005-06-04 18:52:52.000000000 +0400
++++ Makefile.in	2010-07-26 08:36:07.199484222 +0400
+@@ -2,7 +2,6 @@ CC = @CC@
+ CFLAGS = -Wall @CFLAGS@ @DEFS@
+ CPPFLAGS = @CPPFLAGS@ @DEFS@
+ LDFLAGS = @LDFLAGS@ @LIBS@
+-INSTALL = @INSTALL@
+ 
+ prefix = @prefix@
+ mandir = @mandir@
+@@ -19,9 +18,8 @@ install-over-free:
+ 	cp -i free `which free`
+ 
  install:
- 	strip free
+-	strip free
  	-$(INSTALL) -d $(bindir)
 -	$(INSTALL) -m 755 free $(bindir)/freecolor
-+	$(INSTALL) -g kmem -m 2755 free $(bindir)/freecolor
++	$(INSTALL_PROGRAM) free $(bindir)/freecolor
  
  clean:
  	rm -f core free *~
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list