Package Details: minify 2.20.34-1

Git Clone URL: https://aur.archlinux.org/minify.git (read-only, click to copy)
Package Base: minify
Description: Minifier CLI for HTML, CSS, JS, JSON, SVG and XML
Upstream URL: https://github.com/tdewolff/minify
Keywords: css html js json minifier minify svg web xml
Licenses: MIT
Submitter: 4679
Maintainer: 4679 (meepzh, tdewolff)
Last Packager: tdewolff
Votes: 15
Popularity: 1.16
First Submitted: 2016-05-03 08:05 (UTC)
Last Updated: 2024-06-11 19:38 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

1 2 3 Next › Last »

tdewolff commented on 2024-03-26 18:32 (UTC)

Thanks Nestor, this should be fixed now :-)

Nestor_013 commented on 2024-03-26 14:38 (UTC) (edited on 2024-03-26 14:40 (UTC) by Nestor_013)

Hi since your last change, I got a

go: downloading golang.org/x/sys v0.16.0
-linkmode requires external (cgo) linking, but cgo is not enabled
==> ERROR: A failure occurred in build().
Aborting...

Any clue on how to solve this ?

ahoehne commented on 2024-03-24 14:01 (UTC)

thanks alot, that fix worked =) the default seems to be 1, so we didn't needed to set CGO_ENABLED=1 explicitly, we just had problems with it being set to 0.

tdewolff commented on 2024-03-24 13:22 (UTC)

I've pushed out a fix, can you please test it @ahoehne?

tdewolff commented on 2024-03-24 13:10 (UTC)

Hi @ahoehne, there is no C code in this library and thus CGO is not required to build this package. Disabling CGO has some benefits I forgot...

The problem is that using the PIE buildmode on a Raspberry requires CGO regardless. Is there a way to use an if-statement in makepkg depending on the platform? Or we could just enable CGO anyways...

ahoehne commented on 2024-03-24 12:18 (UTC) (edited on 2024-03-24 12:55 (UTC) by ahoehne)

Hi, just wanted to install this package on my Raspberry (4B) running archlinuxforarm.

Thanks for supplying the aur package =)

It compiled successfully (tests also passing) and seems to work great with following changes:

added arch 'armv7h'

export CGO_ENABLED=1

without the CGO_ENABLED setting i received following error:

-buildmode=pie requires external (cgo) linking, but cgo is not enabled

i just checked the history and saw an commit two years ago where you disabled CGO, would this still be needed or do you have an idea how we could set that export depending on the architecture, so we can get it running without breaking something ?

shaneallgeier commented on 2022-05-30 16:52 (UTC)

Thanks!

tdewolff commented on 2022-05-30 16:23 (UTC)

Fixed

shaneallgeier commented on 2022-05-30 15:55 (UTC)

FYI: I'm getting an error for 2.11.6-1:

==> Making package: minify 2.11.6-1 (Mon 30 May 2022 10:54:29 AM CDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found v2.11.6.tar.gz
==> Validating source files with sha256sums...
    v2.11.6.tar.gz ... Passed
==> Extracting sources...
  -> Extracting v2.11.6.tar.gz with bsdtar
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
==> Starting check()...
ok      github.com/tdewolff/minify/v2   (cached)
ok      github.com/tdewolff/minify/v2/benchmarks        (cached) [no tests to run]
ok      github.com/tdewolff/minify/v2/cmd/minify        (cached)
ok      github.com/tdewolff/minify/v2/css       (cached)
ok      github.com/tdewolff/minify/v2/html      (cached)
--- FAIL: TestJSVarRenaming (0.00s)
    --- FAIL: TestJSVarRenaming/name=function(){var_a001,a002,a003,a004,a005,a006,a007,a008,a009,a010,a011,a012,a013,a014,a015,a016,a017,a018,a019,a020,a021,a022,a023,a024,a025,a026,a027,a028,a029,a030,a031,a032,a033,a034,a035,a036,a037,a038,a039,a040,a041,a042,a043,a044,a045,a046,a047,a048,a049,a050,a051,a052,a053,a054,a055,a056,a057,a058,a059,a060,a061,a062,a063,a064,a065,a066,a067,a068,a069,a070,a071,a072,a073,a074,a075,a076,a077,a078,a079,a080,a081,a082,a083,a084,a085,a086,a087,a088,a089,a090,a091,a092,a093,a094,a095,a096,a097,a098,a099,a100,a101,a102,a103,a104,a105,a106,a107,a108,a109,a110,a111,a112,a113,a114,a115,a116,a117,a118,a119;a001,a002,a003,a004,a005,a006,a007,a008,a009,a010,a011,a012,a013,a014,a015,a016,a017,a018,a019,a020,a021,a022,a023,a024,a025,a026,a027,a028,a029,a030,a031,a032,a033,a034,a035,a036,a037,a038,a039,a040,a041,a042,a043,a044,a045,a046,a047,a048,a049,a050,a051,a052,a053,a054,a055,a056,a057,a058,a059,a060,a061,a062,a063,a064,a065,a066,a067,a068,a069,a070,a071,a072,a073,a074,a075,a076,a077,a078,a079,a080,a081,a082,a083,a084,a085,a086,a087,a088,a089,a090,a091,a092,a093,a094,a095,a096,a097,a098,a099,a100,a101,a102,a103,a104,a105,a106,a107,a108,a109,a110,a111,a112,a113,a114,a115,a116,a117,a118,a119} (0.00s)
    js_test.go:833:: 
            name=function(){var a001,a002,a003,a004,a005,a006,a007,a008,a009,a010,a011,a012,a013,a014,a015,a016,a017,a018,a019,a020,a021,a022,a023,a024,a025,a026,a027,a028,a029,a030,a031,a032,a033,a034,a035,a036,a037,a038,a039,a040,a041,a042,a043,a044,a045,a046,a047,a048,a049,a050,a051,a052,a053,a054,a055,a056,a057,a058,a059,a060,a061,a062,a063,a064,a065,a066,a067,a068,a069,a070,a071,a072,a073,a074,a075,a076,a077,a078,a079,a080,a081,a082,a083,a084,a085,a086,a087,a088,a089,a090,a091,a092,a093,a094,a095,a096,a097,a098,a099,a100,a101,a102,a103,a104,a105,a106,a107,a108,a109,a110,a111,a112,a113,a114,a115,a116,a117,a118,a119;a001,a002,a003,a004,a005,a006,a007,a008,a009,a010,a011,a012,a013,a014,a015,a016,a017,a018,a019,a020,a021,a022,a023,a024,a025,a026,a027,a028,a029,a030,a031,a032,a033,a034,a035,a036,a037,a038,a039,a040,a041,a042,a043,a044,a045,a046,a047,a048,a049,a050,a051,a052,a053,a054,a055,a056,a057,a058,a059,a060,a061,a062,a063,a064,a065,a066,a067,a068,a069,a070,a071,a072,a073,a074,a075,a076,a077,a078,a079,a080,a081,a082,a083,a084,a085,a086,a087,a088,a089,a090,a091,a092,a093,a094,a095,a096,a097,a098,a099,a100,a101,a102,a103,a104,a105,a106,a107,a108,a109,a110,a111,a112,a113,a114,a115,a116,a117,a118,a119}
            name=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u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,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,at,au,av,aw,ax,ay,az,aA,aB,aC,aD,aE,aF,aG,aH,aI,aJ,aK,aL,aM,aN,aO,aP,aQ,aR,aS,aT,aU,aV,aW,aX,aY,aZ,a_,a$,a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,ba,bb}
FAIL
FAIL    github.com/tdewolff/minify/v2/js        0.039s
ok      github.com/tdewolff/minify/v2/json      (cached)
ok      github.com/tdewolff/minify/v2/minify    (cached)
ok      github.com/tdewolff/minify/v2/svg       (cached)
ok      github.com/tdewolff/minify/v2/xml       (cached)
FAIL
==> ERROR: A failure occurred in check().
    Aborting...

twheel commented on 2022-05-24 14:37 (UTC)

Worked perfectly, thanks!