Commit graph

3559 commits

Author SHA1 Message Date
rillig
21cac04813 Added but disabled a check that tests whether the PKGNAME and the
package directory match. There is much work to do until this can be
enabled.
2009-01-26 15:44:15 +00:00
sketch
cce651087b Change to WRKSRC before compiling, fixes builds with read-only pkgsrc tree. 2009-01-23 11:27:16 +00:00
shattered
02dcf45d24 On some operating systems (Linux, FreeBSD -- see their problem report
82430) ps might list process names in square brackets.  Fix regex in
_find_processes() accordingly.

OK by wiz@.
2009-01-18 22:35:35 +00:00
dsainty
c417193ec6 Yet Another Groff Version (1.17.2), allows successful bootstrapping on an
extremely crufty old Linux box of unclear parentage (but it might be a RedHat
3.0 installation).
2009-01-14 23:16:54 +00:00
jmcneill
ba0d4a12c7 Build and install libpk-gtk-module. From the README:
The GTK+ module is designed to be loaded using gnome-settings-daemon by the
gnome-packagekit package.

It can however be launched for testing using:

GTK_MODULES="$GTK_MODULES:/usr/lib/gtk-2.0/modules/pk-gtk-module.so" application

The module installs a custom default pangocairo font map during gtk_init().
Pango will then call back with any languages which need installing, and these
are queued up. In an idle callback these are emitted as an asyncronous D-BUS
method to the session PackageKit InstallFonts() method.

If configured to do so, this will prompt the user to install new fonts.
2009-01-11 04:22:10 +00:00
jmcneill
9f88852e13 + packagekit gnome-packagekit 2009-01-08 00:26:05 +00:00
jmcneill
603077989c Import gnome-packagekit version 0.4.0.
PackageKit is a system designed to make installing and updating software on
your computer easier. The primary design goal is to unify all the software
graphical tools used in different distributions, and use some of the latest
technology like PolicyKit to make the process suck less.

The actual nuts-and-bolts distro tool (yum, apt, conary, etc) is used by
PackageKit using compiled and scripted helpers. PackageKit isn't meant to
replace these tools, instead providing a common set of abstractions that can
be used by standard GUI and text mode package managers.

PackageKit itself is a system activated daemon called packagekitd. Being
system activated means that it's only being run when the user is using a text
mode or graphical tool, and quits when it's no longer being used. This means
we don't delay the boot sequence or session startup and don't consume memory
when not being used.

gnome-packagekit is the name of the collection of graphical tools for
PackageKit to be used in the GNOME desktop.
2009-01-08 00:22:45 +00:00
jmcneill
43e73f96b4 Import packagekit version 0.4.0. Much work to do.
PackageKit is a system designed to make installing and updating software on
your computer easier. The primary design goal is to unify all the software
graphical tools used in different distributions, and use some of the latest
technology like PolicyKit to make the process suck less.

The actual nuts-and-bolts distro tool (yum, apt, conary, etc) is used by
PackageKit using compiled and scripted helpers. PackageKit isn't meant to
replace these tools, instead providing a common set of abstractions that can
be used by standard GUI and text mode package managers.

PackageKit itself is a system activated daemon called packagekitd. Being
system activated means that it's only being run when the user is using a text
mode or graphical tool, and quits when it's no longer being used. This means
we don't delay the boot sequence or session startup and don't consume memory
when not being used.
2009-01-08 00:21:00 +00:00
tnn
5531fbc2c5 fix typos 2009-01-06 16:40:19 +00:00
adrianp
0f5bb1b8ae Update to 0.02
Check for PATCHFILES as well
2009-01-06 10:28:38 +00:00
wiz
1c2d59c2d6 Recognize CMAKE_ARGS. 2009-01-04 20:28:51 +00:00
adrianp
398d830fd7 +pkg_distinst 2009-01-04 00:45:37 +00:00
adrianp
a88f7c13cd This is a simple script that will synchronise the content of your ${DISTDIR}
directory with currently installed packages.

This script will delete any ${DISTFILE} in ${DISTDIR} that does not currently
have an installed package as an owner.

If you play with packages a fair bit and download some just to have a play with
and delete the package later your ${DISTDIR} can end up with a lot of orphaned
${DISTFILES}.  While lintpkgsrc will help you remove outdated ${DISTFILES} it
does not do any corealtion with installed packakges which is the gap this
script aims to fill.

