ANNOUNCE: OpenPKG Foundation on Linuxtag 2006 !

2006-03-26 Thread Matthias Kurz

Hi.

The OpenPKG Foundation is proud to announce that we are one of the
accepted projects on the Linuxtag 2006 (May 3rd until May 6th in the
Rhein-Main-Hallen in Wiesbaden/Germany)[1].

We hope, many of you will visit the OpenPKG Foundation booth. There
will be more detailed informations about the exact place in the
Rhein-Main-Hallen, when we know about it.


   (mk)


[1] Links:
--
German  : http://www.linuxtag.org/2006/de/home/aktuelles.html
English : http://www.linuxtag.org/2006/en/home/aktuelles.html

--
Matthias Kurz; Director of Strategy and Planning (SP); OpenPKG Foundation
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Merry Christmas

2005-12-24 Thread Matthias Kurz

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: tomcat: who should be allowed to install/upgrade or remove the binary package?

2005-09-21 Thread Matthias Kurz
On Wed, Sep 21, 2005, Ralf S. Engelschall wrote:

 On Wed, Sep 21, 2005, Andreas Schmidt wrote:
 
[...]
  but this leads to my questions: shouldn't the instance-manager-account
  be allowed to install new packages? otherwise i see no possiblity to
  make individual users their private openpkg instance.
 
  if this was an error of the tomcat-package, is there a way to check a
  package-installation to avoid the risk of a corrupted openpkg instance?
  or some transactional-mode?
 
 No, everything is ok. For building the management user is ok, but
 for installation one always uses root. The only exception is in
 intentionally non-privileged OpenPKG instances. There only the
 management user exists, but OTOH there one inherently cannot use all
 packages, of course.

Would it be possible to use the same user/group for all OpenPKG
users/groups in such a scenario ?
This would still not help with packages that need SUID root or SGID
sys or so for some programs, though.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: Building GCC on AIX 5.3 w/libiconv

2005-08-17 Thread Matthias Kurz
On Tue, Aug 16, 2005, Doug Summers wrote:

 Had to jump through a couple of hoops but I finally got it to compile:
 
 1) Built empty binutils package

Yes, some packages require binutils. And even when they are only
conditionally required, openpkg build eventually installs them.
I think the dummy package should have a very large version number, so
that it is not overruled by an official version. 

 2) Added '--with-libiconv-prefix=/usr \' to configure section of gcc.spec

What could be the definite solution for this infamous libiconv problem ?
Always use the system supplied version ? Add an option with_libiconv_prefix
to the gcc package ? Use --with-libiconv-prefix=%{l_prefix} and require
libiconv ?

My attempt was, to try to disable the usage of libiconv in gcc. There
are already provisions (the echo am_cv_func_iconv=no etc config.cache).
This config.cache has to be copied into the directories of some sub-
configures to become effective. But this still doesn't disable the usage
completely and i don't know exactly, whether important functionality 
is lost. It looks too ugly.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: openpkg build command-line question

2005-08-13 Thread Matthias Kurz
On Fri, Aug 12, 2005, Doug Summers wrote:

 Is it possible to pass --define switches besides with_something=yes/no? 
 I have some packages on AIX that I want to use IBM's compiler but I 
 don't know how to pass it to openpkg build. For example, I'd like to do 
 this:
 
 openpkg build --define=l_cc /usr/vacpp/bin/xlc_r --define=l_cxx 
 /usr/vacpp/bin/xlC_r gtk

Not that i know. I guess you know about $HOME/.openpkg/rpmmacros and
want to override the settings only for one package (gtk) ?

Also, do you only want to compile gtk with this compilers or also all
dependencies ?

Well, you can temporarily redefine $HOME to feed rpm with an especially
crufted rpmmacros file.
Or you write a wrapper around openpkg build, that searches for the
rpm rebuild command --rebuild gtk in the generated script and injects
more options. But you would have to use this wrapper for all builds -
in case that gtk is rebuild as a dependency of another package. And
when you also want to use the special compilers for the gtk dependencies...


   (mk)


-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: getting install errors

2005-08-11 Thread Matthias Kurz
On Thu, Aug 11, 2005, Tim Gallagher wrote:

 I am compiling the openpkg on a Debian 3.1 Sarge install.  When I try
 to compile the src file I am getting errors, can someone tell me what
 I am doing wrong??
 
 
 Here is what I get when compiling?
 
 krupware:/tmp/openpkg# sh openpkg-2.4.0-2.4.0.src.sh --prefix=/openpkg
 : command not found.src.sh: line 25:
 : command not found.src.sh: line 35:
 ': not a valid identifierh: line 39: export: `LC_CTYPE
 : octal number out of range line 40: umask: 022
 : command not found.src.sh: line 41:
 'penpkg-2.4.0-2.4.0.src.sh: line 44: syntax error near unexpected token `do
 'penpkg-2.4.0-2.4.0.src.sh: line 44: `do
 krupware:/tmp/openpkg#

Hi.

Can you verify that your mail was not crippled. If this was the case
then try to send the error output as attachment.
The md5 sum of openpkg-2.4.0-2.4.0.src.sh should be
f687a0286e8147b06b209662566cb4ad. Is this the case ? Maybe you used ftp
in text mode ?


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: OpenPKG not starting on reboot

2005-08-02 Thread Matthias Kurz
On Mon, Aug 01, 2005, Doug Summers wrote:

 This has happened twice to me today - once on Solaris 9 and the other on 
 HPUX 11.00/64. The proper init.d scripts are in place on both systems 
 (/sbin/init.d and /etc/init.d) and the K  S scripts are located here:

Does this happen sometimes or always ?
Does it run when you call .../init.d/openpkg start ?
Did you look into .../init.d/openpkg ? It checks, whether it can access
the rc of the openpkg instance. Is there any possibility that the
rc is not available. All disks should be mounted, when S99openpkg runs,
though.
Did you change the value of $openpkg_rc_def ?

You can try to run /openpkg/etc/rc -v all start or edit .../init.d/openpkg
and include the -v option. Maybe you can see the problem.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: openpkg rpm under AIX complains about missing /etc/mtab

2005-07-27 Thread Matthias Kurz
On Tue, Jul 26, 2005, Simon J Mudd wrote:

 [EMAIL PROTECTED]:/openpkg/RPM/SRC/gcc/openpkg/bin/openpkg rpm -q openpkg
 openpkg-20050613-20050613
 
 I am seeing the following references to /etc/mtab every time an rpm 
 is being installed or removed:
 
 [EMAIL PROTECTED]:/openpkg/RPM/SRC/gcc/openpkg/bin/openpkg rpm --erase 
 binutils
 error: failed to open /etc/mtab: No such file or directory

This really stinks. I already suffered from this in the past. [1]
I'm currently doing heavy reconfigurations, which means i forget to
cleanly unmount NFS servers or some machines are just down for some
time. This means machines hang whenever i try to install a rpm. Grrr.
Some time, when i have time, i'll look whether it isn't enough when
rpm just looks in the filesystem where it tries to install stuff. Or
is it necessary to stat _all_ mount points to find out on what filesystem
the data resides ?


   (mk)

[1] Oh, well, in my case it finds the file with the mount infos and tries
to access some data. So i do not see this error message, but NFS
server bla not responding...

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: Mozilla Java Plugins w/Solaris 9

2005-07-27 Thread Matthias Kurz
On Tue, Jul 26, 2005, Doug Summers wrote:

 Using the latest Java 1.4.2 release from Sun...
 
 When symlinking the Java plugin for Mozilla the browser never starts - 
 no error messages, no coredumps, no logs. The browser itself works fine 
 if the symlink is removed.
 
 I'm using this one:
 /usr/j2se/jre/plugin/sparc/ns610/libjavaplugin_oji.so (the only file 
 that exists here), which is then symlinked to /openpkg/lib/mozilla/plugins.

As far as i know this problem has to do with incompatibilities between
the Sun (Forte) c++ and g++. The supplied plugin is compiled with the
Sun c++. It does not like a g++ compiled mozilla.
So, given that this is true, there are two possibilities: Get the sources
for the Java PlugIn (i know they are available somewhere) and compile
them with gcc - or get the Sun tools and compile mozilla with the Forte
tools that are available at no cost on the OpenSolaris site somewhere.
I already have to compile mozilla under Solaris 8 and use --ignoreos to
install them on Solaris 10 because of the binutils misery, so i would
not care about this additional quirk.
It would be _really_ nice if someone could solve this :) It's on my list,
but my list is lng.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: http://wiki.openpkg.org/?BuildingOpenPKGunderAIX

