Commit Graph

99 Commits

Author SHA1 Message Date
Brad Fitzpatrick 6f58fc2426 Fix build, move more stuff from third_party to vendor. 2015-08-18 10:19:49 +02:00
Will Norris 6c231339dc add blackfriday and deps to third_party
russross/blackfriday (BSD license, version 8cec3a8) parses and converts
markdown to HMTL.

shurcooL/sanitized_anchor_name (MIT license, version 11a20b7) generates
anchor names for HTML headings.

Change-Id: I475ec76a1a252354071abfbe2d9c97b234144b3e
2015-07-23 14:57:04 -07:00
Felix Geller 3a2ea94c13 Updates github.com/rwcarlsen/goexif to 709fab3
source: https://github.com/rwcarlsen/goexif/commit/709fab3

Removes some more sample files and test files that fail
without sample files.

Change-Id: I38f91ade479a929805b6d40d98f1643ad45e707d
2015-05-25 07:51:53 +12:00
Tamás Gulácsi a9a7cd73fc Upgrade github.com/syndtr/goleveldb
Commit 4875955338b0a434238a31165cb87255ab6e9e4a

Because camlistored ate my CPU time (constant 170% from 2 cpu, GOMAXPROCS=1):

(pprof) top10
36 of 40 total (90.00%)
Showing top 10 nodes out of 75 (cum >= 3)
      flat  flat%   sum%        cum   cum%
         1  2.50%  2.50%         40   100%  runtime.goexit
        35 87.50% 90.00%         35 87.50%  runtime.gopark
         0     0% 90.00%         21 52.50%  runtime.selectgo
         0     0% 90.00%         21 52.50%  runtime.selectgoImpl
         0     0% 90.00%          9 22.50%  runtime.goparkunlock
         0     0% 90.00%          5 12.50%  runtime.chanrecv
         0     0% 90.00%          3  7.50%  camlistore.org/third_party/github.com/syndtr/goleveldb/leveldb.(*DB).compactionError
         0     0% 90.00%          3  7.50%  camlistore.org/third_party/github.com/syndtr/goleveldb/leveldb.(*DB).jWriter
         0     0% 90.00%          3  7.50%  camlistore.org/third_party/github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction
         0     0% 90.00%          3  7.50%  camlistore.org/third_party/github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain

Change-Id: I792840b32bcb04d304621e61fca87aeb30f21b91
2015-04-22 22:48:16 +02:00
Brad Fitzpatrick c9a0beae45 Add new 'env' package to detect the type of environment.
Also, delete my old gce package from third_party and only use the
google metadata package (which my gce package became, and which was
also already vendored into third_party)

Fixes #596

Change-Id: I64fd6f1e9dc6f433466f91f81efd2ecbf039334f
2015-04-01 08:45:36 -07:00
Brad Fitzpatrick 20b249372c third_party: update github.com/bradfitz/http2 to 13dfd8
From 13dfd8: 'Advertise 'h2' protocol, now that HTTP/2 is final.
We still advertise h2-14 too for a bit.'

Change-Id: Ic784937bf43c132c8a9259c50933839bedaef81a
2015-03-31 22:33:05 +02:00
mpl 6c2c581179 third_party/goexif: update to 07696a806c8bc37bcff4af76fbc3f9e44a6941fc
fixes OOM errors, as reported in  #414

Thanks to @hullerob for the heads up.

Also remove the test files because most of the tests are useless
without the sample data, which we don't ship.

Change-Id: Ia56b0184111d32a3c089785bf42cebb9b47af406
2015-03-30 17:04:44 +02:00
Brad Fitzpatrick 5f041a3b6a Update github.com/bradfitz/http2 to f0f7876b264 in third_party.
Includes:

commit f0f7876b264515bf0c86c37d78ab558d939b82b0
Author: Brad Fitzpatrick <brad@danga.com>
Date:   Sat Jan 17 12:25:12 2015 -0800

    Don't enforce SNI for now.

    It was causing problems in development.