With "lintpkgsrc -or && pkg_distinst --delete" you can and up with a fairly
lean and current ${DISTDIR}.
2009-01-04 00:44:38 +00:00
rillig
ea2694451d Warn about missing PKG_DESTDIR_SUPPORT definition. Every package should
have one.
2008-12-21 10:34:59 +00:00
adrianp
9e164864f6 Make this work on OpenSolaris 2008-12-21 00:03:32 +00:00
abs
d84ad5c936 Updated pkgtools/pkg_chk to 1.96
Handle unset PKGSRCDIR - from Taylor R Campbell in PR/39306
2008-12-20 09:50:59 +00:00
rillig
03b5233b74 TOOLS_DEPENDS.* names a dependency, and all the directories that are
mentioned in it must actually contain a Makefile.
2008-12-15 12:47:31 +00:00
rillig
41f53c4dd5 Changed one of the explanations to be more permissive. Fixed a
grammatical mistake in the same sentence.
2008-12-14 18:46:58 +00:00
rillig
f772ef6398 An int is not guaranteed to be 64bit and in fact isn't on most
platforms.
2008-12-14 10:18:16 +00:00
obache
9244674af5 Need to include stdint.h for unit64_t on SUA 6.0. 2008-12-14 07:50:49 +00:00
adrianp
40abbe86e4 +audit-packages
+download-vulnerability-list
2008-12-10 22:02:18 +00:00
wiz
b4f7fd588d Make complaints about hicolor icon themes directories errors.
Ok rillig
2008-12-05 06:48:05 +00:00
rillig
549bd2d94b Added explicit checks for share/icons/hicolor directories in PLISTs, as
suggested by wiz.
2008-12-04 18:07:52 +00:00
cube
23abb33176 Bump version after libXtst builtinification. Sorry guys. 2008-12-04 04:17:21 +00:00
cube
d49befb95d Builtinify libXtst. 2008-12-04 04:16:41 +00:00
rillig
7359b60f45 Removed unused code. Changed one constructor call to match the pattern
of all the others. Explained how to get an overview of the code.
2008-12-02 09:00:28 +00:00
wiz
7082848df0 Variable for GConf is now called GCONF_SCHEMAS (not GCONF2_SCHEMAS).
Bump version to 2.8.
2008-12-01 13:48:34 +00:00
rillig
5614873bfe Banned the warnings about SUBST_* groups into the -Wextra option, since
they are used less strict than pkglint wants them.
2008-11-30 22:19:01 +00:00
rillig
f85556e344 more to do. 2008-11-25 19:11:39 +00:00
rillig
359895ef14 Allowed pkglint to check doc/CHANGES-* files individually. 2008-11-24 14:59:28 +00:00
rillig
f66a7f1777 Fixed the (hopefully) last issue with the downgrading warning. 2008-11-19 07:46:35 +00:00
obache
1ed485738b SU was replaced to use SU_CMD over 4 years ago. 2008-11-19 00:20:48 +00:00
rillig
30458d7406 It's pretty tricky to get the bmake substitution right. At least if
you're a lazy programmer. Now the ${DISTNAME:S...} is interpreted
correctly.
2008-11-18 21:17:53 +00:00
rillig
25f7fc3110 Updated pkglint to 4.90.
Changes since 4.89:
- Packages are checked whether they are being downgraded.
- Several small fixes and improvements.
2008-11-18 19:43:32 +00:00
rillig
a3a3f7f775 Get rid of the false positive warnings for downgrading, by doing more
magic to the PKGNAME and DISTNAME in the package Makefile. Thanks, wiz,
for insisting on this.
2008-11-18 19:39:49 +00:00
rillig
88db5cd30e Emit a note instead of a warning when the :Q operator is used in places
where it isn't necessary.

The :Q operator is necessary for URLs, since they may contain ampersands.
2008-11-18 19:18:51 +00:00
rillig
39f4738073 It is not necessary to save the whole text of the package Makefile
including all included files. By now, all checks are done by checking
individual lines, not the whole text.
2008-11-18 18:59:36 +00:00
rillig
f568f6dcea The PKGREVISION is included in the version comparison, to fix the bogus
warning that a package "is being downgraded from 1.0.0nb5 to 1.0.0".

Disabled the note saying that in shell variable assignments, there don't
need to be double quotes around backticks. In some cases they need to be
there.
2008-11-18 08:18:29 +00:00
rillig
d24f8d2bf7 DIST_SUBDIR may contain slashes. Found in www/firefox3-bin. 2008-11-18 08:04:35 +00:00
tron
6055ccc1bc Add support for user destination directory installation.
Patch provided by Aleksey Cheusov.
2008-11-16 10:25:34 +00:00
schwarz
e88d2f7dbf remove NetBSD-specific code from OpenBSD's bsd.own.mk 2008-11-15 13:06:42 +00:00
schwarz
c07f4de9ea OpenBSD changed to ELF on i386 with the 3.4 release 2008-11-15 13:05:09 +00:00
cube
1555f6320f Buildlink glut, bump package version and required dependency. 2008-11-11 16:19:23 +00:00
cube
6fb6b44e59 Properly register libGLU files with native X.Org as found in NetBSD. 2008-11-11 16:18:18 +00:00
joerg
fba094a13c OpenBSD headers are still not standalone, even though SUS is pretty
explicit about it at least for netinet/in.h. Include sys/types.h before
checking for content of sys/socket.h and netinet/in.h to fix this.
Reported and tested by Georg Schwarz.
2008-11-08 21:35:57 +00:00
rillig
411a485a0d Only check doc/CHANGES-* starting with 2008, as suggested by OBATA Akio
on pkgsrc-changes.

TODO: Discuss whether the old files should be converted to the common
format or just be left as they are.
2008-11-06 14:46:51 +00:00
obache
4daaf7ad07 Add DESTDIR support. 2008-11-06 12:25:17 +00:00
jschauma
ec5816ac04 update mtree to 20081105, most notably providing support for sha256,
sha384 and sha512;  while here, fix a minor build error discovered on
RHEL
2008-11-06 02:14:52 +00:00
joerg
6d6f20fbaf Add some forgotten ifndefs to fix issues on DragonFly. 2008-11-06 00:25:42 +00:00
wiz
208ed5a45e Ignore more uninteresting output.
Tries to address PR 39291.