2005-07-27 Thread Matthias Kurz
On Wed, Jul 27, 2005, Doug Summers wrote:

 Matthias Kurz wrote:
 On Wed, Jul 27, 2005, Christian Reiber wrote:
 
 
 Do you have any automated scripts for building everything?
 
 
 Simon, I have a Perl script which creates a Makefile from RPMs and
 SRPMs if it is of any help. It is prerelease however which means it
 fits my needs but have never tried it on other systems than Linux.
 
 
 There is already something like this, i think.
 %prefix/libexec/openpkg-tools/src2make.pl. thl ?
 
 But then, openpkg build still seems to have some bugs. We *DO* need
 something *perfect*, here !
 
 This should be the next major goal. Immediately before shared lib
 support.
{...[
 Does this script automatically build all dependencies? This is where 
 pkg-get (for Solaris 8  above) works great. If we could simulate this 
 builds would be much simpler.

I have my own opinions regarding pkg-get. Not that i think that those
people are doing a bad job. It's just way too much ad hoc for my taste.
Especially because the results are hardly reproducible.
I'd probably call it a pragmatic attempt. Great for now ! But not the
solution.

But then.
Did you try openpkg build ? Did you experience any problems ?


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: http://wiki.openpkg.org/?BuildingOpenPKGunderAIX

2005-07-27 Thread Matthias Kurz
On Wed, Jul 27, 2005, Doug Summers wrote:

 Matthias Kurz wrote:
{...]
 But then.
 Did you try openpkg build ? Did you experience any problems ?
[...]
 Nope, never tried it.

Try it. I think this is the direction, we should go. Even when we need
some improvements.

   That's my next test on a fresh Solaris 8 system. 
 My head's kind of swimming right now with all of the platforms I'm 
 trying to get OpenPKG to install on - so far only a no-go on AIX 5.2, 
 Irix, Tru64, and HPUX 11.23/IA64.

Hey, you're using IRIX ? Maybe i'm going to collaborate, there. It's
not the most used system, here. But at least i do have some resources.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: Mozilla Java Plugins w/Solaris 9

2005-07-27 Thread Matthias Kurz
On Wed, Jul 27, 2005, Doug Summers wrote:

 Matthias Kurz wrote:
[...]
 It would be _really_ nice if someone could solve this :) It's on my list,
 but my list is lng.
[...]
 Well...I installed the Sun Studio tools and I can't get it to compile 
 Mozilla, getting this:
 
 checking whether C compiler supports -fprofile-generate... yes
 checking for correct temporary object destruction order... no
 configure: error: Your compiler does not follow the C++ specification 
 for temporary object destruction order.
 error: Bad exit status from /openpkg/RPM/TMP/rpm-tmp.4467 (%build)
 
 My build command is:
 openpkg rpm --rebuild mozilla-1.7.8-2.4.0.src.rpm --define=l_cc 
 /opt/SUNWspro/bin/cc

Yes, that is the problem. There are people who generously contribute
their builds - but they do very seldom tell _how_ they did it.
Maybe there is a README.* in the binary packages ? There is often a
README.sfw in the packages on the companion CD.
Maybe you can find and ask the contributor.

 Have you tried building the OpenPKG version of J2SE? I may try that next 
 but I need to find another machine to use.

I'm afraid, the OpenPKG package just installs the binary packages that
are released by Sun. It does not rebuild them from the sources.

And i'm afraid i cannot help here. My trail is to get this fixed (even
when i have to do it myself):
http://sources.redhat.com/bugzilla/show_bug.cgi?id=1021

Then i'm going to fetch the Sun Java Sources and try to compile the
PlugIn with gcc...


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: Mozilla Java Plugins w/Solaris 9

2005-07-27 Thread Matthias Kurz
On Thu, Jul 28, 2005, Matthias Kurz wrote:

[...]
  My build command is:
  openpkg rpm --rebuild mozilla-1.7.8-2.4.0.src.rpm --define=l_cc 
  /opt/SUNWspro/bin/cc
 
 Yes, that is the problem. There are people who generously contribute
 their builds - but they do very seldom tell _how_ they did it.
 Maybe there is a README.* in the binary packages ? There is often a
 README.sfw in the packages on the companion CD.
 Maybe you can find and ask the contributor.

I refer to the contributed binaries on mozilla.org, here.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


OpenPKG mirrors

2005-07-02 Thread Matthias Kurz

Hi.

Is there a complete list of mirrors somewhere ?
When there is something on openpkg.org, that it is just not easy to
find :) It should jump in my face, when i go to Download Area.

When i look at the ftp message on login, i see only ftp mirrors.
 Distribution Master Location:
   ftp://ftp.openpkg.org/ .. CW, DE
 Distribution Mirror Locations:
   ftp://ftp.de.cw.net/pub/openpkg/  CW, DE
   ftp://rpmfind.net/linux/OpenPKG/  MIT, US
   ftp://at.rpmfind.net/linux/OpenPKG/ ... TU Vienna, AT
   ftp://fr2.rpmfind.net/linux/OpenPKG/ ... INSA, FR
   ftp://ftp.icm.edu.pl/site/openpkg/ .. ICM, PL
   ftp://ftp.ntua.gr/pub/linux/openpkg/ ... NTUA, GR
   ftp://sunsite.icm.edu.pl/pub/linux/openpkg/ . ICM, PL
   ftp://ftp.gwdg.de/pub/linux/openpkg/ ... GWDG, DE
Is this list up to date ?

There are also mirrors, that supply content by HTTP, e.g.
http://ftp.ale.org/pub/mirrors/openpkg/
Are there more ?


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Q: Pointers to OpenPKG-HOWTOs ?

2005-07-01 Thread Matthias Kurz

Hi.

I've seen some pointers in the past, but i cannot find them again. Are
there some public documents/HOWTOs, where people describe how they
configure and maintain OpenPKG ?


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: [OpenPKG-SA-2005.009] OpenPKG Security Advisory (gzip)

2005-06-10 Thread Matthias Kurz
On Fri, Jun 10, 2005, OpenPKG wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 
 
 OpenPKG Security AdvisoryThe OpenPKG Project
 http://www.openpkg.org/security.html  http://www.openpkg.org
 [EMAIL PROTECTED] [EMAIL PROTECTED]
 OpenPKG-SA-2005.009  10-Jun-2005
 
 
 Package: gzip
 Vulnerability:   arbitrary path writing
 OpenPKG Specific:no
 
 Affected Releases:   Affected Packages:   Corrected Packages:
 OpenPKG CURRENT  = gzip-1.3.5-20040207   = gzip-1.3.5-20050610
  

Where is it ?


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: sasl and openldap build problem

2005-05-30 Thread Matthias Kurz
On Sat, May 28, 2005, Ralf S. Engelschall wrote:

 On Fri, May 27, 2005, Matthias Kurz wrote:
 
  On Fri, May 27, 2005, Jean-Marc LIGER wrote:
 
[...]
  I guess there should be something like -lsasl in the link-line after -lldap.
 
 Yes, exactly that's the problem.

Did you do something ? I have the problem, that sasl from CURRENT does
not build under Solaris after the upgrade to sasl-2.1.21. Still have
to find out, what it is. There seem to be problems with the Makefiles.
It bails out with:
creating libsasl2.la
(cd .libs  rm -f libsasl2.la  ln -s ../libsasl2.la libsasl2.la)
ln -s ../plugins/sasldb.c  ../plugins/cram.c ../plugins/digestmd5.c 
../plugins/plain.c ../plugins/anonymous.c .
adding static plugins and dependencies
ar cru .libs/libsasl2.a sasldb.o db_berkeley.o allockey.o cram.o digestmd5.o 
plain.o anonymous.o
ar: sasldb.o: No such file or directory
make[2]: *** [libsasl2.a] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I could not decide whether it links the wrong file (.c instead .o) or
whether it fails to compile the .c files. The build under freebsd worked,
so i will try to compare the build logs.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: sasl and openldap build problem

2005-05-27 Thread Matthias Kurz
On Fri, May 27, 2005, Jean-Marc LIGER wrote:

[...]
 /openpkg/lib/libldap.a(cyrus.o)(.text+0x1124): In 
 function sasl_errdetail'
 /openpkg/lib/libldap.a(cyrus.o)(.text+0x14e0): In 
 function sasl_getprop'
 /openpkg/lib/libldap.a(cyrus.o)(.text+0x15f4): In 
 function sasl_setprop'
 collect2: ld returned 1 exit status
 make[3]: *** [saslauthd] Error 1
 make[2]: *** [all] Error 2
 make[1]: *** [all-recursive] Error 1
 make: *** [all] Error 2

I have currently no Solaris 9 around, only 8 and 10. I'll try to
reproduce the problem there.
Are you using gcc::with_binutils=yes ? Look at the output of
rpm -q --provides gcc


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: build recommendations

2005-04-22 Thread Matthias Kurz
On Thu, Apr 21, 2005, Michael van Elst wrote:

 On Thu, Apr 21, 2005 at 12:13:38PM +0200, Matthias Kurz wrote:
[...]
 Packages in RPM/PKG are only relevant when you do not upgrade
 but reinstall the version (with the same options or a superset of
 the options) that was once installed.

Maybe it was not with upgrade (-U) but with some other option(s). I
observed, that packages that _should_ have been recompiled - because
one or more prerequisites were recompiled - were not recompiled. Instead
the binary package from RPM/PKG was reinstalled. This happened for
installed packages where no new source packages existed. From then on
i always used the -u option.

  But. To solve the problem of duplicate packages in the build part
  probably adds too much complexity in the wrong place. I think it would
  be better (easier ?) to put this functionality in the index part. E.g.
  an option -d for delete older versions of a package.
 
 I do not really understand your setup. Do you compute the index
 directly from RPM/PKG on the build host ?

I have one build host for every platform/release. There the packages
are compiled from sources, leading to binary packages under RPM/PKG. In
this RPM/PKG i run openpkg index and it is mounted inside a hierarchy
that is accessible over anonymous ftp. From there the slave machines
get their binary packages.
Whenever a new package is compiled from sources, that means, when a new
binary package is created, the previous version of the binary package
_remains_ in RPM/PKG. So the different versions of a binary package add
up. When i delete RPM/PKG completely, there is nothing left to install
the slave hosts. When i _move_ everything from RPM/PKG to another place,
then i just have the same problem (many versions of the binary packages)
in this other place.
I guess, in the meantime one could have written _two_ scripts that analyze
00INDEX.rdf (Name/, BuildTime/) and remove duplicates :)


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: build recommendations

2005-04-21 Thread Matthias Kurz
On Wed, Apr 20, 2005, Michael van Elst wrote:

 On Wed, Apr 20, 2005 at 01:40:22PM +0200, Matthias Kurz wrote:
[...]
  It would be nice to have an option that removes all old versions of a
  package from $prefix/RPM/PKG, when a new build succeeded.
 
 Maybe, but what is 'an old version of a package' ? I would consider
 to simply delete everything from RPM/PKG.

