Bug 204816

Summary: audio/audacity: Produces corrupt PNG files
Product: Ports & Packages Reporter: lenzi.sergio
Component: Individual Port(s)Assignee: Thomas Zander <riggs>
Status: Closed FIXED    
Severity: Affects Many People CC: koobs, riggs, xxjack12xx
Priority: --- Keywords: easy, needs-qa, patch
Version: LatestFlags: riggs: merge-quarterly-
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch to only dos2unix text files xxjack12xx: maintainer-approval+

Description lenzi.sergio 2015-11-25 20:20:35 UTC
ports audio/audacity produces corrupt png images.

This is because the port, uses dos2unix framework, and incorrectly convert dos2tounix on ALL files in the WRKSRC files, including ...  png images

an option on the Makefile, would fix the problem...

DOS2UNIX_GLOB=  Makefile.* *.c *.h
Comment 1 Jack 2015-11-25 22:27:01 UTC
Should use the options
DOS2UNIX_GLOB=  Makefile.* *.c* *.h

to cover .cpp files too
Comment 2 lenzi.sergio 2015-11-26 18:05:17 UTC
(In reply to xxjack12xx from comment #1)
correct....
Thanks, should bug the mantainer now..
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2015-11-27 03:18:12 UTC
@Jack can you attach a patch to address the issue please?

This also needs to be MFH'd if relevant to the quarterly branch version.
Comment 4 Jack 2015-11-27 10:12:19 UTC
Sure, will have a patch ready shortly.
Comment 5 Jack 2015-11-27 10:46:22 UTC
Created attachment 163576 [details]
Patch to only dos2unix text files
Comment 6 Kubilay Kocak freebsd_committer freebsd_triage 2015-11-27 10:58:56 UTC
@Lenzi, can you test the attached patch and confirm whether that resolves the issue for you. Thanks!
Comment 7 commit-hook freebsd_committer freebsd_triage 2015-12-13 12:12:10 UTC
A commit references this bug:

Author: riggs
Date: Sun Dec 13 12:11:48 UTC 2015
New revision: 403661
URL: https://svnweb.freebsd.org/changeset/ports/403661

Log:
  Fix accidental dos2unix on non-text-files during build

  PR:		204816
  Submitted by:	lenzi.sergio@gmail.com
  Approved by:	xxjack12xx@gmail.com (maintainer)

Changes:
  head/audio/audacity/Makefile
Comment 8 Thomas Zander freebsd_committer freebsd_triage 2015-12-13 12:13:31 UTC
No MFH, this only affects HEAD.