The NetBSD Project

CVS log for pkgsrc/pkgtools/pkg_install/files/create/build.c

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / pkg_install / files / create

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.17 / (download) - annotate - [select for diffs], Wed Apr 19 21:42:50 2017 UTC (6 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, HEAD
Changes since 1.16: +9 -11 lines
Diff to previous 1.16 (colored) to selected 1.8 (colored)

pkg_install-20170419:
- Convert to libarchive 3.x interfaces, avoiding the legacy glue.
- Rename local copy of netpgpverify to match installed headers.
- Shuffle bootstrap code to reduce special cases in pkg_add.
- Always read/write file names in tar archives as binary. While they are
  supposed to be UTF-8, locale conversion creates more problems than it
  solves here.
- Fix const correctness in gpg_verify.
- Add format string annotation for xasprintf for GCC-like compilers.
- Restrict supported archive formats for binary packages to ar (signed
  packages) and tar (actual content) with uncompressed/gzip/bzip2/xz as
  compression choices. This reduces the exposed libarchive surface.
- The pkg-vulnerability file correspondingly supports only the same
  compression choices.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Dec 30 15:13:20 2014 UTC (9 years, 3 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1
Changes since 1.15: +2 -7 lines
Diff to previous 1.15 (colored) to selected 1.8 (colored)

Remove pkg_views support, second part: infrastructure.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Apr 20 00:39:13 2010 UTC (14 years ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2
Changes since 1.14: +4 -2 lines
Diff to previous 1.14 (colored) to selected 1.8 (colored)

pkg_install-20100420:
Extract dependencies of libarchive from the pkgconfig file and thereby
drop knowledge of the needed libraries.

At least some versions of HP-UX are known to not support %zu, add a
workaround. This is using the black list approach for now.

Recognize xz as compression type for pkg_create.

The first time an error is hit while fetching packages, try to reget
from the same position. This works around the server closing the
connection while fetching dependencies.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Nov 5 16:22:32 2009 UTC (14 years, 5 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4
Changes since 1.13: +3 -9 lines
Diff to previous 1.13 (colored) to selected 1.8 (colored)

pkg_install-20091115:
Completely ignore @src in pkg_create. Silently ignore the -L option.
The combination of -I and -p are used by pkgsrc for the same result.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Aug 2 17:56:44 2009 UTC (14 years, 8 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2009Q3-base, pkgsrc-2009Q3
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored) to selected 1.8 (colored)

pkg_install-20090727:
Make pkg_install WARNS=4 clean and fix a number of lint warnings.
Based on reports from veego about warnings with older GCC releases in
pkg_delete, where a variable is potentially used uninitialized.

Revision 1.12 / (download) - annotate - [select for diffs], Wed May 13 03:33:50 2009 UTC (14 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2009Q2-base, pkgsrc-2009Q2
Changes since 1.11: +19 -5 lines
Diff to previous 1.11 (colored) to selected 1.8 (colored)

pkg_install-20090513:
Add pkg_create -F, which explicitly provides the compression type.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Mar 8 17:26:23 2009 UTC (15 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2009Q1-base, pkgsrc-2009Q1
Changes since 1.10: +4 -3 lines
Diff to previous 1.10 (colored) to selected 1.8 (colored)

If writing to the archive failed, tell user the file it tried to write.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Feb 5 16:06:55 2009 UTC (15 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.9: +2 -3 lines
Diff to previous 1.9 (colored) to selected 1.8 (colored)

Don't chdir back to the original directory at the end of make_dist,
pkg_create is about to exit() anyway.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Feb 2 12:35:01 2009 UTC (15 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.8: +3 -10 lines
Diff to previous 1.8 (colored)

Merge pkg_install-20090201 from pkg_install-renovation branch.

- DB support is always included from libnbcompat if needed
- pkg_view and linkfarm are not installed any more; they are not moved
into the attic yet, so they can easily be installed as separte package
- common configuration file to customise the behavior of various
components; this supersedes the old audit-packages.conf
- support for PKSC7 signatures (using X509 certs) and GPG signatures for
packages in a secure way. See pkg_admin(8) for how to create them and
pkg_install.conf(5) for the options to use them
- audit-packages and download-vulnerability-list are wrapper scripts
  around pkg_admin. They try to mimic the classic options if used sanely.
  "pkg_admin audit" is now an order of magnitude faster than before
- pkg_add uses libarchive and libfetch instead of external ftp and tar:
  - progress bar is currently missing for downloads
  - "pkg_add -" is no longer supported
  - no adhoc check for conficts between dependencies and already
    installed packages
  - "pkg_add -s" has been replaced with an option in pkg_install.conf,
    verification of plain detached GPG signatures is no longer supported
  - optional check for vulnerabilities before adding a package
  - if /var and /usr/pkg are on different fileystems it is twice as fast
    now
  - conflicts due to overlapping plists are checked before installation
  - pkg_add no longer plays with the process limits
- pkg_add and pkg_delete have a new destdir option; scripts have to
  either be modified to use PKG_DESTDIR or should be disabled
- pkg_add -u for now can't be used to update to the exact same version
- internal "rm -rf" and "mkdir_p" code
- all memory allocation failures are not explicitly fatal
- if a file is not removed due to a failed checksum, still remove the
  entry from pkgdb

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Mon Feb 2 11:55:16 2009 UTC (15 years, 2 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.8.2.1: +2 -8 lines
Diff to previous 1.8.2.1 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored) to selected 1.8 (colored)

pkg_install-20090201:
- sync DESCR and MESSAGE with HEAD and the branch state
- sync Makefile
- regen configure
- cleanup __RCSID
- merge audit logic in pkg_add and pkg_admin into new audit_packages
function. As side effect, pkg_add will list all vulnerabilities before
asking the user whether it should continue
- sort config_variable array

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Sat Aug 2 20:33:50 2008 UTC (15 years, 8 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.8: +3 -4 lines
Diff to previous 1.8 (colored)

Most memory allocation failures were fatal already and the majority of
the rest lacked an explicit check. Add the usual x* wrappers around
malloc and friends that explicitly terminate on error and use them in
all but Dewey.

Revision 1.8 / (download) - annotate - [selected], Wed Apr 23 16:58:07 2008 UTC (15 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, pkg_install-renovation-base, cwrapper-base, cwrapper, cube-native-xorg-base, cube-native-xorg
Branch point for: pkg_install-renovation
Changes since 1.7: +73 -46 lines
Diff to previous 1.7 (colored)

pkg_install-20080423:
Make the linkresolver code more robust.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Apr 22 14:27:51 2008 UTC (15 years, 11 months ago) by joerg
Branch: MAIN
Changes since 1.6: +5 -2 lines
Diff to previous 1.6 (colored) to selected 1.8 (colored)

Restore symlinks as the code was accidently removed.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Apr 22 13:47:08 2008 UTC (15 years, 11 months ago) by joerg
Branch: MAIN
Changes since 1.5: +22 -54 lines
Diff to previous 1.5 (colored) to selected 1.8 (colored)

pkg_install-20080422:
Make use of the linkresolver from libarchive and thereby fix the
permissions of hardlinks in archives.  This wasn't a problem so far
as nbpax is (incorrectly) ignoring the permissions of the other entries.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jan 3 22:31:20 2008 UTC (16 years, 3 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2008Q1-base, pkgsrc-2008Q1
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored) to selected 1.8 (colored)

When calling open(2), don't try to get an error message from libarchive,
since it won't know anything about it. (hi joerg!)

Revision 1.4 / (download) - annotate - [select for diffs], Wed Aug 8 12:21:14 2007 UTC (16 years, 8 months ago) by tnn
Branch: MAIN
CVS Tags: pkgsrc-2007Q4-base, pkgsrc-2007Q4, pkgsrc-2007Q3-base, pkgsrc-2007Q3
Changes since 1.3: +5 -2 lines
Diff to previous 1.3 (colored) to selected 1.8 (colored)

Fix build on Solaris by including fcntl.h, needed for O_RDONLY definition.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Aug 4 12:32:01 2007 UTC (16 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.2: +33 -2 lines
Diff to previous 1.2 (colored) to selected 1.8 (colored)

Try hard to get 64bit offsets in all modules, fixing misunderstandings
between libarchive and pkg_create e.g. on HP-UX.

Add my copyright to build.c, it is almost completely rewritten.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Aug 3 15:44:18 2007 UTC (16 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.1: +7 -7 lines
Diff to previous 1.1 (colored) to selected 1.8 (colored)

Fix bootstrap issues reported by tnn@

Revision 1.1 / (download) - annotate - [select for diffs], Fri Aug 3 13:15:59 2007 UTC (16 years, 8 months ago) by joerg
Branch: MAIN
Diff to selected 1.8 (colored)

- only build pkg_admin, pkg_create and pkg_info for --enable-bootstrap
- for pkg_create, split-off the package creation from the plist
  processing. package creation is disabled for --enable-bootstrap
- change package creation to use libarchive
- add two options (-u and -g) to override file system ownership
- pkg_create now creates files in the tarball with correct owner/group
  based on -u/-g or @owner/@group
- add a function to compute the +CONTENTS file in memory

Bump version to 20070802.
Review of a slightly older version by jlam@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>