All packages with the same %name are the same package. All packages
except the one with the newest build date are old packages.
Removing everything from RPM/PKG is not very practical, because one
needs all (binary) packages e.g. when a new machine is installed or
when machines with older software than the build machine are upgraded.
And rebuilding everything all the time is not very elegant and quite
time-consuming.
But. To solve the problem of duplicate packages in the build part
probably adds too much complexity in the wrong place. I think it would
be better (easier ?) to put this functionality in the index part. E.g.
an option -d for delete older versions of a package.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


build recommendations

2005-04-20 Thread Matthias Kurz
On Tue, Apr 19, 2005, Etienne-Hugues Fortin wrote:

 Hi,
 
 I've installed openpkg on a few servers up to now and for the first time,
 I decided to investigate why I'm unable to fetch RPM directly from the ftp
 url.  After installing the base openpkg package as well as openpkg-tools,
 I've tried to do operation as:
 
 /openpkg/bin/openpkg build -Ua | sh -

This can mess up things, when something goes wrong. It is better to save
the output of openpkg build to a file. When something breaks, correct
the problem, edit the script and remove everything in front of the package
that failed to build. Then restart, using the edited script, instead of
doing another openpkg build.
It would probably be a good idea, when openpkg build would do some
bookkeeping, e.g. create and manage a file ~/.openpkg/build.dirty with
the names of all packages that need a rebuild. Or when there would be
an option that would let openpkg build look at the install dates in
some way. E.g. rebuild openssh when openssl has a newer build/install date.
Hmmm, are the build dates of the (binary) packages available from the rpm
database ? It would be much better, when one could find out with what
versions of the required packages a particular package was built. Is this
possible ?

I also recommend to use -Uua or to remove everything from $prefix/RPM/PKG
before running openpkg build.
It would be nice to have an option that removes all old versions of a
package from $prefix/RPM/PKG, when a new build succeeded.

To the proxies. When one specifies a ftp proxy, a real ftp proxy is
expected. ftp over http proxy does not work. Is there a way to access
the OpenPKG packages using http instead of ftp ? It is probably better to
mirror the openpkg stuff locally, anyway.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: Remote fetching not working properly on my system - Solaris 9 - Sparc

2005-04-20 Thread Matthias Kurz
On Wed, Apr 20, 2005, Etienne-Hugues Fortin wrote:

 Hi,
 
 No, I'm not using any proxy.  It is a straight forward IPFilter firewall
 with simple NAT on it.  From the same machine I'm trying to run RPM, I'm
 able to run wget and curl without any proxy setup and both in active and
 passive ftp.

IPFilter and FTP have always been an horror to me (together, IPFilter is
great). But then, when it works with wget and curl, it should probably also
work with rpm.

 Is there any log that can be activated in RPM to have more details?

Ummm,... truss ? :)


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


