You are not logged in.

#1 2012-12-19 13:26:28

Nilux
Member
From: Finland
Registered: 2012-02-01
Posts: 18

first PKGBUILD, no success

Could anyone kindly help me out? I'm trying to make a PKGBUILD with little success.

https://aur.archlinux.org/packages/tbs-linux-drivers/

It should build some drivers + install them and some firmware to /usr/lib/firmware/

Offline

#2 2012-12-19 13:41:31

mariusmeyer
Member
From: Norway
Registered: 2009-04-25
Posts: 244

Re: first PKGBUILD, no success

What goes wrong?

Offline

#3 2012-12-19 13:45:09

mariusmeyer
Member
From: Norway
Registered: 2009-04-25
Posts: 244

Re: first PKGBUILD, no success

First of all, I think you can drop all the "| return 1" stuff. Also, I have seen many people put quotes on the url in the source()-array.

Offline

#4 2012-12-19 20:36:50

Nilux
Member
From: Finland
Registered: 2012-02-01
Posts: 18

Re: first PKGBUILD, no success

Sorry for not being so specific. I was expecting someone to try out the pkgbuild. -Which was a silly assumption.

ok I cleaned away all the "| return 1" things. During the build() -function it stopped with permission error:

make -C /tmp/makepkg/src/linux-tbs-drivers/v4l
make: *** /tmp/makepkg/src/linux-tbs-drivers/v4l: Permission denied. Stop.
make: *** [all] Error 2
==> ERROR: error occurred in function build().
    Reversing...
==> ERROR: Makepkg was unable to build tbs-linux-drivers.

This was translated. My locale is Finnish

Offline

#5 2012-12-19 20:54:49

Nilux
Member
From: Finland
Registered: 2012-02-01
Posts: 18

Re: first PKGBUILD, no success

Just for the record, I spent 6 hours reading AUR, PKGBUILD and makepkg guides and man pages. (before someone tells me to...)
I think it's worth the effort anyhow. I'm not into bash syntax yet, so possibly it's just a syntax error.

Offline

#6 2012-12-19 22:03:03

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: first PKGBUILD, no success

Contents of linux-tbs-drivers.tar.bz2 have broken permissions - directories should be set executable, as should scripts in v4l/scripts/.

"make install" belongs to package(), methinks.

It fails to build here anyhow.

Offline

#7 2012-12-19 22:42:55

mariusmeyer
Member
From: Norway
Registered: 2009-04-25
Posts: 244

Re: first PKGBUILD, no success

So, you should probably get in touch with whoever uploads the driver package you're trying to build from, and have them fix the permissions.

Offline

#8 2012-12-21 13:21:04

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: first PKGBUILD, no success

about the license : check the COPYING file in the linux-tbs-drivers.tar.bz2 tarball.
It clearly states that sourcecode is released under the GPL v2.

There's no mention of any license wrt to the firmware files, so keep unknown for that.
for now license field should be ('GPL2' 'unknown') .

If you are going to write to TBS, then also suggest them to add something about the license/copying for the firmware.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB