diff options
author | bapt <bapt@FreeBSD.org> | 2012-07-04 17:59:23 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-07-04 17:59:23 +0800 |
commit | 869c20a29dab079be1b69d035f8e75854075be2b (patch) | |
tree | 128327ff5b3f751c7f705206d8a12da415f5ba4e /ports-mgmt | |
parent | fe87b9572a99da84c57434a2170444da58d2c0e4 (diff) | |
download | freebsd-ports-gnome-869c20a29dab079be1b69d035f8e75854075be2b.tar.gz freebsd-ports-gnome-869c20a29dab079be1b69d035f8e75854075be2b.tar.zst freebsd-ports-gnome-869c20a29dab079be1b69d035f8e75854075be2b.zip |
Fix alignement error making pkg repo segfaul on i386
Reported by: gjb, Ivan Klymenko <fidaj@ukr.net> (via ports@)
Tested by: gjb
Obtained from: pkgng git repository
Diffstat (limited to 'ports-mgmt')
-rw-r--r-- | ports-mgmt/pkg/Makefile | 1 | ||||
-rw-r--r-- | ports-mgmt/pkg/files/patch-libpkg__pkg_repo.c | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/ports-mgmt/pkg/Makefile b/ports-mgmt/pkg/Makefile index b4cd385ebfdf..fd5599f01d6c 100644 --- a/ports-mgmt/pkg/Makefile +++ b/ports-mgmt/pkg/Makefile @@ -7,6 +7,7 @@ PORTNAME= pkg DISTVERSION= 1.0-beta17 +PORTREVISION= 1 CATEGORIES= ports-mgmt MASTER_SITES= LOCAL/portmgr \ http://files.etoilebsd.net/pkg/ diff --git a/ports-mgmt/pkg/files/patch-libpkg__pkg_repo.c b/ports-mgmt/pkg/files/patch-libpkg__pkg_repo.c new file mode 100644 index 000000000000..5e7d09375b65 --- /dev/null +++ b/ports-mgmt/pkg/files/patch-libpkg__pkg_repo.c @@ -0,0 +1,14 @@ +diff --git libpkg/pkg_repo.c libpkg/pkg_repo.c +index d2ef999..d628850 100644 +--- libpkg/pkg_repo.c ++++ libpkg/pkg_repo.c +@@ -605,8 +605,7 @@ pkg_create_repo(char *path, bool force, void (progress)(struct pkg *pkg, void *d + while ((ent = fts_read(fts)) != NULL) { + const char *name, *version, *origin, *comment, *desc; + const char *arch, *maintainer, *www, *prefix; +- int64_t flatsize; +- lic_t licenselogic; ++ int64_t flatsize, licenselogic; + + /* skip everything that is not a file */ + if (ent->fts_info != FTS_F) |