and docs (was: Standardize %{l_prefix}/var/*/log* directories?)

2005-01-27 Thread Matthias Kurz
On Thu, Jan 27, 2005, Bill Campbell wrote:

 I would like to propose standardizing the log directories for openpkg
 packages.  Some packages put the logs directly under their var/package
 directory, others under a subdirectory, generally named either log or logs.
 
   %{l_prefix}/var/apache/log
   %{l_prefix}/var/mailman/logs
   %{l_prefix}/var/postfix/log
   %{l_prefix}/var/squid/logs
   %{l_prefix}/var/zope/log
 
 I think it would nice if these were consistent.

I agree, too.
And it would also be nice when there would be something similiar for
documentation.
E.g. %{l_prefix}/share/pkg/doc  - for non-html and
 %{l_prefix}/share/pkg/html - for html
With some content ;)


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: Reset Ownership of Files

2005-01-19 Thread Matthias Kurz
On Wed, Jan 19, 2005, David M. Fetter wrote:

 So, we have a problem on of our newly built systems.  It was jumpstarted
 and OpenPKG installed as part of that, but the openpkg user accounts
 (opkg, opkg-r  opkg-n) were not detected.  Now all of the files are
 improperly chowned.  What would the best way be to reset all of the
 permissions back to the default?  I'm thinking some sort of openpkg rpm
 query that lists all of the files installed in every rpm package then
 piping that to some xargs command that chowns them right.  I'm not sure
 what options from rpm would provide me the owner and group of each file
 it lists though.  Anybody have any ideas?

Hi.

I'm not sure, whether i understand the problem. I would expect that
new accounts are created, when existing ones were not detected. Then this
would be a mapping problem
(find /prefix -user/group wrongNumID|xargs chown/chgrp rightNumID).
.. anyways, it's late...
Check openpkg man rpm for the options --verify (shows problems) and
--setugids (corrects problems). Maybe this helps.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: Reset Ownership of Files

2005-01-19 Thread Matthias Kurz
On Wed, Jan 19, 2005, David M. Fetter wrote:

 On Thu, 2005-01-20 at 00:09 +0100, Matthias Kurz wrote:
[...]
  Check openpkg man rpm for the options --verify (shows problems) and
  --setugids (corrects problems). Maybe this helps.
 
 Ah, groovy.  Yeah, I'm just slammed right now, so I was being lazy on
 this one.  Thanks.

I looked in a script, i wrote some time ago. I'm not sure, whether the
option --all (all installed packages) works with --verify and i do not
want to try it, currently :). In the script i used
   openpkg rpm --setugids `rpm -qa`

   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: Problems w/Mozilla 1.7.3 on Solaris 9 - UPDATE

2005-01-05 Thread Matthias Kurz
 is already fully qualified
;;
google:* ) 
#   expand Google query
url=`echo $url | sed -e 's;^google:;;' | tr ' ' '+'`
url=http://www.google.com/search?q=$url;
;;
leo:* ) 
#   expand Leo Dictionary query
url=`echo $url | sed -e 's;^leo:;;' | tr ' ' '+'`
url=http://dict.leo.org/?search=$url;
;;
ftpsearch:* ) 
#   expand FTPSearch query
url=`echo $url | sed -e 's;^ftpsearch:;;' | sed -e 's; 
;%20;g'`
url=http://www.alltheweb.com/search?advanced=1cat=ftpq=$url;
;;
rfc:* )
#   expand Zvon.org RFC query
url=`echo $url | sed -e 's;^rfc:;;'`
url=http://zvon.org/tmRFC/RFC$url/Output/index.html;
;;
whois:* )
#   expand Geektools.com WHOIS query
url=`echo $url | sed -e 's;^whois:;;'`
url=http://www.geektools.com/cgi-bin/proxy.cgi?query=$url;
;;
jargon:* )
#   expand UMEC Jargon File query
url=`echo $url | sed -e 's;^jargon:;;' | tr ' ' '+'`
url=http://www.tf.hut.fi/cgi-bin/jargon?search=$url;
;;
/* ) 
#   expand absolute filename into file URL
url=file://$url
;;
* ) 
#   expand relative filename into file URL
url=file://`pwd`/$url
;;
esac
fi

if [ .$first = .yes -a .$restart = .yes ]; then
#   handling of first URL if restarting is necessary
verbose running new process
if [ .$url = .about:blank ]; then
verbose exec: $mozilla_bin $opt_l 21 
$mozilla_bin $opt_l 21 
else
verbose exec: $mozilla_bin \$url\ $opt_l 21 
$mozilla_bin $url $opt_l 21 
fi
else
#   delayed waiting for process to be finally remotely available
#   if it was started from scratch for the handling of the first
#   URL. This way we wait only if necessary, i.e., if more than
#   one URL was given.
if [ .$first = .no -a .$restart = .yes ]; then
verbose waiting for new process to be available remotely
sleep 4 # give it a little bit of time to fully startup
i=0
while [ $i -lt 10 ]; do
$mozilla_bin -remote ping() $opt_l 21
if [ $? -eq 0 ]; then
break
fi
sleep 1 # give it a little bit more time to startup
i=`expr $i + 1`
done
fi

#   try to activate (and bring to foreground) the Mozilla window
$wmctrl_bin -a Mozilla $opt_l 21 || true

#   determine remote command
if [ .$opt_w = .yes ]; then
if [ .$url = .about:blank ]; then
cmd=xfeDoCommand(openBrowser)
else
cmd=openURL($url, new-window)
fi
elif [ .$opt_t = .yes ]; then
cmd=openURL($url, new-tab)
else
cmd=openURL($url)
fi

#   perform remote command
verbose sending remote command to running process
verbose exec: $mozilla_bin -remote \$cmd\ $opt_l 21
$mozilla_bin -remote $cmd $opt_l 21
fi
first=no
done
8--8---8--8---

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: Format of ~/.openpkg/build

2004-04-30 Thread Matthias Kurz
On Wed, Apr 28, 2004, Doug Henry wrote:

 Maybe format is not a problem, what does that stuff mean.  I can't find
 explanation anywhere.  ...

With CURRENT it is openpkg man openpkg build or openpkg man build.

This becomes a little bit tricky. It would be nice, when there where an
entry page with openpkg man openpkg and from there _clear_ instructions
what other subcommands exist and how one can reach detailed documentation.

E.g. under Local Documentation. When i see openpkg-rpm, i would expect
that openpkg man openpkg-rpm would work. When i see openpkg rpm, i
would expect that openpkg man openpkg rpm would work.
When i see, that a subcommand (tool) build exists, i would expect, that
openpkg man build would work.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: lsync?

2004-04-14 Thread Matthias Kurz
On Wed, Apr 14, 2004, Dean, David P wrote:

 Dear List,
 
 Is the lsync utility still recommended to install links to custom packages
 in the local tree? I have openpkg-2.0.0-2.0.0 installed on Solaris 8 but
 don't see lsync in /sbin as the handbook indicates. There is a bash script
 libexec/openpkg/lsync -- should I use that? Is there a man page?

It is now in $prefix/libexec/openpkg/lsync. Guess you have to use
openpkg lsync. openpkg man lsync works, too.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: Format of ~/.openpkg/build

2004-04-13 Thread Matthias Kurz
On Tue, Apr 13, 2004, Tobias Cremer wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi,
 
 I am searching for a possibility to recreate an existing openpkg
 installation (i.e after a new set up) and I know that I can use
 ~/.openpkg/build to store the build time parameters.
 
 But I am not sure which format this file has to have. Can anybody tell
 me about that? Blame me if I didn't see the appropriate email in the
 list, and the tutorials on the website didn't tell me anything about
 that as well... So I am posting this question to the list since it might
 be of general interest.

From an old man openpkg:

 openpkg build reads the configuration file
 $HOME/.openpkg/build.  The file lists default options, one
 option per line and section tags of the form [prefix].
 Options following such a tag are only evaluated if the
 selected RPM path matches the prefix so that you can define
 default options for multiple OpenPKG hierarchies.


Here is an excerpt of my $HOME/.openpkg/build:
-88-8-8-8-8-
-P hurtig
-r ftp://mirror/pub/openpkg/current/SRC
-f ftp://mirror/pub/openpkg/current/SRC/00INDEX.rdf.bz2
-Dgcc::with_binutils=no
-Damanda::with_server=yes
-88-8-8-8-8-


This should also work, but i had some difficulties when i just tried it.
I will write another mail about the problems.

-88-8-8-8-8-
-P hurtig

-Damanda::with_server=yes

[/opkg]
-r ftp://mirror/pub/openpkg/current/SRC
-f ftp://mirror/pub/openpkg/current/SRC/00INDEX.rdf.bz2
-Dgcc::with_binutils=no

[/opkg2]
-r ftp://mirror/pub/openpkg/release/SRC
-f ftp://mirror/pub/openpkg/release/SRC/00INDEX.rdf.bz2
-Dgcc::with_binutils=yes
-88-8-8-8-8-

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


openpkg man

2004-03-20 Thread Matthias Kurz
On Sat, Mar 20, 2004, Ralf S. Engelschall wrote:

 On Fri, Mar 19, 2004, Matthias Kurz wrote:
 
  On Fri, Mar 19, 2004, David M. Fetter wrote:
 
  [...]
   ... Please advise or point me to documentation that explains
   this, I couldn't seem to find anything that directly speaks to this
   matter.  Thank you.
 
  Oh, well. And there is at least documentation in form of a man page
  (man rc).
 
 And since OpenPKG 2.0 and CURRENT since 200402xx, use have to use
 openpkg man rc.

Now, this also explains, why i found man pages under $prefix/libexec/openpkg
(http://marc.theaimsgroup.com/?l=openpkg-usersm=107952511309853w=2)
and where the missing openpkg build man page was left:
openpkg man build. That's tough stuff. Hope i'll remember...


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: Installing make

2004-03-19 Thread Matthias Kurz
On Fri, Mar 19, 2004, Mark Gjøl wrote:

 ... That didn't give much feedback... Upon inspecting the TMP directory
 I find the variable: MAKE=make, which I'd think should be changed, when
 I've defined that gmake should be used as make... Anyone?

Where exactly do you see this ?

Yesterday i tried the command:

openpkg rpm --define use_cc /opkg/bin/gcc --define use_make /usr/ccs/bin/make 
--rebuild /pub/openpkg/release/SRC/make-3.80-2.0.0.src.rpm

and it worked for me:
..
config.status: creating po/POTFILES
config.status: creating po/Makefile
+ /usr/ccs/bin/make
/usr/ccs/bin/make  all-recursive
Making all in glob
..

Though, i tried it under Solaris-8/x86. So i gave up.

Oh, where do the parameters --no-print-directory -j4 come from in
your case ? Or why are they missing in my case ?

I just retried with use_make /opkg/bin/gmake:
..
config.status: creating po/POTFILES
config.status: creating po/Makefile
+ /opkg/bin/gmake --no-print-directory -j4
/opkg/bin/gmake  all-recursive
Making all in glob
..

So there seems to be some black magic that recognizes gmake. It still
works for me, though.

I looked into $prefix/etc/openpkg/rpmmacros. %{l_make} is defined as
rpmmacros:%l_make  %{l_tool_locate make make}

.. and when i saw l_tool_locate, i broke together.

Do you have something in your $HOME/.rpmmacros ?


   (mk)

 
 On Thu, Mar 18, 2004 at 01:53:59PM +0100, Mark Gjøl wrote:
  I'm installing openpkg on a SUN ultraSPARC running Solaris 9.
  
  I've bootstrapped the system with:
  sh openpkg-2.0.0-2.0.0.src.sh --prefix=/opt/openpkg/2.0/
  sh openpkg-2.0.0-2.0.0.sparc64-solaris9-oo2.sh
  
  Then I ran the eval script:
  eval `/opt/openpkg/2.0/etc/rc --eval all env`
  
  So all should be fine. Now... I thought it would probably be a good idea
  to install gcc and make and such basic packages, so I ran:
  openpkg rpm --define use_cc /opt/sfw/gcc-3.2/bin/gcc --define
  use_make /opt/sfw/bin/gmake --rebuild 
  ftp://ftp.openpkg.org/release/2.0/SRC/make-3.80-2.0.0.src.rpm
  
  And this is where the story comes to a grinding halt... After a bunch of
  configure lines I get:
  config.status: executing default-1 commands
  config.status: creating po/POTFILES
  config.status: creating po/Makefile
  + /opt/sfw/bin/gmake --no-print-directory -j4
  make  all-recursive
  /bin/bash: make: command not found
  gmake: *** [all] Error 127
  error: Bad exit status from /opt/openpkg/2.0/RPM/TMP/rpm-tmp.5915
  (%build)
  
  I know gmake is where I said it was. I've told openpkg to use that
  gmake, but even if it chooses not to I have a handy SUN make located
  cozilly in /usr/xpg4/bin/make... What's wrong?

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: Installing make

2004-03-19 Thread Matthias Kurz
On Fri, Mar 19, 2004, Mark Gjøl wrote:

 On Fri, Mar 19, 2004 at 02:48:32PM +0100, Matthias Kurz wrote:
  On Fri, Mar 19, 2004, Mark Gjøl wrote:
   ... That didn't give much feedback... Upon inspecting the TMP directory
   I find the variable: MAKE=make, which I'd think should be changed, when
   I've defined that gmake should be used as make... Anyone?
  Where exactly do you see this ?
  Yesterday i tried the command:
  openpkg rpm --define use_cc /opkg/bin/gcc --define use_make /usr/ccs/bin/make 
  --rebuild /pub/openpkg/release/SRC/make-3.80-2.0.0.src.rpm
  and it worked for me:
  Though, i tried it under Solaris-8/x86. So i gave up.
 
 Oh, I've moved /usr/ccs/bin because I needed to use the GNU ld, rather
 than the SUN ld, and this was the only obvious way to move it out of the
 way... It works now, (YAY) thanks!

What do you mean with it works now ?
Does it use the make that you specified with use_make or does it
work because /usr/ccs/bin is in the PATH and it finds the make there ?
How does the line with all-recursive look like ?


   (mk)


-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: rebuild php / definition

2004-03-19 Thread Matthias Kurz
On Fri, Mar 19, 2004, Mike's List wrote:

 Now that I know how to build apache with php/mysql enabled, I need to add
 imap to apache and build php with gettext support...
 
 This is how apache was built,
 
 openpkg rpm --rebuild --define 'with_mod_php yes' --define \
 'with_mod_php_mysql yes' ~mike/openpkg/src/apache-1.3.29-2.0.0.src.rpm
 
 ...w/additional support for imap w/in apache, do I just add the below?
 
   --define 'with_mod_php_mysql_imap yes'

You remember how to find the valid options ?
- http://marc.theaimsgroup.com/?l=openpkg-usersm=107950470830001w=2

rpm -qip is for querying rpm archives (e.g. to find the defaults). You
can also list the options of installed packages (and the current settings)
with rpm -qi pkg or with rpm -q --provides pkg (e.g. rpm -qi apache
see man rpm).

So, with_mod_php_mysql_imap does not look like a valid option.


 openpkg rpm --rebuild --define 'with_mod_php yes' --define \
 'with_mod_php_mysql yes' --define 'with_mod_php_mysql_imap yes' \
 ~mike/openpkg/src/apache-1.3.29-2.0.0.src.rpm
 
 ...to build PHP with gettext enable do I just do the below?
 
 openpkg rpm --rebuild --define 'with_mod_gettext yes' \
 ~mike/openpkg/src/php-4.3.4-2.0.0.src.rpm

 The key part is --define 'with_mod_module yes' and if there's additional
 module you added onto the second definition and third and so on? (like the
 apache example above?)

I'm not quite sure, whether i understand this question. When you have
built e.g. apache with two options and you want another option then you
have to specify all three options in the new build, not only the additional
one. Generally, you have to specify _all_ options that are different from
the defaults in each build.
Also, you have to use rpm --force -Uvh to install the modified
binary package.
Did someone already mention openpkg-tool ? ;-)


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: SUMMARY: rpm -e

2004-03-17 Thread Matthias Kurz
On Tue, Mar 16, 2004, Mike's List wrote:

 
 Thanks to: Bill Campbell, Steffen Weinreich, and Thomas Lotterer for
 the quick replies.  The below command works.
 
 In addition, you can rebuild the package and do an rpm -U --force to
 do the new installation.  I decided to remove/reinstall to be safe.

Maybe this was best suited for your case. Generally an update is better
than a remove/reinstall, i think, because the update retains modified
config files in most cases.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: Rebuild Apache with options

2004-03-17 Thread Matthias Kurz
On Wed, Mar 17, 2004, Michael van Elst wrote:

 On Wed, Mar 17, 2004 at 07:18:38AM +0100, Michael van Elst wrote:
 
  rpm --rebuild --define 'with_php yes' --define 'with_php_mysql yes' apache
 
 That should have been:  'with_mod_php yes' and 'with_mod_php_mysql yes'.
 

And it would probably better to use openpkg build, wouldn't it ?

openpkg build -Dapache::with_mod_php=yes -Dapache::with_mod_php_mysql=yes apache | sh

One can also create a file $HOME/.openpkg/build and put those options in
it (one option per line).


   (mk)

BTW: There are no manual pages except openpkg.1 under CURRENT. And the
 manual pages for rpm are under .../libexec. But i think this is
 work in progress...

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: What is id or tag for?

2004-03-11 Thread Matthias Kurz
On Thu, Mar 11, 2004, Ralf S. Engelschall wrote:

 On Thu, Mar 11, 2004, Michael van Elst wrote:
 
I looked through the online documentation but can't seem to find any
reference as to what the id or tag identifies.  What does it mean?
I noticed when I bootstrapped it on Solaris 8 the tag was dcl, but
then when I'm now building it on Solaris 9 the tag changed to ulo.
Why is that?  Can this tag be changed or manipulated for custom rebuilt
packages?  That would be useful.  Then we can keep essentially the same
naming convention with our own modified packages but have a different
tag to identify us.
 
  The tag identifies different OpenPKG instances on the same machine
  and is by default computed from the prefix.
  E.g.:
  /usr/local/opkg - ulo

CRAZY !!!  Thanks a lot for the explanation ! You cannot imagine how much
this buggered me :-)


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: Openpkg 2.0 on solaris, problem: error: db4 error(11)

2004-02-27 Thread Matthias Kurz
On Fri, Feb 27, 2004, Christian Leber wrote:

 On Thu, Feb 26, 2004 at 07:15:46AM +0100, Ralf S. Engelschall wrote:
 
  Your /oipt0/cw-2.0/ is on NFS, right? Then you need to set
  _rpmdb_private 1 in your ~/.rpmmacros file to force RPM to switch to
  the old RPM 4.0 database access methods. Or try the --db-private option
  on the command line as an alternative.
 
 With the option it works for me, but i'll look at the mount options,
 thank you.

Please report back. Solaris should really not have problems with NFS
locking.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: multiple updates in UPD

2003-11-18 Thread Matthias Kurz
On Tue, Nov 18, 2003, Thomas Lotterer wrote:

[...]
 We should metion somewhere that OpenPKG UPDates
 - are not patches but patched complete packages
 - are as compatible as possible to the original package
 
 Transforming into practice: grab the latest version, build, install
 (OpenPKG done) and verify everthing is working (good Admin's habit),
 really done.


Wouldn't it be less confusing when older updates would be removed ?


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: installing sudo without installing MTA

2003-11-14 Thread Matthias Kurz
On Thu, Nov 13, 2003, F. Even wrote:

 First off, I would like to say you guys have done an awesome job w/ OpenPKG.
 You have saved me lots of trouble having to upgrade my FreeBSD 4.0R box that
 is in a remote location.  The ports collection no longer works correctly,
 packages are hit and miss...but now OpenPKG to the rescue.
 
 I was trying to install sudo and it would not install due to a generic MTA
 dependency.  I have one of the latest snapshots of postfix installed on this
 machine from source, and do not need an MTA.

When you have to _install_ postfix, why don't you use the OpenPKG version ?

 I've seen some references to creating a virtual package.  I've even found
 this:
 
 http://marc.theaimsgroup.com/?l=openpkg-usersm=105800389211960w=2

 ...but even with that and all of the documentation (Handbook/FAQ, etc.), the
 process for creating these virtual packages is vague at best.  I would be
 one of the very grateful OPKG users if this could be spelled out somewhere
 for someone who is not really a programmer, and can make only crude scripts.
 
 Could someone direct me to a tutorial/quicky FAQ item, something that tells
 me how to create a virtual package to meet the MTA dependency?

In the meantime, there is openpkg-import. The magic is just the
Provides: MTA. When you installed postfix in sendmail compatibility mode,
then installing openpkg-import may solve your problem (but see above).

 Also.given all the documentation, I still really have no clue how to use
 lsync.  Is there anywhere I can get more information using htat?  How does
 lsync fit in the process above?

AFAIK lsync is a tool to work with packages outside the OpenPKG hierarchy.
That means files not included in the RPM database.
The idea is to have each package in its own directory tree (e.g. by installing
like configure --prefix=/usr/local/pkgs/package-name). This is how i worked
in the past.
So each package has its own subdirs
/usr/local/pkgs/package-name/bin
  /lib
  /share etc. etc.
And then there is another hierarchy e.g. under /usr/local where symlinks
point into the packages subdir tree
e.g. /usr/local/bin/bash- /usr/local/pkgs/bash-2.05/bin/bash and
 /usr/local/man/man1/bash.1 - /usr/local/pkgs/bash-2.05/man/man1/bash.1
 etc. etc.
In your $PATH you have just /usr/local/bin.

Hmmm, hard to explain. Hope you got the idea - or someone else can explain
it better. lsync creates the symlinks from /usr/local/{bin,lib,etc.etc.}
into the package dirs /usr/local/pkg/{bin,lib,etc}, when i understand
right.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: installing sudo without installing MTA

2003-11-14 Thread Matthias Kurz
On Fri, Nov 14, 2003, F. Even wrote:

 On 11/14/03 2:07 AM, Matthias Kurz [EMAIL PROTECTED] wrote:
 
  On Thu, Nov 13, 2003, F. Even wrote:
  
  First off, I would like to say you guys have done an awesome job w/ OpenPKG.
  You have saved me lots of trouble having to upgrade my FreeBSD 4.0R box that
  is in a remote location.  The ports collection no longer works correctly,
  packages are hit and miss...but now OpenPKG to the rescue.
  
  I was trying to install sudo and it would not install due to a generic MTA
  dependency.  I have one of the latest snapshots of postfix installed on this
  machine from source, and do not need an MTA.
  
  When you have to _install_ postfix, why don't you use the OpenPKG version ?
 
 When I need to.  But, I already had the latest snapshot installed before I
 installed OPKG, and it is a newer version than is packaged.  I'm actively
 using some of the features in the newer version.

Sorry, our mails crossed :-)

   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: Problem accessing DB on Solaris using openpkg-20031006-20031006

2003-10-08 Thread Matthias Kurz
On Wed, Oct 08, 2003 at 10:45:12AM -0400, Dennis McRitchie wrote:
 Good thought. Yes, $prefix is on a mounted file system. But that is a mandatory 
 requirement for us since we need to
 allow many users to have access to this openpkg instance in that fashion.
 
 I might also mention that openpkg-1.3.1-1.3.1 did not complain about this.
 
 Any thoughts about how to get around this? It would be a show-stopper for us if 
 openpkg was going to stop supporting NFS
 mounted file systems.
 

Hmmm, what OS is running on the NFS server ? Hope, someone will pick this
up. I do not have time, currently.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: Subject: [OpenPKG-SA-2003.044] OpenPKG Security Advisory (openssl)

2003-10-03 Thread Matthias Kurz
On Wed, Oct 01, 2003 at 10:09:54AM +0200, Thomas Lotterer wrote:
 On Wed, Oct 01, 2003, Matthias Kurz wrote:
 
[...]
  I upgraded the machines that build from sources with
 openpkg build -i -g -u openssl | sh
  
 For standalone machines and masters as you describe them, a openpkg
 build -Ua should be sufficent. I tried it on some instances and the
 results looked fine. It even detected packages which used openssl due to
 a conditional with_xxx option. As the generated script uses --force,
 don't forget to check the configuration.
 
 Being a little paranoid i also executed
 
 $ for i in `/cw/bin/rpm -q --whatrequires openssl`; do \
 /cw/bin/rpm -qi $i | grep Build Time; \
   done

Well, there is a difference between rpm --whatrequires and
openpkg build -L. And it makes sense in some cases to rebuild some
of the additional packages picked by openpkg build -L. I prefer to
update one package too much than one package too little.

 and checked if all eventually installed packages that directly depend on
 openssl have been built recently. Needless to say, the last action is
 always to test the final results.

Yeah, i'm also ;) a bit unsure, when it comes to openpkg-tool and
dependencies. 
That different output is generated for two consecutive calls with the
_same_ option(s) doesn't make things easier.
Though, i checked the output several times and could not find obvious
errors.

My main problem is that there are no examples/instructions. I don't
want to say that there are too many options - it would just be nice when
there where examples for the usual cases (*1*):

- Install packages and all packages they depend on from source rpms
- Install packages and all packages they depend on from binary rpms

- Upgrade all installed packages from source rpms when necessary
- Unconditionally upgrade all installed packages from source rpms
- Upgrade specific packages from source rpms when necessary
- Unconditionally upgrade specific packages from source rpms (*2*)

- Upgrade all installed packages from binary rpms when necessary
- Unconditionally upgrade all installed packages from binary rpms
- Upgrade specific packages from binary rpms when necessary
- Unconditionally upgrade specific packages from binary rpms

Are all those cases supported ?
Are there other important/supported cases ?
What are the recommended (openpkg) commands for the supported cases ?

It is also _extremly_ important to _define_(*3*) what effect --force has
on configurations. From my observation it does _not_ clobber existing and
modified configs. Well, but one has to get the .specs right in the first
place. E.g. httpd.conf et al are not flagged as config files in the apache2
package - and are consequently replaced by an upgrade. D'oh ! 

I have machines with up to 240 installed packages - i really do not want
to check each and every configuration after a minor upgrade.

  But when i try this with binary packages
 openpkg build -p platform
   -r ftp://bla/.../RPM/PKG
   -f ftp://bla/.../RPM/PKG/00INDEX.rdf.bz2
   -i -g -u
  I get 
  FATAL: cannot find source for 'openssl'
  
 If your command listing above is complete it looks like you forgot to
 create a new index.

It works, when i leave out the -u, so i do a
rm $opkg_root/RPM/PKG/*; openpkg build ...

Perhaps someone could tell whether and how yum or apt can improve things ?
What about the usual cases above ?

I'd like to get the basics straight, first, so i try to concentrate on
openpkg-tool - before i completely loose the ground. I had to stop to
look at apt or yum for now.

I wanted to slowly adapt OpenPKG, but the staccato of needed security
updates in the last time forced me to use OpenPKG more seriously and
in more important places. I really do no longer want to waste my time
with the /usr/local morass. But i'm also not completely satisfied with
my current setup - it is much better than before (*4*), but still not
defined and automatic enough.


   (mk)

(*1*) I'm under the impression anyways, that more and more often such
  valuable sections like SEE ALSO and EXAMPLES are left out from
  manual pages. Not spoken of completely left out man pages or man
  pages with just a reference to some html/info dung - that's really
  bullshit. Not that i do not appreciate additional or in deep
  informations, but usable man pages must be there, _first_.

(*2*) Well, unconditionally here means: force a rebuild of only the named
  packages and also force a rebuild of all packages that depend on one
  or more of the rebuilt packages.

(*3*) http://www.mail-archive.com/openpkg-dev%40openpkg.org/msg09886.html

(*4*) Even the development of local or locally modified packages is much
  more fun with the OpenPkg/rpm environment, because it is much easier
  to reproduce results.

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein

Re: Problems with openpkg non-root

2003-09-11 Thread Matthias Kurz
On Thu, Sep 11, 2003 at 12:39:45PM +0200, [EMAIL PROTECTED] wrote:
 On Thu, Sep 11, 2003 at 08:21:36AM +0200, Matthias Kurz wrote:
  On Wed, Sep 10, 2003 at 10:36:10PM -0700, Conrad Steenberg wrote:
  [...]

Hi.

I also installed an instance as non-root in the meantime.


   Some suggestions (sorry if it sounds obvious :-)
  Same here.
   1. Make sure the openpkg rpm db is intact in the above directory
 
 1. Wouldn't really know how to... This is a dir listing, but it's from a
 new ins
 tall of openpkg:
 $ ls -l /ebar/efs1/home1/s01/s011269/openpkg/local/RPM/DB
 total 4456
 -rw-r--r--   1 s011269  s0124576 Sep 10 11:06 Basenames

Same permissions here.

   3. Check the permissions  of the db directory, your user should have
   read and write access to the dir.
 
 3. DB-dir:
 drwxr-xr-x   2 s011269  s01 4096 Sep 10 11:08 DB

Same permissions here.

   4. Do an 'strace rpm -q openpkg' and send the output, that should show
   which system call failed (if the problem is in fact a permission or
   locking problem).
  There is a strace command under Solaris, but it is probably better to
  use truss.
   strace - print STREAMS trace messages
   truss - trace system calls and signals
 
 4. strace doesn't work ERROR: unable to open /dev/log, but truss does
 though (output and some version of this mail can be found here:
 http://b0rken.dk/openpkg.txt )

I was sure, that truss was meant. Other platforms, other commands. At
least for special things.

   5. Make sure the right version of rpm gets called by your command.
  That is a good idea, because there may be an /opt/sfw/bin/rpm from the
  companion cd.
 
 5. Already did that one... To convince you :)
 $ rpm --version
 RPM version 4.0
 $ export PATH=/ebar/efs1/home1/s01/s011269/openpkg/local/bin/:$PATH

I think, the regular way is to do a 
eval `/ebar/efs1/home1/s01/s011269/openpkg/local/etc/rc --eval all env`
I don't see something special, there, though. Except that it sets
LD_LIBRARY_PATH... i'm sure this makes some sense...
But i don't think this is related to your problem.

 $ rpm --version
 RPM version 4.2.1
 
 Could this be a db problem (the program)?

Well how did you unpack the openpkg-tool rpm ? You could have used
rpm --rebuild path-to-openpkg-tool.src.rpm.

I tried rpm -ivh path-to-openpkg-tool.src.rpm, then i
went to the equivalent of
/ebar/efs1/home1/s01/s011269/openpkg/local/RPM/SRC/openpkg-tool on my
machine and did a
rpmbuild -ba openpkg-tool.spec 21 | tee log
Hmmm, -bb would have been enough...

Then, i added the binary package from the equivalent of
/ebar/efs1/home1/s01/s011269/openpkg/local/RPM/PKG/
with
rpm -Uvh /projects/tmp/non-root/RPM/PKG/openpkg-tool-20030902-20030902
And it worked.
$ rpm -qa
gpg-pubkey-63c4cb9f-3c591eda
openpkg-20030909-20030909
openpkg-tool-20030902-20030902


What disturbs me, are the strange platform parts in the names of the
binary packages.
I see
openpkg-tool-20030902-20030902.ix86-solaris8-ptn.rpm
 ^^^
I saw eeh in your mail. Hmmm, i'd say there is a problem. But it
has probably nothing to do with _your_ problem.

Did you do something different from what i did ?


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: Problems with openpkg non-root

2003-09-11 Thread Matthias Kurz
On Thu, Sep 11, 2003 at 12:39:45PM +0200, [EMAIL PROTECTED] wrote:
[...]
 4. strace doesn't work ERROR: unable to open /dev/log, but truss does
 though (output and some version of this mail can be found here:
 http://b0rken.dk/openpkg.txt )

Hmmm, i tried to avoid it, but i looked at it. Is it possible, that
there are not enough resources or that you exceed some limit. What
does ulimit -a or swap -l report ? Are there strange messages
in /var/adm/messages ?
I tried the last version on a SPARC, and it worked - but it was not
installed by a bootstrap.sh...
What compiler did you use for the bootstrap ?


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


openpkg build fails for binary packages from local repository

2003-09-05 Thread Matthias Kurz

Hi.

I tried to install binary packages with 
openpkg build -p `cat $opkg_root/etc/openpkg/platform` \
  -r /pub/openpkg/current/PKG \
  -f /pub/openpkg/current/PKG/00INDEX.rdf.bz2 | sh; echo $?

The generated shell script invokes curl to copy the binary packages
to $opkg_root/RPM/PKG first. And for local paths, curl just burbs and
dies (with exit code 3 - URL malformat. The syntax was not correct).
This can be fixed by replacing a leading / by file://localhost/.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: perl ``locale'' on FreeBSD 4.8

2003-08-16 Thread Matthias Kurz
On Sat, Aug 16, 2003 at 01:03:48PM -0700, Bill Campbell wrote:
 Running perl-5.8.0-1.3.0 on FreeBSD 4.8 STABLE, I frequently see a message
 from perl scripts saying that it can't find the ``locale'' program.  It
 doens't seem to hurt anything, but is a bit annoying.
 
 Is there something simple that I'm missing here?
 

I don't know about FreeBSD. But from my experience this points to
the fact that the $LANG or $LC_*-variables are not defined in the
environment or have a setting, that the localization functions do not
recognize. Look, whether you have a man locale.
I always set LC_ALL=C; export LC_ALL in shell scripts, for example,
because this most of the time gives the expected results.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: Optimizing traffic

2003-07-16 Thread Matthias Kurz
On Wed, Jul 16, 2003 at 07:14:39AM +0200, Ralf S. Engelschall wrote:
 On Tue, Jul 15, 2003, Matthias Kurz wrote:
 
[...]
 
  This way i would not always need to transfer the whole rpm, when
  only a comma is changend in the .spec-file.
 
 These days (where lots of cleanups and other adjustments are done)
 certainly a sexy idea. But the best approach usually is to establish a
 developer/contributor environment with the openpkg-dev script and then
 just checkout the CVS sources and download the remaining (vendor) files
 directly from the Internet on demand. This way you reduce your download
 traffic really to a minimum.

I do not want to minimize my traffic, i want to _optimize_ it :-)
Monitoring the vendor files directly needs quite some work and is a
duplicated efford. Given the unreliability of the internet it is also
likely that i will get out of sync with openpkg.org soon.

The best approach, from my point of view, would be to make the rpms more
rsync-friendly. I thought about hacking rsync, so that it can ignore
parts of a filename and recognize, when two files are very similiar.
But a few random tests (using xdelta) showed that the differences between
two versions where quite large. Hmmm, maybe i picked always packages,
where the vendor sources changed ? Or is it, because some parts of the
rpm are compressed as a whole ? I always had better results doing the
xdelta before compression.

Just tried python-2.2.3-20030716.src.rpm and python-2.2.3-20030714.src.rpm.
A direct xdelta gives a delta of 6727215 bytes. Converting the rpms with
rpm2cpio and doing a xdelta on the resulting cpio archives gives a delta of
373 bytes.
When i rename python-2.2.3-20030716.src.rpm to python-2.2.3-20030714.src.rpm
and use rsync, i get
wrote 6743450 bytes  read 36 bytes  13486972.00 bytes/sec
total size is 6742530  speedup is 1.00

Looks, like there is room for improvement. Except i did something wrong.

The other way is a little bit more complicated. Would need some
specialized (perl-)tools:
- look at a directory listing of openpkg.org to see what files changed
- extract Release from the filename
- find and get the matching .spec
- extract the basename of the SourceN URLs
- transfer the Sources using rsync

 I'll try to finally put together a webpage on openpkg.org which
 documents the various approaches for users, contributors and developers.
 Sorry that I've still not written such a HOWTO.

Sorry !?? :)


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: Optimizing traffic

2003-07-16 Thread Matthias Kurz
On Wed, Jul 16, 2003 at 01:16:18PM +0200, Ralf S. Engelschall wrote:
 On Wed, Jul 16, 2003, Matthias Kurz wrote:
 
  [...]
  The best approach, from my point of view, would be to make the rpms more
  rsync-friendly. I thought about hacking rsync, so that it can ignore
  parts of a filename and recognize, when two files are very similiar.
  But a few random tests (using xdelta) showed that the differences between
  two versions where quite large. Hmmm, maybe i picked always packages,
  where the vendor sources changed ? Or is it, because some parts of the
  rpm are compressed as a whole ? I always had better results doing the
  xdelta before compression.
 
 OpenPKG .src.rpm's are actually CPIO archives of the source files (.spec
 plus .patch files plus vendor tarballs, etc) which are compressed via
 bzip2(1) and with an RPM header in front of the result. Either the
 compression is your problem or/and the fact that AFAIK the source files
 are not inserted into the CPIO payload in the same order each time.
 
  Just tried python-2.2.3-20030716.src.rpm and python-2.2.3-20030714.src.rpm.
  A direct xdelta gives a delta of 6727215 bytes. Converting the rpms with
  rpm2cpio and doing a xdelta on the resulting cpio archives gives a delta of
  373 bytes.
 
 A clear indication that the compression is the problem.
 
  When i rename python-2.2.3-20030716.src.rpm to python-2.2.3-20030714.src.rpm
  and use rsync, i get
  wrote 6743450 bytes  read 36 bytes  13486972.00 bytes/sec
  total size is 6742530  speedup is 1.00
 
  Looks, like there is room for improvement. Except i did something wrong.
 
 I think because of the compression you have no chance. The best solution
 for all this, as I already mentioned, to roll the .src.rpm yourself from
 the parts.

Given someone can reproduce my results i would prefer to try to modify
rpm and rsync. I don't think this is much more complicated than building
my own rpm factory for the official parts. For my own things i have
to do it anyway, but that is easier, i think.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: Optimizing traffic

2003-07-16 Thread Matthias Kurz
On Wed, Jul 16, 2003 at 01:47:37PM +0200, Matthias Kurz wrote:
 On Wed, Jul 16, 2003 at 01:16:18PM +0200, Ralf S. Engelschall wrote:
  On Wed, Jul 16, 2003, Matthias Kurz wrote:
  
[...]
   When i rename python-2.2.3-20030716.src.rpm to python-2.2.3-20030714.src.rpm
   and use rsync, i get
   wrote 6743450 bytes  read 36 bytes  13486972.00 bytes/sec
   total size is 6742530  speedup is 1.00

Caution, when someone tries to help. When one uses rsync locally, one has
to use the --no-whole-file option...


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Mozilla build fails on Solaris 8 x86

2003-07-15 Thread Matthias Kurz

Bombs out with:

xpcshell.cpp
/opkg/bin/c++ -o xpcshell.o -c -DOSTYPE=\SunOS5\ -DOSARCH=\SunOS\ -DJS_THREA
DSAFE  -I../../../../dist/include/xpconnect -I../../../../dist/include/xpcom -I.
./../../../dist/include/string -I../../../../dist/include/js -I../../../../dist/
include/xpcshell -I../../../../dist/include -I/u/projects/tmp/mozilla/dist/inclu
de/nspr  -I/opkg/include -I/opkg/include  -I/opkg/include -I/usr/openwin/include
 -I/opkg/include -I/opkg/include/glib -I/usr/openwin/include  -I/usr/openwin
/include -fno-rtti -fno-exceptions -Wno-long-long -Wno-deprecated -I/opkg/includ
e -fshort-wchar -pthreads -pipe  -DNDEBUG -DTRIMMED  -I/opkg/include -I/opkg/inc
lude/glib -I/usr/openwin/include  -I/usr/openwin/include -DMOZILLA_CLIENT -inclu
de ../../../../mozilla-config.h xpcshell.cpp
/opkg/bin/c++  -I/opkg/include -I/opkg/include/glib -I/usr/openwin/include  -I/u
sr/openwin/include -fno-rtti -fno-exceptions -Wno-long-long -Wno-deprecated -I/o
pkg/include -fshort-wchar -pthreads -pipe  -DNDEBUG -DTRIMMED -o xpcshell xpcshe
ll.o -L/projects/tmp/mozilla/dist/bin -L/projects/tmp/mozilla/dist/lib -L/projec
ts/tmp/mozilla/dist/lib/components -L/opkg/lib -L/usr/openwin/lib  -L../../../..
/dist/bin -L../../../../dist/lib -L../../../../dist/bin -lmozjs -L../../../../di
st/bin -lxpcom -L/u/projects/tmp/mozilla/dist/lib -lplds4 -lplc4 -lnspr4 -L/proj
ects/tmp/mozilla/dist/bin -L/projects/tmp/mozilla/dist/lib -L/projects/tmp/mozil
la/dist/lib/components -L/opkg/lib -L/usr/openwin/lib -ldl -lrt   -lsocket -ldl 
-lm 
/projects/tmp/mozilla/dist/bin/libxpcom.so: undefined reference to `nsTraceRefcn
t::WalkTheStack(__FILE*)'
/projects/tmp/mozilla/dist/bin/libxpcom.so: undefined reference to `NS_NewUnicha
rBuffer(nsIUnicharBuffer**, nsISupports*, unsigned)'
/projects/tmp/mozilla/dist/bin/libxpcom.so: undefined reference to `nsComponentM
anager::CreateInstance(nsID const, nsISupports*, nsID const, void**)'
/projects/tmp/mozilla/dist/bin/libxpcom.so: undefined reference to `nsComponentM
anager::CreateInstance(char const*, nsISupports*, nsID const, void**)'
/projects/tmp/mozilla/dist/bin/libxpcom.so: undefined reference to `NS_NewHashta
bleEnumerator(nsHashtable*, unsigned (*)(nsHashKey*, void*, void*, nsISupports**
), void*, nsISimpleEnumerator**)'
collect2: ld returned 1 exit status
gmake[3]: *** [xpcshell] Error 1
gmake[2]: *** [libs] Error 2
gmake[1]: *** [tier_9] Error 2
make: *** [default] Error 2


Any ideas ?


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Optimizing traffic

2003-07-15 Thread Matthias Kurz

Hi.

When i see it right, the stuff in ftp://ftp.openpkg.org/current/SRC/
is put together from ftp://ftp.openpkg.org/sources/, isn't it ?

Would it be possible to mirror ftp://ftp.openpkg.org/sources/DST
and ftp://ftp.openpkg.org/sources/SRC (or take this from anon CVS) and
run local commands to build the RPMs ?  Pointers ?

This way i would not always need to transfer the whole rpm, when
only a comma is changend in the .spec-file.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Messed up perms / Solaris bug

2003-07-14 Thread Matthias Kurz

Hi.

I was not careful enough and installed some packages as ordinary user
instead as root. Would be nice when there where warnings, e.g. when
it is not possible to set perms/uids/gids during installation.

I checked the permissions using rpm -V `rpm -qa`. Then i tried to
correct them using su;rpm --setugids `rpm -qa`;rpm --setperms `rpm -qa`.
Is there a better/faster way ?

There is a Solaris bug in/affecting rpm --setugids/--setperms.
This functionality is implemented by aliases in
$opkg_root/lib/openpkg/rpmpopt-4.0.2. A shell script is generated and
executed using sh. It just burps sh: test : argument expected and
does nothing else.
Using truss i found the following: The shell script consists of commands
like [ -L /file ]  chmod 775 /file. This commands fail, because the -L
was amputated from the Solaris sh some time ago (never understood, why).
Instead, one has to use -h - or another shell, e.g. bash. I don't know,
why sh is used to execute the commands. When possible, it should be
changed to bash. Else, the definitions for --setugids and --setperms
in $opkg_root/lib/openpkg/rpmpopt-4.0.2 should be changed, so that
they use -h instead of -L.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


sudo searches a frood called 'MTA'

2003-07-12 Thread Matthias Kurz

Hi.

What is a frood ? :)

And is there a way to use the MTA that is installed on the system ?
Same for DNS, JRE, JDK, ...

Looking at the output of openpkg build -Z -S gcc there are quite
a few such virtual packages. How can i find out, what package provides
the needed functionality ?


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


CVS/WWW problems

2003-07-12 Thread Matthias Kurz

Hi.

When i try a cvs checkout, i get
cvs server: Updating openpkg-adm
cvs server: failed to create lock directory for `/e/openpkg/cvs/openpkg-adm' 
(/e/openpkg/cvs/openpkg-adm/#cvs.lock): Permission denied
cvs server: failed to obtain dir lock in repository `/e/openpkg/cvs/openpkg-adm'
cvs [server aborted]: read lock failed - giving up

The link http://www.openpkg.org/pkg.cgi does not work as expected.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: Query default package options

2003-07-10 Thread Matthias Kurz
On Thu, Jul 10, 2003 at 08:58:19PM +0200, Matthias Kurz wrote:
 
 Hi.
 
 Is it possible to query the defaults for package options before
 installation ?
 
 e.g. the defaults in gcc.spec are:
 
 #   package options
 %option   with_cxx   yes
 %option   with_optimize  yes
 %option   with_binutils  yes
 %option   with_threads   yes
 %option   with_boundsno
 %option   with_spp   no
 %option   with_gcc   no

From the QuickRef :(

For example:
rpm -qpi ftp://host/pub/openpkg/current/SRC/gcc-3.3-20030702.src.rpm

 And where can one find an explanation of this options (e.g. why are
 binutils used under Solaris) ?

Question remains.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Quickref - modifications

2003-07-10 Thread Matthias Kurz

Hi.

Before i forget:

I suggest to add the points 24 and 23 (in this order) from the FAQ to
the QuickRef. As a third bullet, before
o Updating OpenPKG to the latest version: and after
o Boostrapping OpenPKG from scratch:

Also it would be nice, when there would be the keyword debugging under
o Fetch and build a binary package from source:, e.g. by changing

   Alternatively, to perform the 'steps behind' option, --rebuild
   manually by entering the following commands:
to
   Alternatively, to perform the 'steps behind' option, --rebuild
   manually by entering the following commands (good for debugging - see
   also BUILD OPTIONS under man rpm).

Hmmm, i would probably write it as

   Alternatively, to perform the steps behind the option --rebuild one
   can manually enter the following commands (good for debugging - see
   also BUILD OPTIONS under man rpm).


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


imake / libxpm

2003-01-01 Thread Matthias Kurz

Hi.

What is the best way to handle packages that use imake ?

First:
Under Solaris i have to mess around with /usr/openwin/lib/config/site.def
and (at least for Solaris 8) with /usr/openwin/lib/config/sun.cf.
In site.def i had to define
#define HasSunC NO
#define HasGcc2 YES
#define MakeCmd gmake
and in sun.cf i had to remove (comment out)
#define HasSunC YES

Rpm configure/build works for me, but the install would go to the system
dirs. I tried to mess around with ProjectRoot, BinDir, UsrLibDir etc.
but this affects too many other places.

Using $(DESTDIR), which is respected in the Makefiles, still leads
to Paths like %{l_prefix}/usr/openwin/{bin,lib,include} etc.

Oh, yes, and where is the right place for X11 binaries at all ?
In ${l_prefix}/bin, in ${l_prefix}/bin/X11,... or where ?
I would vote for .../bin/X11 .../lib/X11 and .../include/X11.

Could this be solved with an OpenPKG specific imake or xmkmf ?

For now, i wrote a crude hack that transforms the directory hierarchy
after installation with $(DESTDIR). But that is probably not the
right solution. Especially when it comes to find the files again.

I'll attach my current version of a libxpm snippet and welcome any
comment.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 



xpm.tar
Description: Unix tar archive


Patch: rpm and l_force_httpproxy/l_noproxy

2002-12-30 Thread Matthias Kurz

Hi.

I'm using apache as proxy server to access the internet. Unfortunately,
rpm still tries to open a real ftp connection for 'ftp://...' urls,
even when a proxy is given.

So i modified the openpkg rpm sources. There are two new settings:
'l_force_httpproxy' and 'l_noproxy'.

If 'l_force_httpproxy' is set to any value, the http proxy is also used
for urls of the form ftp://...;.

'l_noproxy' holds a comma separated list of hosts/domains where no
proxy should be used (independent from l_force_httpproxy).

Example settings, e.g. in $HOME/.rpmmacros:
%_httpproxymyProxy.local.domain
%l_force_httpproxy 1
%l_noproxy localhost,local.domain

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 

diff -u -r rpm-4.0.2-opkg/rpmio/rpmio.c rpm-4.0.2-mk/rpmio/rpmio.c
--- rpm-4.0.2-opkg/rpmio/rpmio.cMon Mar 12 19:20:29 2001
+++ rpm-4.0.2-mk/rpmio/rpmio.c  Mon Dec 30 16:53:30 2002
@@ -1325,7 +1325,7 @@
 const char * path;
 int port;
 int rc;
-char * req;
+char * req, * h;
 size_t len;
 int retrying = 0;
 
@@ -1362,23 +1362,30 @@
 req = alloca(len);
 *req = '\0';
 
+/* if forceHttpProxy is given, the Host:-part is left up to the Proxy */
+len = sizeof(Host: y:z\r\n) + strlen(host) + 20;
+h = alloca(len);
+*h = '\0';
+if (!u-forceHttpProxy)
+sprintf(h, Host: %s:%d\n\n, host, port);
+
   if (!strcmp(httpCmd, PUT)) {
 sprintf(req, \
 %s %s HTTP/1.%d\r\n\
 User-Agent: rpm/%s\r\n\
-Host: %s:%d\r\n\
+%s\
 Accept: text/plain\r\n\
 Transfer-Encoding: chunked\r\n\
 \r\n\
-, httpCmd, path, (u-httpVersion ? 1 : 0), VERSION, host, port);
+, httpCmd, path, (u-httpVersion ? 1 : 0), VERSION, h);
 } else {
 sprintf(req, \
 %s %s HTTP/1.%d\r\n\
 User-Agent: rpm/%s\r\n\
-Host: %s:%d\r\n\
+%s\
 Accept: text/plain\r\n\
 \r\n\
-, httpCmd, path, (u-httpVersion ? 1 : 0), VERSION, host, port);
+, httpCmd, path, (u-httpVersion ? 1 : 0), VERSION, h);
 }
 
 if (_ftp_debug)
