Bug 110589 - archivers/par2cmdline gcc4 patches
Summary: archivers/par2cmdline gcc4 patches
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: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-20 17:10 UTC by jonathan
Modified: 2007-03-22 17:00 UTC (History)
0 users

See Also:


Attachments
file.diff (1.89 KB, patch)
2007-03-20 17:10 UTC, jonathan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jonathan 2007-03-20 17:10:05 UTC
Email to maintainer (me)...

"As you may know, in the near future FreeBSD 7.x will be switching from
the gcc 3.4 compiler to gcc 4.x.  Unfortunately your port fails to
build with the new compiler; see the log below."

Fix: The diff below as well as the attached patch file cleans up the warnings and fixes  gcc4 compile errors.

--- Makefile.old	Sun Jan 28 13:54:37 2007
+++ Makefile	Tue Mar 20 12:51:07 2007
@@ -25,6 +25,8 @@
 
 post-patch:
 	@${REINPLACE_CMD} -e 's| -lstdc++||g' ${WRKSRC}/Makefile.in
+	@${REINPLACE_CMD} -e 's|#define PACKED __attribute__ ((packed))|#define PACKED|' ${WRKSRC}/par1fileformat.h
+	@${REINPLACE_CMD} -e 's|#define PACKED __attribute__ ((packed))|#define PACKED|' ${WRKSRC}/par2fileformat.h
 
 post-install:
 .if !defined(NOPORTDOCS)


Patch attached with submission follows:
How-To-Repeat: Build the port with gcc4+
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-03-20 17:10:16 UTC
Class Changed
From-To: update->maintainer-update

Fix category (submitter is maintainer)
Comment 2 Rong-En Fan freebsd_committer freebsd_triage 2007-03-22 16:51:59 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2007-03-22 16:52:03 UTC
rafan       2007-03-22 16:51:55 UTC

  FreeBSD ports repository

  Modified files:
    archivers/par2cmdline Makefile 
  Added files:
    archivers/par2cmdline/files patch-reedsolomon.cpp 
  Log:
  - Fix gcc4 build
  
  PR:             ports/110589
  Submitted by:   Jonathan Stewart <jonathan at kc8onw.net> (maintainer)
  
  Revision  Changes    Path
  1.8       +2 -0      ports/archivers/par2cmdline/Makefile
  1.1       +56 -0     ports/archivers/par2cmdline/files/patch-reedsolomon.cpp (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"