Welcome to 0.121.
2008-11-05 23:18:18 +00:00
rillig
37dbfbc809 Fixed three warnings, which have been reported by Mark Davies. 2008-11-04 23:13:05 +00:00
rillig
507581677b The macro __NetBSD_Prereq__ should not be used.
Extended the spell checker for variants of __NetBSD_Version__.
2008-11-04 22:27:00 +00:00
rillig
3bc83926b1 Added a check that detects a downgrade of a package. To do this, it
loads the changes in doc/CHANGES-*.
2008-11-04 21:45:13 +00:00
joerg
1cb2d826a6 Define __UNCONST. From PR 39797. 2008-10-30 19:27:20 +00:00
joerg
18058a4e57 Avoid STAT as macro, it exists in sys/dir.h on AIX already. 2008-10-30 16:00:54 +00:00
cube
b71f57b3db Builtinify libXv, and make sure x11-links knows about xv.pc. Bump version
of x11-links.
2008-10-29 21:14:01 +00:00
joerg
69064b82e8 Don't use __RENAME. 2008-10-29 16:39:03 +00:00
joerg
8dee63e644 Provide more compat glue for ndbm interface as shown in PR 39738.
Bump to libnbcompat-20081029.
2008-10-29 11:23:17 +00:00
joerg
7f9c816849 Define away O_EXLOCK and O_SHLOCK if they are missing. 2008-10-28 18:01:06 +00:00
joerg
dde0f32833 Use nbcompat/paths.h, Solaris is missing paths.h. From Uwe Klaus. 2008-10-28 17:57:36 +00:00
joerg
83613e330d Add circleq support. Bump to 20081028. Should fix IRIX build from
PR 39797.
2008-10-28 15:15:18 +00:00
joerg
eece6e89de Replace EFTYPE with EINVAL if the former doesn't exist. 2008-10-28 15:06:26 +00:00
joerg
9944df4826 Provide and use local mpool.h. 2008-10-26 12:51:59 +00:00
joerg
690ac5928f Explicitly check for libnsl and libsocket as required by Solaris.
Based on patches from Aleksey Cheusov.
2008-10-26 12:31:30 +00:00
rillig
6208c4238d Moved all explaining texts to the beginning of a line, so they stand out
from the rest of the code.
2008-10-20 11:09:07 +00:00
rillig
fe5245c568 Removed the experimental --klickibunti option and everything that was
only there to support this option. Maybe I will reinvent the advanced
autofix code someday, hopefully in a programming language that provides
more error checking than Perl.
2008-10-20 10:56:18 +00:00
rillig
9f78a56db8 Updated pkglint to 4.89.
Changes since 4.88:
- Fixed the remaining PLIST_VARS warnings.
- Adjusted pkglint to work together with Perl 5.10.0.
2008-10-20 10:13:12 +00:00
rillig
025fe0934e Replaced all instances of "=~ qr" with "=~ m", and all instances of
"!~ qr" with "!~ m", to work around a memory leak in Perl 5.10.0.
(See Perl bug #59994 or just run perl -e 'while(1){qr""}'.)

This change also speeds up pkglint by around 15 percent, although I
noticed that updating from Perl 5.8.8. to 5.10.0 slowed down pkglint by
about 2 percent.
2008-10-20 10:10:28 +00:00
joerg
c071594cda Include nbcompat/types.h early to make sure that uintX_t are defined.
Reported by Aleksey Cheusov and Joern Clausen in PR 39738.
2008-10-19 21:02:07 +00:00
he
b021813da0 Bump the PKGREVISION for all packages which depend directly on perl,
to trigger/signal a rebuild for the transition 5.8.8 -> 5.10.0.

The list of packages is computed by finding all packages which end
up having either of PERL5_USE_PACKLIST, BUILDLINK_API_DEPENDS.perl,
or PERL5_PACKLIST defined in their make setup (tested via
"make show-vars VARNAMES=...").
2008-10-19 19:17:40 +00:00
rillig
10b7bee739 Fixed another "closedir() on undefined".
Made the code around PLIST.* variables prettier.
2008-10-18 16:35:59 +00:00
he
59ca29e40d Two minor fixes:
o Documentation fix: the blbump script does not print the names of
   the package directories it succeeded in bumping, only the ones
   which it failed to bump
 o Code fix: remove a pointless assignment / substitution in blbump
2008-10-17 14:23:58 +00:00
wiz
d150578c8e PKGREVISION bump for libevent shlib name change. 2008-10-16 21:52:16 +00:00
rillig
bb0cf99865 Fixed two issues reported by wiz:
- Perl 5.10 complains when closedir() is called on an undefined
  directory handle, and is correct to do so. Since directory handles are
  global variables, they must be used carefully in recursive functions.

- The PLIST.* variables still had some warning suspecting a "spelling
  mistake". This has been fixed by marking all PLIST_VARS as being used.
2008-10-16 09:08:21 +00:00
erh
c8629a84a6 Fix strip_txz() so it actually works even when the extension found isn't
going to be returned.  This fixes some issues with automatic installation
 of dependencies.
2008-10-13 15:54:24 +00:00
jmmv
b5cb5e5079 Fix execution of autoswc by fixing the call to AC_INIT (missing parameter).
Bump version to 1.6.
Reported by Arnaud Lacombe in private email.
2008-10-11 18:03:58 +00:00
sborrill
6f1eaa64f0 Version 1.31 - make chroot target return its exit status 2008-10-10 15:56:31 +00:00
joerg
bb59fdd51d pkg_install-20081010:
Add optional bdb. Make it included by default for standalone builds.
2008-10-10 00:21:43 +00:00
rillig
e779a5ed93 Updated pkglint to 4.88.
Changes since 4.87:
- Added support for PLIST_VARS and PLIST.*, which had been added in April.
  That's a long time ago ...
2008-10-09 16:19:23 +00:00
rillig
620e416521 It already tries. 2008-10-09 16:01:51 +00:00
joerg
66667a43ee pbulk-0.36:
Avoid grep -q and use awk instead. This has the side effect of parsing
presolve only once for each file. grep -q doesn't exist on Solaris.
2008-10-08 16:43:34 +00:00
joerg
aa020a8ff4 Mac OS X doesn't define uintXX_t in sys/types.h, so explicitly pull in
inttypes.h if present. Make md5.h, sha1.h and sha2.h self contained by
including nbcompat/types.h. Problem reported by Greg Troxel.
2008-10-08 14:28:14 +00:00
joerg
98648e83e3 Check for existance of sysexits.h and regen config.h.in. 2008-10-07 16:03:10 +00:00
joerg
9542074cb2 libnbcompat-20080922:
- DESTDIR support
- Add check for inttypes.h and sys/socket.h
- Provide compatibility fallback for netdb.h and the RFC2553 API
(getaddrinfo), supoprting IPv4 only. Code from OpenSSH.
- Use normal autoconf checks for fixed size bit types. Stop using the
older BSD types (u_intXX_t) in libnbcompat.
- Add implementation of shquote (from NetBSD).
- Fix a buglet in the getenv/setenv/unsetenv detection.
- Fix a buglet in the mkdtemp/mkstemp detection.
2008-10-06 12:36:19 +00:00
cube
e3f3460de6 Bump x11-links to 0.39 and force dependency after cube-native-xorg merge. 2008-10-05 21:37:39 +00:00
cube
403e256ff6 Merge cube-native-xorg, so that pkgsrc-current can be used with the native
X.Org found in NetBSD-current.

Thanks a lot to all who helped, especially Matthias Scheler who did
repeated tests on Mac OS X and older versions of NetBSD to make sure the
support for those platforms wouldn't be broken (or at least, not fatally,
as I would still expect a few hiccups here and there, because there is
only so much one can test in such limited time).