diff -u -r rpm-4.0.2-opkg/rpmio/rpmurl.h rpm-4.0.2-mk/rpmio/rpmurl.h
--- rpm-4.0.2-opkg/rpmio/rpmurl.h   Mon Dec 11 19:41:27 2000
+++ rpm-4.0.2-mk/rpmio/rpmurl.h Mon Dec 30 14:36:03 2002
@@ -35,6 +35,7 @@
 const char * proxyu;   /*! FTP: proxy user */
 const char * proxyh;   /*! FTP/HTTP: proxy host */
 int proxyp;/*! FTP/HTTP: proxy port */
+int forceHttpProxy; /*! FTP over HTTP proxy  */
 intport;
 int urltype;
 FD_t ctrl; /*! control channel */
@@ -87,8 +88,41 @@
  */
 void   urlFreeCache(void);
 
+
+/**
+ * Checks whether host is equal to or ends in an entry from l_noproxy.
+ * @param host host name
+ * @return 1 if entry found, 0 if not
+ */
+intnoProxy(const char *host);
+
+/**
+ * Return host that should be used as ftp proxy. Checks also for l_noproxy.
+ * @param host host name (checked against l_noproxy if not NULL)
+ * @return host to use as proxy, NULL if none
+ */
+char *getFtpProxy(const char *host);
+
+/**
+ * Return host that should be used as http proxy. Checks also for l_noproxy.
+ * @param host host name (checked against l_noproxy if not NULL)
+ * @return host to use as proxy, NULL if none
+ */
+char *getHttpProxy(const char *host);
+
+/**
+ * Check, whether l_force_HttpProxy is defined. Makes only sense, if there
+ * is also a _httpproxy setting !
+ * Either url or host name must be NULL.
+ * @param url  url
+ * @param host host name
+ * @return 1 if defined, 0 if not
+ */
+intforceHttpProxy(const char *url, const char *host);
+
 /**
  * Return type of URL.
+ * Lie (return URL_IS_HTTP), when l_forceHttpProxy is set
  * @param url  url string
  * @return type of url
  */
