You are not logged in.

#1 2015-03-09 21:05:21

willruss1
Member
From: Dallas, Tx
Registered: 2015-03-09
Posts: 5
Website

AUR filesize limit?

when I try to upload a newly built src package to the aur, it tells me:

413 Request Entity Too Large

This usually means there's a limit set on uploads with nginx, but in my case the file is only 2.3mb; that seems low for a limit on install packages.  Anyone know what the actual limit is?

Offline

#2 2015-03-09 21:13:17

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,650
Website

Re: AUR filesize limit?

What is in your src archive? It should just be a PKGBUILD and associated (small) files like an install scriptlet and patches.

Please post the PKGBUILD here.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2015-03-09 21:17:06

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,701

Re: AUR filesize limit?

You may want to read this article

Basically, the AUR is for PKGBUILDs, patch files and install files only.  The actual source is not hosted on the AUR and must reside elsewhere.  The PKGBUILD defines where where that 'elsewhere' is.


Edit:  Also, see this

Last edited by ewaller (2015-03-09 21:20:30)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2015-03-09 22:43:52

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: AUR filesize limit?

willruss1 wrote:

when I try to upload a newly built src package to the aur, it tells me:

413 Request Entity Too Large

This usually means there's a limit set on uploads with nginx, but in my case the file is only 2.3mb; that seems low for a limit on install packages.  Anyone know what the actual limit is?

2.3mb is HUGE for a text file or two, which is all that you should be uploading.

Offline

#5 2015-03-10 13:44:38

willruss1
Member
From: Dallas, Tx
Registered: 2015-03-09
Posts: 5
Website

Re: AUR filesize limit?

Fair enough, I'll find an external host for the binary bit. I know in the past I've gotten binary-inclusive AUR packages, though it may have been quite a while back.

Offline

#6 2015-03-10 14:01:55

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,420
Website

Re: AUR filesize limit?

... and to repeat the question, what's the "binary bit" you're including?


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#7 2015-03-10 14:38:59

willruss1
Member
From: Dallas, Tx
Registered: 2015-03-09
Posts: 5
Website

Re: AUR filesize limit?

It's a repack of a .deb package for barco clickshare presentation software.  My work has been using their stuff for a while in conference rooms but there's been no linux client.  They released one last month, but only for ubuntu and fedora.  It's a library file, a pair of pre-compiled executables, with a couple of icons.  Feel free to look for yourself, it's in the AUR now:

https://aur.archlinux.org/packages/barco-clickshare/

https://github.com/digi-merc/clickshare-arch

Offline

#8 2015-03-10 15:35:07

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,650
Website

Re: AUR filesize limit?

Can you not just download the deb/rpm they provide, then repackage it in the package function? Are you sure you're not violating their license by repackaging and redistributing it as you currently are?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#9 2015-03-10 15:40:44

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: AUR filesize limit?

Something like this should do it. The libresample in AUR is only static, so you'd have to add the debian patches to the PKGBUILD.

source=("barco.tar.gz::http://www.barco.com/tde/(0190171972002340)/R33050056/001007000029/Barco_ApplicationSoftware_R33050056_v01.07.00.29__ClickShare-Launcher-and-Client-for-Linux-Ubuntu-1404-LTS-64-.gz")

# barco.tar.gz gets autoextract
# in prepare
  bsdtar -xf clickshare_01.07.00-29_amd64.deb
# in prepare, build or package:
  bsdtar -C "$pkgdir" -xf data.tar.gz

libresample stuff:

https://tracker.debian.org/pkg/libresample
https://sources.debian.net/data/main/libr/libresample/0.1.3-4/debian/patches/1001_shlib-cmake.patch
*prepare:
patch -p1 <$pkgdir/1001_shlib-cmake.patch
sed -i '/add_subdirectory(tests)/d' CMakeLists.txt

*build:
cmake CMAKE_INSTALL_PREFIX=/usr .
make

*package:
make DESTDIR=... install

Last edited by progandy (2015-03-10 16:00:42)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#10 2015-03-10 19:11:22

willruss1
Member
From: Dallas, Tx
Registered: 2015-03-09
Posts: 5
Website

Re: AUR filesize limit?

No, I'm not sure I'm not breaking their license. Their EULA still displays whenever it runs for the first time, and the software itself is based on a number of other FOSS applications so I doubt they'd have any huge issues. If it's a legal issue for the AUR then I'll take it down.

As for how to best prepare this, I'm sure everyone has their 'best way' and progandy's example may well be a better way than mine. I spent half a day, took the way I manually made it work, and made it reproduce-able for others that might want to use this display client on their Arch systems (admittedly probably very few).  If you don't like the way I did it, don't use it; build your own, or if you really care that much I'll let whoever wants to take over the package.

I've used Arch exclusively for personal systems for close to 5 years, Linux exclusively for far longer. People always say 'contribute if you can', and I was just trying to contribute in the best way I know how. I got two screens worth of 'you did this wrong' for my trouble, so my incentive to contribute further at this point is quite low.

Last edited by willruss1 (2015-03-10 19:17:44)

Offline

#11 2015-03-10 20:06:21

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,701

Re: AUR filesize limit?

willruss1,

Speaking in moderator mode, I think you are misinterpreting  what is going on.  At the beginning of the thread it was clear that there was a disconnect in your understanding of the AUR.  I, and others, pointed you in the correct direction and you figured out what we were trying to say.  After that, the thread turned into a critical analysis of what you were doing.  That is best practice in engineering circles.  As in the world of engineering, don't take critical reviews personally.  Consider them a chance to defend your design and (perhaps) have someone find a weakness that can be improved upon.  And thank you for contributing.

Last edited by ewaller (2015-03-10 20:07:16)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#12 2015-03-10 20:07:37

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,420
Website

Re: AUR filesize limit?

Part of the Arch Way is to search for the most elegant solution. If you take offense to people trying to improve your work, instead of a compliment, then perhaps Arch is not for you.

edit: ninja'd

Last edited by Alad (2015-03-10 20:09:37)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#13 2015-03-10 20:30:17

willruss1
Member
From: Dallas, Tx
Registered: 2015-03-09
Posts: 5
Website

Re: AUR filesize limit?

Arch is for me, and anyone else that wants to use it.  That's what open source really means, use it, modify it, give back if you feel you've done something worthwhile. I take no offense to actual constructive criticism, and when I have time will probably work on bettering this, with the one or two actually useful responses.

Things like 'perhaps arch is not for you' is hardly constructive, in my eyes; but I really didn't want to start arguments with people I don't know anything about. I just wanted to give back to something that has made my job and life easier. I guess I'll just keep my contributions quieter next time.

Last edited by willruss1 (2015-03-10 20:30:38)

Offline

Board footer

Powered by FluxBB