Skip to content

Commit e022463

Browse files
committed
Merge #11460: [depends] mac_alias 2.0.6, ds_store 1.1.2
f617d1b [depends] native_ds_store 1.1.2 (fanquake) 46b752a [depends] native_mac_alias 2.0.6 (fanquake) Pull request description: mac_alias and ds_store have moved from Bitbucket to GitHub. See https://github.com/al45tair/mac_alias and https://github.com/al45tair/ds_store. mac_alias has been updated to be compatible with Python 3? ~~~so we should be able to drop our patch.~~~ I've dropped some of the patch for now. Quickly tested on macOS, because depends building is broken with latest the Xcode see #11461. Related #8134. Tree-SHA512: d0017883f86b29bc4ab03bade5aaad9959e4343cd66596805fae48a1804e4bd150c77652f08e3e6cfafb3193f7c0183686f1f60c83f3a4204d40f76041c13ed2
2 parents c633646 + f617d1b commit e022463

File tree

3 files changed

+15
-33
lines changed

3 files changed

+15
-33
lines changed

depends/packages/native_ds_store.mk

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
package=native_ds_store
2-
$(package)_version=1.1.0
3-
$(package)_download_path=https://bitbucket.org/al45tair/ds_store/get
4-
$(package)_download_file=v$($(package)_version).tar.bz2
5-
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
6-
$(package)_sha256_hash=921596764d71d1bbd3297a90ef6d286f718794d667e4f81d91d14053525d64c1
2+
$(package)_version=1.1.2
3+
$(package)_download_path=https://github.com/al45tair/ds_store/archive/
4+
$(package)_file_name=v$($(package)_version).tar.gz
5+
$(package)_sha256_hash=3b3ecb7bf0a5157f5b6010bc3af7c141fb0ad3527084e63336220d22744bc20c
76
$(package)_install_libdir=$(build_prefix)/lib/python/dist-packages
87
$(package)_dependencies=native_biplist
98

depends/packages/native_mac_alias.mk

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
package=native_mac_alias
2-
$(package)_version=1.1.0
3-
$(package)_download_path=https://bitbucket.org/al45tair/mac_alias/get
4-
$(package)_download_file=v$($(package)_version).tar.bz2
5-
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
6-
$(package)_sha256_hash=87ad827e66790028361e43fc754f68ed041a9bdb214cca03c853f079b04fb120
2+
$(package)_version=2.0.6
3+
$(package)_download_path=https://github.com/al45tair/mac_alias/archive/
4+
$(package)_file_name=v$($(package)_version).tar.gz
5+
$(package)_sha256_hash=78a3332d9a597eebf09ae652d38ad1e263b28db5c2e6dd725fad357b03b77371
76
$(package)_install_libdir=$(build_prefix)/lib/python/dist-packages
87
$(package)_patches=python3.patch
98

109
define $(package)_preprocess_cmds
11-
patch -p1 < $($(package)_patch_dir)/python3.patch
10+
patch -p1 < $($(package)_patch_dir)/python3.patch
1211
endef
1312

1413
define $(package)_build_cmds

depends/patches/native_mac_alias/python3.patch

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
diff -dur a/mac_alias/alias.py b/mac_alias/alias.py
2-
--- a/mac_alias/alias.py 2015-10-19 12:12:48.000000000 +0200
3-
+++ b/mac_alias/alias.py 2016-04-03 12:13:12.037159417 +0200
4-
@@ -243,10 +243,10 @@
2+
--- a/mac_alias/alias.py
3+
+++ b/mac_alias/alias.py
4+
@@ -258,10 +258,10 @@
55
alias = Alias()
66
alias.appinfo = appinfo
77

@@ -14,7 +14,7 @@ diff -dur a/mac_alias/alias.py b/mac_alias/alias.py
1414
folder_cnid, cnid,
1515
crdate, creator_code, type_code)
1616
alias.target.levels_from = levels_from
17-
@@ -261,9 +261,9 @@
17+
@@ -276,9 +276,9 @@
1818
b.read(1)
1919

2020
if tag == TAG_CARBON_FOLDER_NAME:
@@ -26,7 +26,7 @@ diff -dur a/mac_alias/alias.py b/mac_alias/alias.py
2626
value)
2727
elif tag == TAG_CARBON_PATH:
2828
alias.target.carbon_path = value
29-
@@ -298,9 +298,9 @@
29+
@@ -313,9 +313,9 @@
3030
alias.target.creation_date \
3131
= mac_epoch + datetime.timedelta(seconds=seconds)
3232
elif tag == TAG_POSIX_PATH:
@@ -38,23 +38,7 @@ diff -dur a/mac_alias/alias.py b/mac_alias/alias.py
3838
elif tag == TAG_RECURSIVE_ALIAS_OF_DISK_IMAGE:
3939
alias.volume.disk_image_alias = Alias.from_bytes(value)
4040
elif tag == TAG_USER_HOME_LENGTH_PREFIX:
41-
@@ -422,13 +422,13 @@
42-
# (so doing so is ridiculous, and nothing could rely on it).
43-
b.write(struct.pack(b'>h28pI2shI64pII4s4shhI2s10s',
44-
self.target.kind,
45-
- carbon_volname, voldate,
46-
+ carbon_volname, int(voldate),
47-
self.volume.fs_type,
48-
self.volume.disk_type,
49-
self.target.folder_cnid,
50-
carbon_filename,
51-
self.target.cnid,
52-
- crdate,
53-
+ int(crdate),
54-
self.target.creator_code,
55-
self.target.type_code,
56-
self.target.levels_from,
57-
@@ -449,12 +449,12 @@
41+
@@ -467,12 +467,12 @@
5842

5943
b.write(struct.pack(b'>hhQhhQ',
6044
TAG_HIGH_RES_VOLUME_CREATION_DATE,

0 commit comments

Comments
 (0)