diff -u -r rpm-4.0.2-opkg/rpmio/url.c rpm-4.0.2-mk/rpmio/url.c
--- rpm-4.0.2-opkg/rpmio/url.c  Mon Dec 11 19:41:27 2000
+++ rpm-4.0.2-mk/rpmio/url.cMon Dec 30 14:44:10 2002
@@ -54,6 +54,7 @@
return NULL;
 memset(u, 0, sizeof(*u));
 u-proxyp = -1;
+u-forceHttpProxy = 0;
 u-port = -1;
 u-urltype = URL_IS_UNKNOWN;
 u-ctrl = NULL;
@@ -217,6 +218,7 @@
 
 /* Perform one-time FTP initialization */
 if (u-urltype == URL_IS_FTP) {
+int ignoreProxy = noProxy(u-host);
 
if (mustAsk || (u-user != NULL  u-password == NULL)) {
char * prompt;
@@ -227,8 +229,8 @@
u-password = xstrdup(u-password); /* XXX xstrdup has side effects. */
}
 
-   if (u-proxyh == NULL) {
-   const char *proxy = rpmExpand(%{_ftpproxy}, NULL);
+   if (u-proxyh == NULL  !ignoreProxy) {
+   const char *proxy = getFtpProxy(NULL);
if (proxy  *proxy != '%') {
const char *uu = (u-user ? u-user : anonymous);
char *nu = xmalloc(strlen(uu) + sizeof(@) + strlen(u-host));
@@ -239,7 +241,7

Re: Standard options --debug, --test ?

2002-12-30 Thread Matthias Kurz
On Mon, Dec 30, 2002 at 09:20:38PM +0100, Matthias Kurz wrote:
[...]
 - make check or make check or whatever the package supplys before

I often type faster than i think, and most of the time it is good. But
this time it should read:

- make check or make test or whatever the package supplies...

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]



Re: PGP does not work

2002-12-30 Thread Matthias Kurz
On Mon, Dec 30, 2002 at 10:57:42PM +0100, Ralf S. Engelschall wrote:
 On Mon, Dec 30, 2002, Matthias Kurz wrote:
 
When i try to verify the pgp signature of a src.rpm, i always get
MD5 sum OK:  - nothing with pgp.
E.g.:
rpm -v --checksig mutt-1.4i-20021230.src.rpm
mutt-1.4i-20021230.src.rpm:
MD5 sum OK: cd03b408c67b07ac7720cae8ee02e246
   
I installed gpg, imported the pgp public key and set $_signature pgp
in my $HOME/.rpmmacros.
   
What am i doing wrong ?
  
   Only RPMs of OpenPKG _releases_ are signed. The OpenPKG-CURRENT RPMs
   are not signed -- mainly because signing requires the OpenPKG master
   key which is not available all the time while developers working
   on OpenPKG-CURRENT packages. It is only available in the release
   engineering process.
 
  So, how can one validate a current package. MD5 sums _in_ the package
  do not look very secure to me :)
 
 Yes, sorry, OpenPKG-CURRENT packages currently cannot verified at all.
 But perhaps we should create a less-secured GPG sub-key just for signing
 the OpenPKG-CURRENT packages on the FTP server?

Looking at the latest trojans, i think this is necessary.

  Especially, what about openpkg-*.src.sh ?
 
 This is just a shell-script, you cannot add easily a signature!?

Sure. But then there should be a very public known key (on a web site
and so on, md5 or whatever) - i hope you're verifying your keys/checksums
on a very regular basis (at least daily, with tripwire or some such).
That the last stage installation requires root privileges makes the
packages a valuable target (at least). The world is bad.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
Im prämotorischen Cortex kann jeder ein Held sein. (bdw) 
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]