Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jan 2019 12:56:20 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r489677 - in head/sysutils/p5-File-Stat-Bits: . files
Message-ID:  <201901081256.x08CuKhH065022@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Tue Jan  8 12:56:20 2019
New Revision: 489677
URL: https://svnweb.freebsd.org/changeset/ports/489677

Log:
  sysutils/p5-File-Stat-Bits: Fix for dev_t size change
  
  Fixes armv6 and armv7 build
  
  PR:		223291
  PR:		221784
  Submitted by:	mikael.urankar@gmail.com
  Approved by:	maintainer timeout (pirzyk, >1 year)

Added:
  head/sysutils/p5-File-Stat-Bits/files/
  head/sysutils/p5-File-Stat-Bits/files/patch-t_gen-stat.c   (contents, props changed)
Modified:
  head/sysutils/p5-File-Stat-Bits/Makefile   (contents, props changed)

Modified: head/sysutils/p5-File-Stat-Bits/Makefile
==============================================================================
--- head/sysutils/p5-File-Stat-Bits/Makefile	Tue Jan  8 12:47:04 2019	(r489676)
+++ head/sysutils/p5-File-Stat-Bits/Makefile	Tue Jan  8 12:56:20 2019	(r489677)
@@ -3,16 +3,13 @@
 
 PORTNAME=	File-Stat-Bits
 PORTVERSION=	1.01
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	sysutils perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-
 
 MAINTAINER=	pirzyk@FreeBSD.org
 COMMENT=	Perl5 module interface to the major()/minor() C routines
-
-BROKEN_armv6=		fails to build: runaway build
-BROKEN_armv7=		fails to build: runaway build
 
 USES=		perl5
 USE_PERL5=	configure

Added: head/sysutils/p5-File-Stat-Bits/files/patch-t_gen-stat.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/p5-File-Stat-Bits/files/patch-t_gen-stat.c	Tue Jan  8 12:56:20 2019	(r489677)
@@ -0,0 +1,56 @@
+--- t/gen-stat.c.orig	2006-06-28 11:54:00 UTC
++++ t/gen-stat.c
+@@ -48,9 +48,9 @@
+ /* - shamelessly stolen from other source headers */
+ 
+ 
+-static void pr(const char *name, unsigned long value)
++static void pr(const char *name, dev_t value)
+ {
+-    printf("sub %-12s () { 0%06lo }\n", name, value);
++    printf("sub %-12s () { 0%06llo }\n", name, value);
+ }
+ 
+ static void prundef(const char *name)
+@@ -113,13 +113,13 @@ static void constants(void)
+ 
+ #ifdef _HAVE_MAJOR_MINOR
+ 
+-#define MASK(bit) ( ((unsigned long)1) << (bit) )
++#define MASK(bit) ( ((dev_t)1) << (bit) )
+ 
+-static void test(unsigned long (*f)(unsigned long),
+-		 unsigned long *_mask, unsigned int *_shift)
++static void test(dev_t (*f)(dev_t),
++		 dev_t *_mask, unsigned int *_shift)
+ {
+     unsigned int shift;
+-    unsigned long mask, old_mask;
++    dev_t mask, old_mask;
+ 
+     for(shift=0; mask=MASK(shift), f(mask) == 0; ++shift)
+ 	;
+@@ -137,12 +137,12 @@ static void test(unsigned long (*f)(unsigned long),
+ }
+ 
+ 
+-static unsigned long Major( unsigned long dev )
++static dev_t Major( dev_t dev )
+ {
+     return major(dev);
+ }
+ 
+-static unsigned long Minor( unsigned long dev )
++static dev_t Minor( dev_t dev )
+ {
+     return minor(dev);
+ }
+@@ -153,7 +153,7 @@ static unsigned long Minor( unsigned long dev )
+ int main(void)
+ {
+ #ifdef _HAVE_MAJOR_MINOR
+-    unsigned long major_mask , minor_mask;
++    dev_t major_mask , minor_mask;
+     unsigned int  major_shift, minor_shift;
+ 
+     test( Major, &major_mask, &major_shift );



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901081256.x08CuKhH065022>