commit 36f7934bd38f22905a9eba016885fe04856ca4d1
Author: Brad Fitzpatrick <brad@danga.com>
Date:   Sat Jan 17 12:24:34 2015 -0800

    Be more verbose when rejecting connections; including which bogus ciphersuite.

commit 76847809286eae2e2f066cd3f88c8bc960a08dbd
Author: Brad Fitzpatrick <brad@danga.com>
Date:   Sat Jan 17 12:23:24 2015 -0800

    In curl integration test, include output along with non-zero exit status in failure message.

    Change-Id: I5bc392586ba54fc83bc5e54b7b4c27ef25530e4c

commit af958b3ad4d6dd0ffe9599ea2351653ed45c2fe5
Author: Brad Fitzpatrick <brad@danga.com>
Date:   Sat Jan 17 12:21:49 2015 -0800

    Update curl in integration test Dockerfile to 7.40.0

    And pin the nghttp2 version, and to something more modern.

    Change-Id: Ie631b519b9ec9278b521598353730d1cfd4f8976

Change-Id: I2ec8bc049e27e63dce07cabe3529f96123181e40
2015-01-17 13:00:15 -08:00
mpl a27306d74a third_party/github.com/bradfitz/http2: update to 7882a790a7e1a06d865147c791cbf1ac8dc197c5
issue #533

Change-Id: Id3e32e60565502c77c63a13821cd1084198d1617
2015-01-13 15:02:48 +01:00
Brad Fitzpatrick ad145260c0 Update more links to use the camlistore.org redirector.
Change-Id: I1ef94301d7ac0df69abc4f3f27bcb363fa8e8082
2014-12-13 17:25:16 +11:00
Brad Fitzpatrick 82be61629f Update github.com/bradfitz/http2 to 36d9a67b6d4
Exports the NPN constant.

Change-Id: I1f7570cc46579e76b215f10162a742f10ca766cd
2014-11-26 08:44:47 -08:00
Brad Fitzpatrick 1a26ffa382 Import github.com/bradfitz/http2 at 8ec321e3925b
Change-Id: Ia75786f7d8e635e88b4c8821cb32e19d24b463f2
2014-11-26 07:33:24 -08:00
Mathieu Lonjaret ef405b3ad4 Merge "third_party/fileutil: update to 7dd7cf336e002422bd1467eaaab9d0681ae1a33a Adds support for OpenBSD" 2014-10-29 16:29:18 +00:00
Aaron Bieber ea879e1ca5 third_party/fileutil: update to 7dd7cf336e002422bd1467eaaab9d0681ae1a33a
Adds support for OpenBSD

Change-Id: I6f38d25529fcee1c778aca07a67e2ac33caecf3d
2014-10-29 10:13:19 -06:00
mpl f97cf5b587 third_party/goexif: bump to 9fb3b23c1aaada5775178242884b75d4f4a330d3
Change-Id: I31f509f32ec6a2fe93cd78a9d09146b0bb6b302e
2014-10-29 00:46:56 +01:00
Bill Thiede 1fee0f1816 third_party: cleanup imports.
I think these snuck in because not everyone has the client side git
hooks registered to check on misc/review.
Removed third_party/github.com/bradfitz/latlong/gen_test.go (per
review feedback)

Change-Id: Ide09d152b28157a043009d7285f1afd4a60ac9de
2014-10-01 22:08:13 -07:00
Tamás Gulácsi 9c0c99ba6f Add github.com/syndtr/goleveldb/leveldb
To be used as a sorted.KeyValue.
Upstrem version is 9bca75c48d6c31becfbb127702b425e7226052e3

I've removed some tests which would require github.com/onsi/gingko &Co.

Change-Id: I0ee50ca7d10a882b1c5ff73a81e52006e3554c4d
2014-09-19 21:03:03 +02:00
Fabian Wickborn 59a451c2dc Merge upstream goexif
This pulls the changes from the current HEAD of
https://github.com/rwcarlsen/goexif
(eb2943811adc24a1a40d6dc0525995d4f8563d08)

