Bug 173476 - [PATCH] editors/vim: fails to build under devel/libsysinfo installed
Summary: [PATCH] editors/vim: fails to build under devel/libsysinfo installed
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: David E. O'Brien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-08 16:00 UTC by Masaki TAGAWA
Modified: 2013-05-25 15:10 UTC (History)
1 user (show)

See Also:


Attachments
vim.patch (439 bytes, patch)
2012-11-08 16:00 UTC, Masaki TAGAWA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki TAGAWA 2012-11-08 16:00:01 UTC
The editors/vim port won't build if the devel/libsysinfo port has
been installed.  The patch below fixes this.

How-To-Repeat: # cd /usr/ports/devel/libsysinfo && make install
# cd /usr/ports/editors/vim && make install

  cc   -L/usr/local/lib -Wl,--as-needed  -o vim objects/buffer.o  objects/blowfish.o  objects/charset.o  objects/diff.o  objects/digraph.o  objects/edit.o  objects/eval.o  objects/ex_cmds.o  objects/ex_cmds2.o  objects/ex_docmd.o  objects/ex_eval.o  objects/ex_getln.o  objects/fileio.o  objects/fold.o  objects/getchar.o  objects/hardcopy.o  objects/hashtab.o    objects/if_cscope.o  objects/if_xcmdsrv.o  objects/mark.o  objects/memline.o  objects/menu.o  objects/message.o  objects/misc1.o  objects/misc2.o  objects/move.o  objects/mbyte.o  objects/normal.o  objects/ops.o  objects/option.o  objects/os_unix.o  objects/pathdef.o  objects/popupmnu.o  objects/quickfix.o  objects/regexp.o  objects/screen.o  objects/search.o  objects/sha256.o  objects/spell.o  objects/syntax.o    objects/tag.o  objects/term.o  objects/ui.o  objects/undo.o  objects/version.o  objects/window.o                      objects/netbeans.o    objects/main.o  objects/memfile.o             -lm -lelf  -ltermlib -liconv -
 lintl                     
objects/os_unix.o: In function `mch_total_mem':
os_unix.c:(.text+0x3b0e): undefined reference to `sysinfo'
link.sh: Linking failed
*** Error code 1

Stop in /usr/ports/editors/vim/work/vim73/src.
*** Error code 1

Stop in /usr/ports/editors/vim.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-11-08 16:00:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->obrien

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Mark Johnston 2012-12-13 23:06:36 UTC
I've run into this issue as well when upgrading vim on a system with
libsysinfo installed. (rsyslog for example requires it.) The patch
fixes things for me.

Thanks,
-Mark
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-05-25 15:00:47 UTC
Author: miwi
Date: Sat May 25 14:00:33 2013
New Revision: 319054
URL: http://svnweb.freebsd.org/changeset/ports/319054

Log:
  - Unbreak build when devel/libsysinfo is installed
  
  PR:		173476
  Submitted by:	Masaki TAGAWA <masaki@club.kyutech.ac.jp>
  Approved by:	maintainer timeout

Modified:
  head/editors/vim/Makefile
  head/editors/vim/distinfo

Modified: head/editors/vim/Makefile
==============================================================================
--- head/editors/vim/Makefile	Sat May 25 13:55:46 2013	(r319053)
+++ head/editors/vim/Makefile	Sat May 25 14:00:33 2013	(r319054)
@@ -201,6 +201,7 @@ pre-configure:
 
 post-configure:
 	@(cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} scratch config)
+	${REINPLACE_CMD} -e 's@#define HAVE_SYSINFO 1@/* #undef HAVE_SYSINFO */@' ${WRKSRC}/auto/config.h
 
 #	Clean up junk files to keep them from being installed.
 pre-install:

Modified: head/editors/vim/distinfo
==============================================================================
--- head/editors/vim/distinfo	Sat May 25 13:55:46 2013	(r319053)
+++ head/editors/vim/distinfo	Sat May 25 14:00:33 2013	(r319054)
@@ -1646,8 +1646,6 @@ SHA256 (vim/7.3.903) = 7216cd59e98e8f2bc
 SIZE (vim/7.3.903) = 1827
 SHA256 (vim/7.3.905) = f80cb32cc28e9b5b1476332e30c77972353ea49766bd8b13affbf24b22764540
 SIZE (vim/7.3.905) = 1394
-SHA256 (vim/7.3.910) = 7e389becef63fc4f00cf809e022cb6eb310c257899d5747b0be25878af70782c
-SIZE (vim/7.3.910) = 2955
 SHA256 (vim/7.3.912) = 84466149bfc9e1b31bcaabba2a92b9346f8b0e19ab4a142baabb0c6806f35d61
 SIZE (vim/7.3.912) = 1673
 SHA256 (vim/7.3.913) = 0f94aa23a222457fd685c61ed289c0687211147857138262458b73d6f692f70c
@@ -1702,11 +1700,3 @@ SHA256 (vim/7.3.985) = 129c60b68757d599c
 SIZE (vim/7.3.985) = 1691
 SHA256 (vim/7.3.1000) = 84811fd90146d77e3d360b6e5829e83d580420e8b076972b80caa6a3aac0beef
 SIZE (vim/7.3.1000) = 1637
-SHA256 (vim/7.3.1011) = 43eee7f801428193bc0c42cc2e8c25ba823ccaaaffe9447fde49530ea1d29e23
-SIZE (vim/7.3.1011) = 12440
-SHA256 (vim/7.3.1012) = 726f114cd8169ec9e0a126f6372caee857cc7882d7b26eb6a0e511739dd36c1d
-SIZE (vim/7.3.1012) = 5335
-SHA256 (vim/7.3.1013) = f34a6714d33c3fd7562dc6073c892cb28e9655ba71d54eb095051541f01a16b4
-SIZE (vim/7.3.1013) = 8601
-SHA256 (vim/7.3.1014) = 118fb32ce0123b131c56d6677ad45f4c3cc9e208b721ab591ec855f21265c08c
-SIZE (vim/7.3.1014) = 5064
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Martin Wilke freebsd_committer freebsd_triage 2013-05-25 15:01:01 UTC
State Changed
From-To: open->closed

Committed. Thanks!