You are not logged in.

#26 2011-07-12 18:36:02

SS4
Member
From: !Rochford, Essex
Registered: 2010-12-05
Posts: 699

Re: absent, an ABS handler

Looking good, I tested it using clementine as an example and it worked brilliantly even down to me specifying the -cs flag


Rauchen verboten

Offline

#27 2011-07-12 18:59:49

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: absent, an ABS handler

barzam wrote:

Just a quick FYI, public domain isn't a valid legal term outside of the US and similar (and judging by your last name you are Norwegian?).

#!/bin/bash
# Tool for Arch Linux to quickly search a tree of PKGBUILDs and build packages.
# Written by Johannes Langøy, 2010-2011. Public domain.

I'd recommend giving it a valid license, such as the WTFPL or something similar (see http://en.wikipedia.org/wiki/WTFPL)

Very useful tool by the way, thanks for writing it and providing it. Now maybe I'll give the ABS a go!

You sure? Nothing about "US and similar" only on http://en.wikipedia.org/wiki/Public_domain
Well, if your country doesn't recognize the public domain, you can use MIT/ISC/WTFPL.

Last edited by JohannesSM64 (2011-07-12 19:06:59)

Offline

#28 2011-07-12 19:38:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: absent, an ABS handler

http://www.sqlite.org/copyright.html

Obtaining An Explicit License To Use SQLite

Even though SQLite is in the public domain and does not require a license, some users want to obtain a license anyway. Some reasons for obtaining a license include:

    You are using SQLite in a jurisdiction that does not recognize the public domain.
    You are using SQLite in a jurisdiction that does not recognize the right of an author to dedicate their work to the public domain.
    You want to hold a tangible legal document as evidence that you have the legal right to use and distribute SQLite.
    Your legal department tells you that you have to purchase a license.

Offline

#29 2011-07-13 04:05:07

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: absent, an ABS handler

A really small point, but should the default config location be at $XDG_CONFIG_HOME?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#30 2011-07-13 05:39:11

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: absent, an ABS handler

karol wrote:

http://www.sqlite.org/copyright.html

Obtaining An Explicit License To Use SQLite

Even though SQLite is in the public domain and does not require a license, some users want to obtain a license anyway. Some reasons for obtaining a license include:

    You are using SQLite in a jurisdiction that does not recognize the public domain.
    You are using SQLite in a jurisdiction that does not recognize the right of an author to dedicate their work to the public domain.
    You want to hold a tangible legal document as evidence that you have the legal right to use and distribute SQLite.
    Your legal department tells you that you have to purchase a license.

Yeah, if you need a license you can use MIT, ISC or WTFPL.
In the style of werc:

License
Public domain, because so called 'intellectual property' is an oxymoron.

Alternatively if your prefer it or your country's brain dead copyright law doesn't recognize the public domain werc is made available under the terms of the MIT and ISC licenses.

Jasonwryan: pushed

Last edited by JohannesSM64 (2011-07-13 06:16:21)

Offline

#31 2011-07-13 06:09:25

barzam
Member
From: Sweden
Registered: 2009-01-27
Posts: 277

Re: absent, an ABS handler

Yeah I'm sure there's no such thing as public domain in the civil (non-British) legal tradition (IANAL, but almost done law student).

The legal reason behind this is that copyright (in this civil law sense) consists of two parts: economic and moral rights. The moral rights can never be transferred -- not even by inheritance, so it's not possible to actually place your copyrighted work in the public domain, what you must do is provide a proper license which amounts to the same in the end.

All this depends on applicable law of course.

Offline

#32 2011-07-13 18:08:36

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Re: absent, an ABS handler

In my simple abs bash function I utilice customizepkg for auto applying the needed customizations... (it's now also an optdepends for both packer and aurget)

Just a thought, since some of your users where discussing ways to use diff and such...

Offline

#33 2011-07-14 14:24:33

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: absent, an ABS handler

customizepkg is supported now.

Last edited by JohannesSM64 (2011-07-14 16:45:55)

Offline

#34 2011-07-20 21:30:30

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: absent, an ABS handler

btw, absent can be used for AUR if you use this and add searchdirs+=("/var/aur") to .absentrc.

Offline

#35 2011-07-22 20:00:18

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: absent, an ABS handler

Added ABS sync support, thanks to jasonwryan for suggestion.

Offline

#36 2011-07-24 01:19:38

tacticalbread
Member
From: Bay Area, CA
Registered: 2011-04-09
Posts: 127
Website

Re: absent, an ABS handler

Is it currently possible to specify a subdir of $builddir for the repo it's in? I'd like to keep my build dir like ~/abs/{core,community,extra}

edit: derp, just remembered this is a bash script. I'll attempt to add it myself.

and a patch, if you want it. Kind of crude, ( I used sed to remove /var/abs/ from the match to get the repo, so it wouldn't work if searchdir isn't in /var/abs/ )

--- /home/vastlocyr/.bin/absent    2011-07-23 22:22:24.561840228 -0400
+++ /usr/bin/absent    2011-07-20 18:08:50.000000000 -0400
@@ -86,13 +86,8 @@
                     exit 1
                 fi
             fi
-
-            repo=$(echo ${match%/*} | sed 's/\/var\/abs\///')
-            oldbuilddir=$builddir
-            builddir="$builddir/$repo"
-
             cp -r "$match" "$builddir" || exit
-            echo "${color2}::$ec $n found in ${match%/*} from repo $color1$repo$ec and copied to $builddir"
+            echo "${color2}::$ec $n found in ${match%/*} and copied to $builddir."
             cd "$builddir"/${n}
             rm -rf pkg src
             [[ $mode = -S ]] && { interactive "$n" || exit; }

Hope that works; I've never created a patch before. tongue

Last edited by tacticalbread (2011-07-24 02:26:26)


don't save us from the flames

Offline

#37 2011-07-24 14:13:49

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: absent, an ABS handler

Hi, I used your builddir suggestion in the latest commit.
You got the patch order wrong btw, it's diff [-u] oldfile newfile

Offline

#38 2011-07-24 19:34:34

tacticalbread
Member
From: Bay Area, CA
Registered: 2011-04-09
Posts: 127
Website

Re: absent, an ABS handler

JohannesSM64 wrote:

Hi, I used your builddir suggestion in the latest commit.

Wonderful! Thanks! :D

JohannesSM64 wrote:

You got the patch order wrong btw, it's diff [-u] oldfile newfile

Hmm, I did diff -NBuar. Oh well. :P

ooh and I did diff -NBuar newfile oldfile.

Last edited by tacticalbread (2011-07-24 19:35:20)


don't save us from the flames

Offline

#39 2011-07-24 20:04:51

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: absent, an ABS handler

Flags are fine, I meant the file argument order..

Offline

#40 2011-07-24 20:20:37

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: absent, an ABS handler

JohannesSM64 wrote:

Flags are fine, I meant the file argument order..

So you need to patch it the other way round, right?

Offline

#41 2011-07-24 23:31:04

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: absent, an ABS handler

No, you need to create a proper diff by transposing the file name arguments..

Last edited by JohannesSM64 (2011-07-24 23:32:44)

Offline

Board footer

Powered by FluxBB