You are not logged in.

#1 2013-03-24 18:01:15

HaCeMei
Member
Registered: 2013-03-24
Posts: 38

[solved] brother-mfc-j220 – PKGBUILD contains CRLF characters

Hi,

on trying to build the brother-mfc-j220 package (from AUR) I get the message

~/Desktop/pkg/brother-mfc-j220$ LANG=en makepkg
==> ERROR: PKGBUILD contains CRLF characters and cannot be sourced.

Don't know how to find/ remove them from
https://aur.archlinux.org/packages/br/b … 0/PKGBUILD

Last edited by HaCeMei (2013-03-24 20:41:13)


No new thing under the sun

Offline

#2 2013-03-24 18:06:00

HaCeMei
Member
Registered: 2013-03-24
Posts: 38

Re: [solved] brother-mfc-j220 – PKGBUILD contains CRLF characters

Sorry for posting in the wrong sub-forum. Can anybody move this to "AUR Issues, Discussion & PKGBUILD Requests"?


No new thing under the sun

Offline

#3 2013-03-24 18:24:54

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: [solved] brother-mfc-j220 – PKGBUILD contains CRLF characters

It doesn't seem to have ^M endings.. I would just use community/dos2unix for this one.

$ dos2unix PKGBUILD

Last edited by tdy (2013-03-24 18:33:02)

Offline

#4 2013-03-24 20:38:37

HaCeMei
Member
Registered: 2013-03-24
Posts: 38

Re: [solved] brother-mfc-j220 – PKGBUILD contains CRLF characters

Hey,  look at this

(1/1) Installiere brother-mfc-j220                 [#######################] 100%
==> Done. The printer should be visible now via the CUPS-webinterface (http://localhost:631)

You've made my day. Thanks smile. How did you know?


No new thing under the sun

Offline

#5 2013-03-24 21:59:55

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: [solved] brother-mfc-j220 – PKGBUILD contains CRLF characters

It's just something that happens when people use Windows editors.. don't ask me why they do this for a file that's only useful in Arch. Usually you can see ^M endings in vim if you ":set list," but in this case it was some other newline char that wasn't visible. dos2unix is just an all-purpose text converter to deal with issues like this.

Offline

Board footer

Powered by FluxBB