FreeBSD Bugzilla – Attachment 166024 Details for
Bug 206539
sysutils/reptyr: Fix build on FreeBSD 9 and unconditionally install bash completion file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
reptyr-fbsd9-bash-option.patch (text/plain), 3.48 KB, created by
Raphael Kubo da Costa
on 2016-01-23 20:07:28 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Raphael Kubo da Costa
Created:
2016-01-23 20:07:28 UTC
Size:
3.48 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 407049) >+++ Makefile (working copy) >@@ -3,7 +3,7 @@ > > PORTNAME= reptyr > PORTVERSION= 0.6.3a >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= sysutils > > MAINTAINER= andoriyu@gmail.com >@@ -17,24 +17,9 @@ > > USES= gmake > >-OPTIONS_DEFINE= BASH >-OPTIONS_SUB= yes >- > ONLY_FOR_ARCHS= i386 amd64 > >-.include <bsd.port.pre.mk> >-.if ${PORT_OPTIONS:MBASH} >-BUILD_DEPENDS= ${LOCALBASE}/share/bash-completion/bash_completion:${PORTSDIR}/shells/bash-completion >-.endif >- >-BROKEN_FreeBSD_9= Not supported on FreeBSD older than 10.0 >- > post-install: >-.if ${PORT_OPTIONS:MBASH} >- ${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d >- ${INSTALL_SCRIPT} ${WRKSRC}/reptyr.bash \ >- ${STAGEDIR}${PREFIX}/etc/bash_completion.d/reptyr >-.endif > ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/reptyr > >-.include <bsd.port.post.mk> >+.include <bsd.port.mk> >Index: files/patch-Makefile >=================================================================== >--- files/patch-Makefile (revision 405864) >+++ files/patch-Makefile (working copy) >@@ -9,16 +9,7 @@ > > PKG_CONFIG ?= pkg-config > >-@@ -43,7 +43,7 @@ ptrace.o: ptrace.h platform/platform.h $ >- clean: >- rm -f reptyr $(OBJS) test/victim.o test/victim >- >--BASHCOMPDIR ?= $(shell $(PKG_CONFIG) --variable=completionsdir bash-completion 2>/dev/null) >-+BASHCOMPDIR ?= $(PREFIX)/share/bash-completion/completions >- >- install: reptyr >- install -d -m 755 $(DESTDIR)$(BINDIR) >-@@ -52,9 +52,7 @@ install: reptyr >+@@ -52,9 +52,5 @@ install: reptyr > install -m 644 reptyr.1 $(DESTDIR)$(MANDIR)/man1/reptyr.1 > install -d -m 755 $(DESTDIR)$(MANDIR)/fr/man1 > install -m 644 reptyr.fr.1 $(DESTDIR)$(MANDIR)/fr/man1/reptyr.1 >@@ -26,7 +17,5 @@ > - test -z "$$bashcompdir" && bashcompdir=/etc/bash_completion.d ; \ > - install -d -m 755 $(DESTDIR)$$bashcompdir ; \ > - install -m 644 reptyr.bash $(DESTDIR)$$bashcompdir/reptyr >-+ install -d -m 755 $(DESTDIR)$(BASHCOMPDIR) >-+ install -m 644 reptyr.bash $(DESTDIR)$(BASHCOMPDIR)/reptyr > > .PHONY: PHONY >Index: files/patch-platform_freebsd_freebsd.c >=================================================================== >--- files/patch-platform_freebsd_freebsd.c (nonexistent) >+++ files/patch-platform_freebsd_freebsd.c (working copy) >@@ -0,0 +1,16 @@ >+Fix the build on FreeBSD 9: >+ >+cc1: warnings being treated as errors >+platform/freebsd/freebsd.c: In function 'check_proc_stopped': >+platform/freebsd/freebsd.c:57: warning: 'state' may be used uninitialized in this function >+--- platform/freebsd/freebsd.c.orig 2015-06-05 21:41:48 UTC >++++ platform/freebsd/freebsd.c >+@@ -54,7 +54,7 @@ int check_pgroup(pid_t target) { >+ int check_proc_stopped(pid_t pid, int fd) { >+ struct procstat *procstat; >+ struct kinfo_proc *kp; >+- int state; >++ int state = 0; >+ unsigned int cnt; >+ >+ procstat = procstat_open_sysctl(); > >Property changes on: files/patch-platform_freebsd_freebsd.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: pkg-plist >=================================================================== >--- pkg-plist (revision 405864) >+++ pkg-plist (working copy) >@@ -1,5 +1,3 @@ >-%%BASH%%etc/bash_completion.d/reptyr >-%%BASH%%share/bash-completion/completions/reptyr > bin/reptyr > man/fr/man1/reptyr.1.gz > man/man1/reptyr.1.gz
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 206539
:
166024
|
166068