Notable changes:
- Removed explicit panics in favor of error returns
- renamed TypeCategory to Format and made format calculated upon
  decoding rather than repeatedly for every format call
- Merged contributions from Camlistore (exif.LatLong(), exif.DateTime()
  etc.)
- Change String method to just return the string value - and don't have
  square brackets if only a single value
- add separate Int and Int64 retrieval methods
- Doc updates

Minor changes in camlistore.org/pkg/* were neccessary to reflect
changes in the API (handling of returned errors) and in names of
exported fields and methods.

Change-Id: I50412b5e68d2c9ca766ff2ad1a4ac26926baccab
2014-09-17 10:40:38 +02:00
Fabian Wickborn 2aed1b8241 Renamed goexif folder to match upstream URL
In the advent of github.com/camlistore/goexif to be closed, this
commit renames the goexif folder in third_party to match the
upstream on GitHub.

The affected import paths have been rewritten accordingly.

Change-Id: I5a8871efd01987944b7f5e93979307857ae16fe7
2014-09-05 17:27:59 +02:00
Fabian Wickborn f0d9c04bc2 Merge goexif with upstream package
This pulls the changes from the current HEAD of
https://github.com/rwcarlsen/goexif
(rev cf045e9d6ba052fd348f82394d364cca4937589a)

Changes to goexif from upstream:
- Add support for reading Nikon and Canon maker notes
- Adds parser registration to exif package
- Renamed cmd to exifstat
- Renamed exported fields and methods in goexif/tiff
- adds support for bare tiff images. bug fix and minor cosmetics
- support pulling the thumbnail
- adds thumbnail support to exif pkg
- tiff defines DataType and constants for the datatype values
- Update covnertVals and TypeCategory to use new constants for DataType
- Renamed test data dir in exif tests
- created type+constants for raw tiff tag data types

Not merged from upstream:
- ~1 MB of test JPGs in goexif/exif/samples

Minor changes in camlistore.org/pkg/* were neccessary to reflect the
name changes in the exported fields and methods.

Change-Id: I0fdcad2d7b5e01e0d4160a5eb52b8ec750d353cf
2014-09-05 08:36:42 +02:00
Tamás Gulácsi 31dcddca41 Let Camlistore build on Solaris
The biggest obstacle is that syscall lacks Mkfifo on Solaris
(I've opened issue 8609 on Go for this).
Now I provide the same implementation for it as there is on Linux:
call Mknod.

github.com/cznic/fileutil needs IsEOF, so I've copied the plan9
(hole punching is stubbed out) implementation.

github.com/lib/pq: I've added solaris as a posix build tag.

Change-Id: Id667c488606a274849dc9b0af76abf1daeab5ad7
2014-08-28 14:26:11 +02:00
Aaron Boodman 290413a692 My import of picasa was failing because the number of photos
returned by the API was different (by one) than the number of
photos claimed in the top-level NumPhotos attribute.

Instead of relying in the NumPhotos attribute, just keep
requesting until we get a response with nothing in it.

This is also more robust against the (admitted edge-case of
the album contents changing while the importer is running.

Change-Id: Id928a6526e2805aa64e2e59828e2575235bcf9b9
2014-08-19 22:58:01 -07:00
mpl 00832f8ecb third_party/kv: update to a9e92863f9c096cd0de82eb9c71af2a59174e671
with dependencies:
bufs: 3dcccbd7064a1689f9c093a988ea11ac00e21f51
exp: 9b0e4be12fbdb7b843e0a658a04c35d160371789
fileutil: 73109188c05569cd7eaf09a523a090e714fa9d37
mathutil: 1dc74626b71a300f674026585083535b6a4d3853
sortutil: e14776c5119b49f2cf829486056e411043b6b6b2
zappy: be0e6f7682658396e2ce883e87d9de3abc08fb74

Change-Id: I00c6ea4e85a62fe8268c41b1e3524ded64c235fb
2014-08-18 23:03:56 +02:00
Brad Fitzpatrick cf380d917f Update gce to aef7815
Change-Id: I35df55eebae3d2e18898d82d4bbab8c8825af78a
2014-08-15 22:04:36 -07:00
Brad Fitzpatrick 1d09bd4ebb update gce library in third_party
Change-Id: I9b06b0c39e71f1d7b9d59d795d31596238fc3e44
2014-08-02 21:47:37 -07:00
Brad Fitzpatrick bebfe1bc7f Add github.com/bradfitz/gce to third_party.
Change-Id: Id5f504da159223ac6c695ea18b277ce1f3bc7960
2014-08-02 19:13:16 -07:00
Brad Fitzpatrick 8fbd54c09b picasa: set url property on photos and albums
Change-Id: If89ee61138e4fb80e68f87130c5fe189b7d82582
2014-07-31 14:34:52 -07:00
Brad Fitzpatrick d4f22274cd picasa: document and simplify Photo fields in picago.
Be smarter about title vs description. Don't use caption as an attribute name.

Change-Id: I746fc6d88e27b6b85a8505456e6eb423443d7840
2014-07-30 16:24:56 -07:00
Brad Fitzpatrick 95492813b1 picasa: clean up album attributes, add tests, fix keywords with spaces
Change-Id: I32faae16334e3999731f3980502eb6a1a6d38595
2014-07-30 15:50:34 -07:00
Brad Fitzpatrick 29c63cc2ab picasa, picago: support video, change struct definitions, add start of more tests 2014-07-29 11:44:44 -07:00
mpl cc4a7bb737 third_party/picago: update to 748d17b605ea675a56859678b1b0a57b38d082d0
Fixes off by one error.

For reference: picago was first vendored in at camli ref
65fa5d6d3e

Change-Id: Id58e067a4f89199e9b20cea834bccac5decfac89
2014-07-25 16:05:51 +02:00
Brad Fitzpatrick b6d3d1a103 exif: add Exif.LatLong accessor
Change-Id: I5d5d1d3d8124e665d6bb7e6cb7d06107aa39bda7
2014-07-13 10:23:30 -07:00
Brad Fitzpatrick a827380644 exif: make DateTime return time.Local location when unknown timezone
Change-Id: Id3ea677389e3e2e4e765116e85c0c60fb74fdff8
2014-07-13 10:22:45 -07:00
Brad Fitzpatrick 06cd39ebb8 Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2014-07-11 21:09:46 -07:00
Brad Fitzpatrick 3967119923 Import github.com/bradfitz/latlong to third_party.
Change-Id: Ia952a23995b91ac9865bd0ae912bf0bf88289146
2014-07-11 21:08:50 -07:00
Bill Thiede 9d58809e8f lock: Merge added FreeBSD support from upstream.
Change-Id: I2cb6de1fe32069a675eed405744d632054d67a11
2014-07-04 19:21:02 -07:00
Bill Thiede eb7f66fe28 jpeg: enable images/jpeg imported from Go tip.
Addresses https://camlistore.org/issue/463

Change-Id: Ie7b8f937ded78d95875f4cd13b024d0429136981
2014-07-02 21:22:15 -07:00
Bill Thiede 4becc15cec third_party/github.com/nf/cr2: sync with upstream.
commit 6fc9728c6d1f6a9cf3ed81763e8cdcad762ad060
Author: Bill Thiede <git@xinu.tv>
Date:   Mon May 26 15:17:57 2014 -0700

    Add NewReader to public API.

    NewReader allows direct extraction of the embedded JPEG thumbnail found in
    CR2 images, without first needing to decompress the thumbnail.

commit 3198f1193fd4f9eca7b1b0bd6645b94208128fa0
Author: Bill Thiede <git@xinu.tv>
Date:   Sat May 24 20:25:46 2014 -0700

    Doc cleanup and s/tiff/cr/ in error messages.

    This library was forked from the tiff library, but is distinct.  The error
    messages should indicate that to aid in debugging.

    Removed one limitation in package doc, more tests were added in commit
    a67a1ab62fb3eb9e699f85116ab4e24b639de04e

Change-Id: I64c519f7cdd4a0b85fd7a2499c0bdcd76c02f2ce
2014-05-27 21:52:42 -07:00
Tamás Gulácsi cbb777ffb0 Rewrite Picasa importer for the new Importer API
Reorganizes common OAuth2 things into importer/oa2_importers.go
Rewrites CallbackURLParameters to return url.Values.

A controversial workaround for nil context has been left out,
and this may cause panic and will need a proper fix.

Change-Id: I0789f4732412aa559078ec2c6b6797925ab8cd05
2014-05-21 22:37:50 +02:00
mpl 45ce6cfdd3 mysql: replace mymysql with go-sql-driver
from github.com/go-sql-driver/mysql at 9a7aa3606b82e2081a13a008ada88dfdb96c20fd

Context: http://camlistore.org/issue/428

Change-Id: Ia93ac35da02933bd03d2c6b7b8e5e549ba0472cb
2014-05-01 17:42:51 +02:00
mpl 5f9e4bbcb8 third_party/kv: bump lldb to 72d8c73cb89f78f33c3a63243b4d24c0b4b1d60b. should fix corruptions.
http://camlistore.org/issue/394

Change-Id: Ib0ddd40dc4af6d69d595ef4429fc71cef28a9450
2014-04-08 20:59:17 +02:00
mpl 697fd3b840 cznic/kv: bump to ad6be3ee976d5a8ec01072bac898a5db0a5c61ce (bugfix)
Change-Id: I967c691fc30dfc16620e569182817afa65a24529
2014-03-20 12:18:34 +01:00
mpl 1ededef4ca cznic/kv: bumped to acb8d1b9040438369038812735a8fff92ec11048
Change-Id: I2a4dc85aba4d215847224b2a8d00ad8198783f1b
2014-03-19 23:06:23 +01:00
Tamás Gulácsi 65fa5d6d3e Picasa: add importer.
Imports all images from all albums, and puts each image in its album.
Each album is linked under "Picasa (<username>)".
Tries to skip already imported files (check based on album/filename).
See Issue #391.

Change-Id: If00751671a429891c05bbe41f59c1421b2ff2de8
2014-03-17 10:52:51 +01:00
Daniel Erat 404548d31a pkg/index: Index more music-related properties.
Add disc and mediaref (a hash of the audio portion of the
file).

Also relocate taglib code to
third_party/github.com/hjfreyer/taglib-go.

Change-Id: I58364f525b787484af894663125163095256d7c6
2014-01-22 21:25:05 -08:00
Brad Fitzpatrick 2f022a4444 Update cznic/kv to 1a1aa67018afcbe34b1448bae94661feab6c5ecd
Fixes camlistore.org/issue/332

Change-Id: Ie2de810b4572077263418fc6fdd17e2508ff7b24
2014-01-10 09:22:04 -08:00
mpl 7c4d20c6d8 Merge "third_party: import github.com/davecgh/go-spew at 65ca732a33a40c2a5b9e036f236f975e7e85cf6c" 2014-01-09 19:50:26 +00:00
mpl 2b6bde1be3 third_party: import github.com/davecgh/go-spew at 65ca732a33a40c2a5b9e036f236f975e7e85cf6c
http://camlistore.org/issue/288

Change-Id: Ie90c39d2ca25e95b98441ecf1ee030fbef698ced
2014-01-09 11:40:54 -08:00
Brad Fitzpatrick a00d964169 Partial fix for cznic/kv Close race. See camlistore.org/issue/332
And https://github.com/cznic/kv/issues/17

Change-Id: I1c3170f8a81f687715ccc1f172e41767c4c81893
2014-01-08 20:34:34 -08:00
Brad Fitzpatrick bc37ea6ead lock: add linux/arm support. From upstream 172e5cc1b6
Change-Id: Ia110eb027f68deb239757f1fb06cfe4574d8bf2d
2014-01-03 15:34:40 -08:00