On the infrastructure side, this branch brings pkgconfig-builtin.mk, in
order to write very easily new builtin.mk files.  It can actually handle
more than just pkgconfig files, but it will provide a version if it finds
such a file.  x11.builtin.mk has also been made more useful and now all
existing (and future!) native-X11-related builtin.mk files should include
it.
2008-10-05 21:36:32 +00:00
joerg
1e2d474b2b pkg_install-20081002:
Explicitly cast time_t values to long and print them as such.
Reported by bjs@.
2008-10-02 20:46:56 +00:00
joerg
4154d6b2fe Fix build by unifying sysutils/mtree and pkgtools/mtree in terms of
nbcompat usage.
2008-10-02 17:15:22 +00:00
tron
c549bb8328 Set "USE_BSD_MAKEFILE" to indicate that this package uses a BSD-style
makefile. This should fix HTML manual page issue under NetBSD-current.
Problem reported by Cesar Catrian Carreno on "pkgsrc-users" mailing list.
2008-10-01 20:16:50 +00:00
joerg
212f32736f pbulk-0.35:
Sync Dewey with pkg_install(-renovation) and add a fast check if a
pattern could ever match. This reduces the time for pbulk-resolve on a
full tree on my laptop from 12.9s to 5.3s.
2008-09-22 11:31:16 +00:00
joerg
c3e2e192a4 Fix build on Solaris by using nbcompat. 2008-09-18 10:38:45 +00:00
joerg
1a04e21a8b pkg_install-20080916:
Merge from changes for read_plist from pkg_install-renovation to always
initialize the plist and add append_plist for the one case where this is
not desired. Fixes PR 39276.
2008-09-17 15:21:30 +00:00
joerg
b049ec1593 pbulk-0.34:
- version configuration file, object if the version doesn't match
- add an option for pbulk-resolve to ignore unresolvable dependencies
similiar to the incremental mode
- use this option to run pbulk-resolve again if ignore_missing_depencies
is set to yes. Report this explicitly to un-confuse readers and point
them to the logfile.
2008-09-16 18:21:30 +00:00
joerg
98a3da97e5 Main tree must not depend on wip, so pkglint should try to warn about
it.
2008-09-16 14:41:18 +00:00
rillig
a9ce5b20a7 Clarified a comment, since I didn't understand it two years after writing it. 2008-09-16 14:24:25 +00:00
rillig
1f10bc28b1 Don't include useless definitions in the documentation. 2008-09-16 14:19:11 +00:00
joerg
76d159ee1e 20080915:
Merge a number of bugfixes from the pkg_install-renovation branch:
- explicit include of nbcompat/md5.h
- use errx when dealing with libfetch as it doesn't set errno
- avoid optind = 0 as GNUish getopt will reset itself otherwise
2008-09-16 13:32:58 +00:00
tron
c2e75e7d75 Update "x11-links" package to version 0.38:
- Add support for builtin "pixman".
- Add some extra entries for Mac OS X.
2008-09-16 12:38:38 +00:00
joerg
a40b8ff745 pbulk-0.34:
Isolate rules to compute the restricted subset in the upload script.
Make the upload script independent from the report file to allow
uploading partial builds.
Only depend on NO_BIN_ON_FTP to decide what to upload and what not.
2008-09-14 18:59:02 +00:00
joerg
69ed4e430d Determine both for setmode.c and pwcache.c if any of the functions is
provided by the system and if one is lacking use the file. Don't short
cut the list as before and do a second iteration, it is just confusing.

This breaks the regression introduced by the last commit on OS X.
2008-09-12 13:47:26 +00:00