Re: FYI: migrating the RPM DB between Berkeley-DB and SQLite

2007-06-28 Thread Anders F Björklund
Ralf S. Engelschall wrote: As it is AFAIK not documented anyhwere and also far away from being obvious, here is a short tutorial for the RPM hackers on how to migrate the RPM DB of RPM 5 between Berkeley-DB and SQLite. Thanks for the detailed information, I'll add some commands that I found

Re: FYI: migrating the RPM DB between Berkeley-DB and SQLite

2007-06-28 Thread Anders F Björklund
# dump a Berkeley-DB database as text /opt/local/lib/rpm/rpmdb_dump /opt/local/var/lib/Packages # dump a SQLite database as text echo .dump | sqlite3 /opt/local/var/lib/Packages Make that /opt/local/var/lib/rpm/Packages, duh. --anders

Re: RPM 5 status quo

2007-07-17 Thread Anders F Björklund
Ralf S. Engelschall wrote: Some status quo on RPM 5 from my personal point of view: As you perhaps recognized yourself, just about 4 weeks ago building RPM was (sorry that I have to say this) still more or less a real nightmare -- even for a hard-core developers. I personally even was under

zlib ignores CFLAGS ?

2007-08-10 Thread Anders F Björklund
Seems like the internal zlib ignores any CFLAGS passed, such as the required ones for building universal binaries... The reason for this seems to be a typo/thinko in configure: CFLAGS=-DHAS_snprintf -DHAS_snprintf http://www.algonet.se/~afb/rpm/5.0/rpm-5.0-zlib_configure_cflags.patch --anders

Re: /var/spool/repackage vs %{_topdir}/TR

2007-08-10 Thread Anders F Björklund
Jeff Johnson wrote: When upgrading to RPM 5.0 CVS I now find that it has been moved to the development directory (%{_topdir}) instead... Although I do agree that hardcoding /var/spool/repackage is bad, I had placed %{_topdir} in the developer category. That sounds like a bad place to me.

Re: allow old python 2.3 as well ?

2007-08-11 Thread Anders F Björklund
Jay Soffian wrote: So nothing to change or see here, just little Mac quirks. Is this for MacPorts? If so, I'd think you'd want to have an rpm+python variant that uses the MacPorts Python, not the system python. It wasn't. The MacPorts rpm and rpm-devel ports use the MacPorts python/perl

Re: [CVS] RPM: rpm/perl/RPM/ Files.pm rpm/perl/ RPM_Files.xs rpm/perl/t/ 0...

2007-08-21 Thread Anders F Björklund
RPM Package Manager, CVS Repository http://rpm5.org/cvs/ ___ _ Server: rpm5.org Name: Olivier Thauvin Root: /v/rpm/cvs Email: [EMAIL PROTECTED] Module: rpm

Re: [CVS] RPM: rpm/perl/RPM/ Files.pm rpm/perl/ RPM_Files.xs rpm/perl/t/ 0...

2007-08-21 Thread Anders F Björklund
Olivier Thauvin wrote: This commit broke the MacPorts rpm-devel port (again): /opt/local/include/beecrypt/api.h:66: error: redefinition of typedef 'byte' ../rpmio/rpmpgp.h:18: error: previous declaration of 'byte' was here I changed it back to #if 1 for the MacPorts build... Feel free to fix

Re: /var/spool/repackage vs %{_topdir}/TR

2007-08-24 Thread Anders F Björklund
Ralf S. Engelschall wrote: The choice _IS_ a bad place for default, but is certainly configurable. I'll probably change it back to my previous, @prefix@/var/spool/repackage (but I'll wait for the rationale from cse, for keeping TR in the _topdir) [...] Well, please feel free to choose a

Re: proposed devtool.conf.patch

2007-08-24 Thread Anders F Björklund
Ralf S. Engelschall wrote: On Thu, Aug 16, 2007, Jason Corley wrote: I've attached my %jasonc devtool target (modified %standalone) that I just got working in case it helps anyone. It's targeted for my mac so a lot of the tests and conditionals are stripped out (nothing wrong with them in

Re: /var/spool/repackage vs %{_topdir}/TR

2007-08-25 Thread Anders F Björklund
Ralf S. Engelschall wrote: Well, please feel free to choose a better location. My personal main concern was just that it can be still configured via macros and the default is really usable out-of-the-box after a make install (which wasn't the case in the past). The actual default location I

More Perl-RPM woes

2007-08-25 Thread Anders F Björklund
* it ignores any unrecognized LDFLAGS: (MakeMaker problem ?) Unrecognized argument in LIBS ignored: '-arch' Unrecognized argument in LIBS ignored: 'ppc' Unrecognized argument in LIBS ignored: '-arch' Unrecognized argument in LIBS ignored: 'i386' Unrecognized argument in LIBS ignored:

Re: More Perl-RPM woes

2007-08-25 Thread Anders F Björklund
Olivier Thauvin wrote: * it ignores any unrecognized LDFLAGS: (MakeMaker problem ?) Unrecognized argument in LIBS ignored: '-arch' Unrecognized argument in LIBS ignored: 'ppc' Unrecognized argument in LIBS ignored: '-arch' Unrecognized argument in LIBS ignored: 'i386' Unrecognized argument in

WITH_DB and WITH_SQLITE

2007-08-25 Thread Anders F Björklund
When I am building a program against rpm libraries, I get an error due to WITH_DB not being defined... /usr/local/include/rpm/rpmdb.h:16:20: error: db_emu.h: No such file or directory If those are supposed to be known, shouldn't they be autoconfed into the headers or pkg-config etc. ? They

internal popt and popt.h

2007-08-25 Thread Anders F Björklund
When building/using RPM with an static/internal popt, is it OK to include the required popt.h in rpm/ ? Several of the RPM headers requires popt.h, so I will need to install it (somewhere) for them to work... I could of course copy it to include/ directly, but then it might theoretically

Re: WITH_DB and WITH_SQLITE

2007-08-25 Thread Anders F Björklund
When I am building a program against rpm libraries, I get an error due to WITH_DB not being defined... /usr/local/include/rpm/rpmdb.h:16:20: Is this an external or internal program that needs #include rpmdb.h The fixing is different for external/internal. External. Those are supposed to

Re: WITH_DB and WITH_SQLITE

2007-08-25 Thread Anders F Björklund
Jeff Johnson wrote: There's other ways to address then autoconf expansions to eliminate WITH_DB and WITH_SQLITE in rpmdb.h then. Sure, but I figured since they were in autoconf already... Then again, different headers for different configurations does sound like it could lead to some

And now on to Python...

2007-08-26 Thread Anders F Björklund
C and Perl bindings seems to be working OK. And Now for Something Completely Different: Seems like expat dependency was missing from my rpmio library: ImportError: dlopen(/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/site-packages/rpm/_rpmmodule.so, 2): Symbol not

Re: Using keyutils (and keyrings generally) within rpm

2007-08-28 Thread Anders F Björklund
Jeff Johnson wrote: I'm also interested in using the Mac OS X keyring in ways similar to how keyutils is going to be used. Does anyone have a ptr to a reasonable implementation in some non-interpreted language? The only pointer I have is http://developer.apple.com/reference/Security, but

Re: [CVS] RPM: rpm/ CHANGES devtool devtool.conf

2007-08-30 Thread Anders F Björklund
Ralf S. Engelschall wrote: Modified files: rpm CHANGES devtool devtool.conf Log: make devtool %standalone fully modular for allowing its modules to be reused in other devtool targets. -%thirdpartydefs -@source %thirdpartydefs +#

Re: proposed devtool.conf.patch

2007-08-30 Thread Anders F Björklund
Ralf S. Engelschall wrote: I'll add some snippets for building Universal Binaries on Mac OS X... See %universal, in http://www.algonet.se/~afb/rpm/5.0/devtool.conf Basically I build the dependencies in the same way, but I build RPM dynamically and use the internal implementations of

Re: [CVS] RPM: rpm/ CHANGES devtool devtool.conf

2007-08-30 Thread Anders F Björklund
Ralf S. Engelschall wrote: [...] Here's the PKG: http://www.algonet.se/~afb/rpm/rpm5-installer.png Cool... I'm just curious: in what programming language is such a GUID-based Mac OS X installer written? None at all, actually. You provide the resources, and the Installer.app presents the

Re: [CVS] RPM: rpm-4_5: rpm/ configure.ac rpm/perl/ Makefile.PL Makefile.P...

2007-09-07 Thread Anders F Björklund
Robert Scheck wrote: IMHO the second result is simply wrong. RPM.so is not linked to librpm* somehow. Why? What went wrong? Ideas? FYI: During make in koji, the following showed up, too. Maybe this could be relevant: Note (probably harmless): No library found for -lrpmio Note (probably

Re: [CVS] RPM: zlib/ Makefile.am

2007-09-11 Thread Anders F Björklund
Robert Scheck wrote: On Tue, 04 Sep 2007, Jeff Johnson wrote: If this is what fixes make -jX, then there is a missing dependency from minigzip - libz.a somewhere. Note that eliminating example and minigzip eliminates, rather than fixes, the make -jX problem. I didn't call this fix. It simply

RPMSENSE_ANY evrFlags

2007-09-28 Thread Anders F Björklund
Seems like rpm library users are relying on RPMSENSE_ANY to be some kind of default value, can this be made into non-internal (i.e. public) in the RPM 4.5 API perhaps ? enum evrFlags_e { RPMSENSE_ANY= 0, #if defined(_RPMEVR_INTERNAL) --anders

Re: perl breakage

2007-10-01 Thread Anders F Björklund
Jeff Johnson wrote: RPM_Transaction.xs:308: error: too many arguments to function 'rpmdbAdd' RPM_Transaction.xs: In function 'XS_RPM__Transaction_dbremove': An argument was removed in 3 functions. I can back an unused argument if necessary. Lemme look this evening. The quick hack is to

Re: [CVS] RPM: rpm/ CHANGES rpm/scripts/ rpm2cpio

2007-10-14 Thread Anders F Björklund
Jeff Johnson wrote: Shouldn't this use the new lzma command from LZMA Utils 4.32, rather than the old lzmash shell wrapper script for LZMA SDK ? (the old lzma command from LZMA Utils 4.27 and/or LZMA SDK has now been renamed as lzma_alone instead, to avoid name conflicts) (aside) It never

Re: HEAD is broken

2007-11-18 Thread Anders F Björklund
Ralf S. Engelschall wrote: I'm currently in the progress of releasing 5.0a2, but the devtool standalone testdrive procedure already fails with errors like the following: | error: rpmdbNextIterator: skipping h# 1 tag[20]: BAD, tag 1834043241 type 765558 offset 1919830354 count

Re: [CVS] RPM: rpm/rpmio/ rpmxar.c rpmxar.h

2007-11-22 Thread Anders F Björklund
Jeff Johnson wrote: I'm still debating xar - rpmio Payload compression, as well as whether rpmio should swallow libxar, or vice versa. There's some twists and turns in the code paths I'd like to see, but that's likely just my fetishes. I'll hack out something this weekend, the problem is

Re: [CVS] RPM: rpm/ CHANGES rpm/tools/ Makefile.am rpm2cpio.c

2007-11-23 Thread Anders F Björklund
Jeff Johnson wrote: On Nov 23, 2007, at 2:50 PM, Ralf S. Engelschall wrote: On Fri, Nov 23, 2007, Jeff Johnson wrote: - jbj: re-add rpm2cpio.c. Nice. Should we also install _this_ program instead of the weak scripts/rpm2cpio script? Depends on your religion. Some like simple

Re: [CVS] RPM: rpm/ configure.ac

2007-12-01 Thread Anders F Björklund
Ralf S. Engelschall wrote: Log: indicate that the 'lzma' here is the command line tool and use sub-shell constructs to more portably support the situation where no lzma(1) is in PATH at all (and hence the shell itself already complains with a confusing 'lzma: file not

Re: [CVS] RPM: rpm/ CHANGES rpm/build/ parsePreamble.c rpm/rpmdb/ hdrfmt.c...

2007-12-03 Thread Anders F Björklund
Jeff Johnson wrote: Modified files: rpm CHANGES rpm/build parsePreamble.c rpm/rpmdb hdrfmt.c rpmtag.h tagname.c rpm/rpmio argv.c argv.h librpmio.vers Log: - using tagValue instead permits queries of arbitrary

Re: HEAD broken because of beecrypt/api.h stuff

2007-12-04 Thread Anders F Björklund
Ralf S. Engelschall: Latest HEAD is broken this morning: Fixed, http://rpm5.org/cvs/chngview?cn=8940 (same as with Perl earlier) I don't know why we need the extra declaration for byte (we could just include beecrypt/api.h, I think). Moving to uint8_t is another option, to avoid

Re: segfault in HEAD

2007-12-07 Thread Anders F Björklund
Jeff Johnson wrote: Which is not true with the (arguably standard rpmbuild invocation here, at least as consistent as possible with what is documented in Maximum RPM and The RedHat RPM Guide and with the default distributed rpm macro configuration): /var/tmp/devtool-test-root: No such file

Re: Choosing rpm2cpio.c vs rpm2cpio.sh

2007-12-07 Thread Anders F Björklund
Ralf S. Engelschall wrote: On Fri, Dec 07, 2007, Jeff Johnson wrote: The team consensus decision was both, but the path choice(s) need finalization. As rpm2cpio is often needed also on the shell, I personally vote to just install it into bindir and let the script stuff live in the

Re: error in devtool build

2007-12-13 Thread Anders F Björklund
Jason Corley wrote: The lack of lazy mkdir is one problem, the other appears to be the macros.in doesn't use $prefix but rather %{_var} for repackage dir... Would it be a good idea to change all the filesystem macros in macros.in to obey $prefix? I changed the %{repackagedir} away from

File extensions

2007-12-27 Thread Anders F Björklund
Do we need some pre-defined RPM macro values that contain the file extensions for exe and shlib ? Currently these are usually hardcoded in specs as and .so respectively, which usually works... (and not applicable to spec files that doesn't use %files for listing names, but instead %files -f)

Re: File extensions

2007-12-27 Thread Anders F Björklund
Jeff Johnson wrote: Do we need some pre-defined RPM macro values that contain the file extensions for exe and shlib ? Currently these are usually hardcoded in specs as and .so respectively, which usually works... (and not applicable to spec files that doesn't use %files for listing names, but

uuid-1.6.0 still a bit grumpy on Mac OS X

2008-03-04 Thread Anders F Björklund
When building with the local static OSSP uuid (standalone/macosx): checking uuid.h usability... no checking uuid.h presence... yes configure: WARNING: uuid.h: present but cannot be compiled configure: WARNING: uuid.h: check for missing prerequisite headers? configure: WARNING: uuid.h: see

multiple definitions of symbol _strict_erasures

2008-03-04 Thread Anders F Björklund
./devtool.log:/usr/bin/ld: multiple definitions of symbol _strict_erasures ./devtool.log:../lib/.libs/librpm.a(fsm.o) definition of _strict_erasures in section (__DATA,__data) ./devtool.log:../rpmio/.libs/librpmio.a(iosm.o) definition of _strict_erasures in section (__DATA,__data) Seems to

Re: HEAD is broken

2008-03-07 Thread Anders F Björklund
Ralf S. Engelschall wrote: HEAD is of today is broken: ../rpmio/.libs/librpmio.a(iosm.o): In function `iosmMapAttrs': /u/rse/prj/rpm/src/rpm/rpmio/iosm.c:948: undefined reference to `headerIsEntry' /u/rse/prj/rpm/src/rpm/rpmio/iosm.c:962: undefined reference to `headerIsEntry' collect2:

Re: HEAD is broken

2008-03-07 Thread Anders F Björklund
Ralf S. Engelschall wrote: Maybe the iosm needs a new explicit use-runtime-owner-group option, than have rpmio call out to the rpmdb function to check for a SRPM ? Like the --no-same-owner option in tar (or some other bad analogue). But what I meant was that maybe it should be made into more

rename internal lua symbols ?

2008-03-10 Thread Anders F Björklund
When using a librpm with internal Lua, I'm running into library conflicts with a program also using Lua... (=APT) /usr/bin/ld: multiple definitions of symbol _luaA_pushobject /usr/local/lib/librpmmisc.dylib(liblua_la-lapi.o) definition of _luaA_pushobject ./.libs/liblua.a(liblua_la-lapi.o)

Re: [CVS] RPM: rpm-5_0: rpm/lib/ rpm4compat.h

2008-03-10 Thread Anders F Björklund
Server: rpm5.org Name: Per Øyvind Karlsen Root: /v/rpm/cvs Email: [EMAIL PROTECTED] Module: rpm Date: 05-Mar-2008 17:45:17 Branch: rpm-5_0 Handle: 2008030516451700 Modified

Re: [CVS] RPM: rpm/ CHANGES INSTALL rpm/rpmio/ LzmaDecode.c LzmaDecode.h L...

2008-04-02 Thread Anders F Björklund
Ralf S. Engelschall wrote: Hmmm... IMHO this was a NO-OP semantically and just broke many things? Can we backout and keep the code we had before? As I mentioned in INSTALL, just a few days ago I reviewed the code against 4.57 and it is identical except for our already applied fixes. But

Re: popt 1.14 link failure on darwin

2008-04-07 Thread Anders F Björklund
checking for poptGetContext in -lpopt... no checking whether to build with POPT library... no This is because it misses a libtool dependency*: ... * PS. this dependency is new for popt 1.14, as popt 1.13 didn't depend on libiconv. Apparently this also works, to disable iconv usage:

Re: changing install arch, compatible arch from api

2008-04-08 Thread Anders F Björklund
Pazzo Da Legare wrote: I'm having problem with archs. I found the function rpmSetMachine which change build_arch (of --showrc) I would like to change programmatically (or better at compile time of my version of librpm) other parameters: compatible build archs, install arch, install os,

Re: changing install arch, compatible arch from api

2008-04-08 Thread Anders F Björklund
Pazzo Da Legare wrote: devzero200, I'm using 4.4.2.2. I don't understand from where one can setup information about custom architecture (as x86_586). I tried you like but it seems broken. It seems that those infos, about arch, are used at compile time from librpm. I found this page about

Re: changing install arch, compatible arch from api

2008-04-08 Thread Anders F Björklund
Pazzo Da Legare wrote: I apologize for my noise in this ML. No problem, it's just that if you want to set the _build_arch either approach (--target or /etc/rpm/platform) works in RPM5. Normally it would be i586 rather than x86_586, though. I wrote to rpm maint too but nobody seems to be

Re: [CVS] RPM: rpm/ CHANGES macros.in

2008-04-10 Thread Anders F Björklund
Jeff Johnson wrote: I have multip[le issues with changes like this: 1) the patch uses envvar's Using envvar's forces remote rpm to carry an environment along in order to run remote commands, and largely forces remote execution with shell. There are many times/places that

Re: [CVS] RPM: rpm/ configure.ac macros.in

2008-04-10 Thread Anders F Björklund
And the feeping creaturism starts to try to accomodate automatic detection for a functionality that isn't needed or used by rpmbuild itself. Feel free to revert... It was just that proyvind's original implementation returned RPM_BUILD_NCPUS = undefined here. :-) And what happens in a VM,

Re: [CVS] RPM: rpm/ CHANGES macros.in

2008-04-10 Thread Anders F Björklund
Jeff Johnson wrote: Can anyone explain to me why this macro is initrddir when /etc/init.d and /etc/rc.d/init.d have absolutely nothing whatsoever to do with the initial RAM disk? Shouldn't it be initdir? Hysterical accident is what my bleached neurons remember. Either Mandriva or PLD was

Re: [CVS] RPM: rpm/ CHANGES macros.in

2008-04-10 Thread Anders F Björklund
It was Mandriva, says the changelog: http://rpm5.org/cvs/filediff?f=rpm/platform.inv1=2.6v2=2.7 Couldn't find their original changelog, seems like it was reset at 2005 or so ? Didn't look hard enough: * Mon Aug 21 2000 Frederic Lepied [EMAIL PROTECTED] 3.0.5-11mdk - added _initrddir macro to

Re: [CVS] RPM: rpm/ VENDOR rpm/rpmio/ macro.c

2008-04-13 Thread Anders F Björklund
Ralf S. Engelschall wrote: RPM Package Manager, CVS Repository +else if ( (file_len 3 strcasecmp(file+file_len-3, .lz) == 0) + || (file_len 3 strcasecmp(file+file_len-3, . 7z) == 0) + || (file_len 5 strcasecmp(file+file_len-5, .lzma) == 0)) {

Re: [CVS] RPM: rpm/ VENDOR rpm/rpmio/ macro.c

2008-04-13 Thread Anders F Björklund
But it should probably be: else if ( (file_len 4 strcasecmp(file+file_len-3, .tlz) == 0) || (file_len 5 strcasecmp(file+file_len-5, .lzma) == 0)) { Stupid copy/paste bugs... else if ( (file_len 4 strcasecmp(file+file_len-4, .tlz) == 0) ||

Re: rpmdigest fails to build with -j2

2008-04-13 Thread Anders F Björklund
Jeff Johnson wrote: make[1]: *** No rule to make target `../rpmio/librpmio.la', needed by `rpmdigest'. Stop. make[1]: *** Waiting for unfinished jobs The flaw seems to be that librpmio.la and $(top_builddir)/rpmio/ librpmio.la are not being perceived as the same object. Yup,

Re: Which of {host,build,target} to use in configure.ac?

2008-08-13 Thread Anders F Björklund
Dan Nicholson wrote: The default rpm %configure passes --host=%_host, which is derived at rpm build time. Probably better would be to pass %_target_platform as --host, --build and --target. I thought it used ./configure --host=%{_host} --build=%{_build} \ --target=%{_target_platform} so it

Re: [CVS] RPM: lua/ Makefile.am lua/shadow/ commonio.c config.h copydir.c ...

2008-08-19 Thread Anders F Björklund
Ralf S. Engelschall wrote: OK, lua/{chconfig,shadow} backport should be gud enuf to build rpm-5.1.4+ afaict. If not, holler at me and I'll fix whatever. There is still an issue left: ../misc/.libs/librpmmisc.a(liblua_la-lwrs.o): In function `wrs_groupadd':

Re: [CVS] RPM: rpm/ CHANGES autogen.sh configure.ac devtool.conf rpm/misc/...

2008-08-19 Thread Anders F Björklund
Modified files: rpm CHANGES autogen.sh configure.ac devtool.conf rpm/misclibrpmmisc.vers Log: - jbj: remove internal zlib. Index: rpm/devtool.conf == == $

Re: [CVS] RPM: rpm/ CHANGES autogen.sh configure.ac devtool.conf rpm/misc/...

2008-08-19 Thread Anders F Björklund
This change isn't working for me, rpmgrep won't link now... /usr/bin/ld: Undefined symbols: _adler32_combine _crc32_combine Strange thing is it does have a -lz for /usr/lib/libz.dylib ? Missed that the SDK version of zlib was different from System, the old version was indeed missing

Re: Converting *.spec to Makefiles

2008-09-07 Thread Anders F Björklund
Jeff Johnson wrote: Increasingly I'm seeing spec file recipes (and rpmbuild) used in horrendously complicated ways. rpm spec file recipes contain known good (at least wrto rpmbuild parsing/execution) content that results in successful builds and binary packages to be distributed. That

Re: Converting *.spec to Makefiles

2008-09-08 Thread Anders F Björklund
Jeff Johnson wrote: Oooh, nice clean. Could you add to rpmpopt.in on HEAD? I think its time to start collecting examples of alternative build recipe representations, the rubyforge YAML is very aesthetically pleasing. Unfortunately you get indentation errors with non-trivial files. (could be

Re: Converting *.spec to Makefiles

2008-09-09 Thread Anders F Björklund
Tim Mooney wrote: In regard to: Re: Converting *.spec to Makefiles, Jeff Johnson said (at...: make has the advantage that its universal, and one can take a Makefile and run it. That's probably true if you're talking about Linux, where every distribution uses some recent version of GNU

Re: Converting *.spec to Makefiles

2008-09-09 Thread Anders F Björklund
Jeff Johnson wrote: BSD Make isn't fully compatible either, but you can usually make a file that works in both... (Same thing goes for GNU sh by the way, vs. BSD sh) Sure there are dialects of make. There is a subset syntax that is well supported by make(1), that is all that is being

Re: Mandatory/enforcing checks for reproducible builds

2008-09-28 Thread Anders F Björklund
Jeff Johnson wrote: There are two big lies with rpm packaging methodolgy. (aside) The other lie is that rpm install transactions are atomic iff there are no packaging flaws or install host failures. But this lie is reproducible builds, which is true wrto rpmbuild iff the build host is set

Re: [CVS] RPM: rpm/rpmio/ digest.c

2008-10-14 Thread Anders F Björklund
Ralf S. Engelschall wrote: I do not understand the !defined(WITH_ZLIB) part here. If would have expected either... #if defined(HAVE_ZLIB_CRC32_COMBINE) ...or.. #if defined(WITH_ZLIB) defined(HAVE_ZLIB_CRC32_COMBINE) ...but not the above variant. Can you shed some light onto this, please.

Re: [CVS] RPM: rpm/ CHANGES rpm/build/ parsePrep.c rpm/ macros.in

2008-10-20 Thread Anders F Björklund
Jeff Johnson wrote: Fussing with --fuzz opens up a world of pain and voids the warranty of %patch macros. Right, so that's why I left the default as -1 (which translates to 2) rather than changing the default to the stricter 0 as done elsewhere. If you want pain, try #%patchN in spec

Re: [CVS] RPM: rpm/ CHANGES

2008-12-16 Thread Anders F Björklund
Ralf S. Engelschall wrote: - proyvind: add support for xz for all tools shipped with rpm. - proyvind: lzdio: add support for xz format. (removes liblzma 4.999.3 support) [...] Where can this new xz stuff be found on the net? Google shows me just a few mail postings but where is the

Re: [CVS] RPM: rpm/ CHANGES rpm/build/ parsePrep.c rpm/ macros.in

2008-12-18 Thread Anders F Björklund
Jeff Johnson wrote: It sure would be nice to have %patch as a macro rather than flip-flopping and jiggering up Yet More Complicated Silly Stuff, all forcing rpm rpm be recompiled. The change was supposed to be to macros (and %patch)... I haven't a clue anymore (because of the number of

Re: new DISTEPOCH tag and cleaning of RELEASE tag polution

2008-12-22 Thread Anders F Björklund
Per Øyvind Karlsen wrote: I've modified DISTTAG tag to be specified in macros file just like DISTRIBUTION, VENDOR etc. and commited it to CVS already. Here's my next step, a DISTEPOCH tag where distribution version can be added. This will change EVR to EVRD which will be represented as

Re: new DISTEPOCH tag and cleaning of RELEASE tag polution

2008-12-22 Thread Anders F Björklund
Per Øyvind Karlsen wrote: So this DISTEPOCH would also work for OSVERSION on other systems ? Like darwin8 or 10.5osx or freebsd-7.0 or whatever it might be ? Yes, that's kinda the idea, except for DISTEPOCH would only contain the version, where the DISTTAG would contain the short

Re: new DISTEPOCH tag and cleaning of RELEASE tag polution

2008-12-22 Thread Anders F Björklund
Per Øyvind Karlsen wrote: Well, for Mandriva 'Distribution:' would still be 'Mandriva Linux' while 'DistTag': would be 'mdv'. And elsewhere, they have Distribution = Unknown and Vendor = Fedora Project Oh, really? I thought they had more similar to us, ie. we have 'Vendor: Mandriva'

Re: LZMA/XZ into rpm-5.1.7?

2009-01-19 Thread Anders F Björklund
Jeff Johnson wrote: Most of the XZ (nee LZMA) code on HEAD is likely stable, and XZ is (last I heard) on final approach to a release, with stable format and API/ABI. Should the changes be pushed into rpm-5.1.7 or not? I would leave RPM 5.1 with LZMA 4.999.3 (LZMA_Alone only) as the minimum,

Re: Should rpmbuild start parsing vendor peculier comments?

2009-01-19 Thread Anders F Björklund
Jeff Johnson wrote: I do point out that once RPM starts parsing secret sauce comments there's no way to establish a useful syntax/grammar for whatever is being represented, defacto vendor enhanced comments will rule forevermore (imho). Seeing a similar problem when trying to parse .repo

Re: Should rpmbuild start parsing vendor peculier comments?

2009-01-20 Thread Anders F Björklund
Jeff Johnson: Preprocessing filter sounds like a good idea, sort it out with yamlspec ? Preprocessing filter seems like the only win! == win! solution to me as well. In order to proceed with a pre-processing filter, I'm instantly shopping an industrial strength data rewrite language in

Re: [CVS] RPM: rpm/perl/ Makefile.PL.in

2009-01-26 Thread Anders F Björklund
Mark Hatle wrote: I have some concern that this could still cause problems on other systems.. but of course at a much lower rate then before. Is there any way to only run this when we're using Mac OS X to eliminate the remaining possibility? I'll fit in an if (`uname` == Darwin) there

Re: [CVS] RPM: rpm/lib/ rpmrc.c

2009-03-12 Thread Anders F Björklund
Per Øyvind Karlsen wrote: --- rpm/lib/rpmrc.c 12 Mar 2009 08:39:28 - 2.255 +++ rpm/lib/rpmrc.c 12 Mar 2009 09:14:25 - 2.256 @@ -551,6 +551,11 @@ xx = mireAppend(RPMMIRE_REGEX, 0, ppc, NULL, mi_re, mi_nre); #endif +#if defined(__powerpc__) ||

Re: Why is AutoFu testing --std-gnu99 ?!?

2009-03-23 Thread Anders F Björklund
Jeff Johnson wrote: I just noticed these AutoFu tests: GCC extensions: checking for simple visibility declarations... yes checking if gcc -std=gnu99 accepts -Wno-uninitialized... yes checking if gcc -std=gnu99 accepts -Wredundant-decls... yes checking if gcc -std=gnu99 accepts

Re: Why is AutoFu testing --std-gnu99 ?!?

2009-03-23 Thread Anders F Björklund
Jeff Johnson wrote: I believe this is because xz's configure.ac uses AC_PROG_CC_C99 ? Is XZ the only issue? Splint (which is non-C) is routinely finding C declarations in-line outside of XZ, all of which are full- stop parser failures for C99. And perl was being built with --std=gnu99

Re: Multiple meanings for --with-perl in AutoFu?

2009-04-08 Thread Anders F Björklund
Jeff Johnson wrote: The AutoFu (which has been remarkably resilient, thank you!) for RPM may soon have two or more meanings for --with-perl if I seriously pursue embedding perl (and python and ...) into rpm. I'll use --with-embedded-perl as a marker for my insanities for now, that is rather

Re: [CVS] RPM: rpm/ CHANGES configure.ac devtool.conf rpm/rpmio/ .cvsignor...

2009-04-08 Thread Anders F Björklund
Jeff Johnson wrote: Log: - ruby: add --with-ruby for embedding ruby. Shouldn't that be --with-rubyembed then, like the others ? (Or maybe --with-embedded-ruby like you mentioned earlier.) --with-ruby should be for building the ruby bindings, yes ? (like the ones available from

Re: [CVS] RPM: rpm/ CHANGES configure.ac devtool.conf rpm/rpmio/ .cvsignor...

2009-04-08 Thread Anders F Björklund
Jeff Johnson wrote: Shouldn't that be --with-rubyembed then, like the others ? (Or maybe --with-embedded-ruby like you mentioned earlier.) I still haven't a clue whether (or how) embedding script interpreters is a good idea or not. All I've been doing so far is looking at feasibility, and

Re: [CVS] RPM: rpm/ CHANGES configure.ac devtool.conf rpm/rpmio/ .cvsignor...

2009-04-08 Thread Anders F Björklund
Jeff Johnson wrote: I'm thinking that Tcl is about as heavy as I want myself, but that's another story. (i.e. Perl/Python/Ruby too much) If you grep WITH_TCL in rpm code (and look at rpmio/rpmtcl.[ch]), the manifestation of tcl-rpm is quite small and reasonable. [...] But I wholeheartedly

Re: [CVS] RPM: rpm/lib/ rpmfc.c rpm/rpmio/ rpmmg.c

2009-04-12 Thread Anders F Björklund
Jeff Johnson wrote: SO initializing to NULL was the problem? The problem is most likely elsewhere altogether. BUT, initializing it made it appear again - so... Sick, but I can easily revert to my old fetishistic practices. Not sure it warrants a change in practices, this was a workaround

Re: [CVS] RPM: rpm/ devtool.conf

2009-04-13 Thread Anders F Björklund
This config change probably went to the wrong devtool target, %macosx instead of %standalone ? (needed in both, though...) --anders RPM Package Manager, CVS Repository http://rpm5.org/cvs/ __ __ Server:

Re: [CVS] RPM: rpm/ devtool.conf

2009-04-13 Thread Anders F Björklund
Ralf S. Engelschall wrote: This config change probably went to the wrong devtool target, %macosx instead of %standalone ? (needed in both, though...) No, I intentionally changed both %standalone and %macosx because it is needed in both and I don't wanted that it is forgotten for %macosx.

Re: Embedding Augeas? (puppet)

2009-04-15 Thread Anders F Björklund
devzero2000 wrote: What approach to using Augeas with RPM should be pursued first @rpm5.org? I would be prefer the first. But as other puppist tell me in other occasion would are the advantage of integrating a configuration management library in a package manager versus using puppet or

Re: Embedding bash/rc in RPM-5.2

2009-04-15 Thread Anders F Björklund
Ralf S. Engelschall wrote: Remains the choice of shell. Dash or ash? I prefer the dash https://wiki.ubuntu.com/DashAsBinSh Well, for RPM itself I would vote for Dash, but in OpenPKG we use Bash everywhere. So, from my personal point of view, I would like to see support for both in RPM... ;-)

Re: [CVS] RPM: rpm/rpmio/ rpmtcl.c

2009-04-15 Thread Anders F Björklund
Jeff Johnson wrote: The random disablers that are being slammed into cvs within 24 hours of any added development are -- how shall I say it -- interesting ;-) I think those are mostly a side effect of the development breaking the HEAD build with a different ./configure set... Like a human

Re: [CVS] RPM: rpm/ CHANGES Makefile.am configure.ac rpm/js/ .cvsignore Ma...

2009-04-21 Thread Anders F Björklund
Server: rpm5.org Name: Jeff Johnson Root: /v/rpm/cvs Email: j...@rpm5.org Module: rpm Date: 20-Apr-2009 17:45:43 Branch: HEAD Handle: 2009042015454201 Added files:

Re: [CVS] RPM: rpm/rpmio/ rpmjsio.c

2009-04-21 Thread Anders F Björklund
Jeff Johnson wrote: Sorry for the b0rkage. rpmio/rpmjsio.c will be short lived, will end up in js/* when finished. No problem, just checking out the development (pun intended). --anders __ RPM Package Manager

Re: RPM 5.1.9 released

2009-04-22 Thread Anders F Björklund
Michael Jennings wrote: We now released RPM 5.1.9, a distribution tarball bugfix release from the stable RPM 5.1 branch. Find it under: http://rpm5.org/files/rpm/rpm-5.1/ Other than extraneous liblzma-type files (liblzma.pc, headers, binaries, and even man pages) being installed under

Re: [CVS] RPM: rpm/ configure.ac

2009-09-28 Thread Anders F Björklund
Pinto Elia wrote: Log: rework security CFLAGS without autofu. Add also some other -AC_ARG_ENABLE(build-optimization, -AS_HELP_STRING([--enable-build-optimization], [build RPM instrumented for extra optimization/security (GCC only)]), [dnl -if test .$enableval = .yes;

Re: [CVS] RPM: rpm/ configure.ac

2009-09-28 Thread Anders F Björklund
cc1: error: unrecognized command line option -fstack-protector No absolutely, sure. The best portable thing to do is to check the flags first. What gcc version are you using ? Apple GCC. They haven't switched entirely over to LLVM (just yet). --anders

Re: [CVS] RPM: rpm/scripts/ gendiff

2009-10-21 Thread Anders F Björklund
Pinto Elia wrote: Modified files: rpm/scripts gendiff Log: drop gendiff checkbashisms complaint; use unipolar branches for readability Nice, that'll also fix the FreeBSD problems better than current: @${REINPLACE_CMD} -e s:/bin/sh:/usr/bin/env bash: \

Re: Would patches for Windows be accepted? (No, please go away is OK)

2010-01-11 Thread Anders F Björklund
Tor Lillqvist wrote: Hello, I have been doing some initial small steps to make RPM work on Windows. (Well, a subset, just package management, definitely not the rpmbuild aspect for instance.) I have done this using the RPM 4.7 codebase. (Without bothering with any upstreaming attempts, as

Re: Altering autodeps when building rpms

2010-04-26 Thread Anders F Björklund
Todd Rinaldo wrote: Situation: I have an rpm that needs to depend on libjpeg version 8. The OS this will run on still comes with libjpeg 7. It would break too many other packages that depend on libjpeg 7 if I were to upgrade the libjpeg that comes with the OS in place. Normally some

Re: Metadata size constraints wrt. parentdir symlink deps, Was: [CVS] RPM: rpm/ CHANGES rpm/lib/ rpmts.c

2010-12-14 Thread Anders F Björklund
Jeff Johnson wrote: There are some very simple data reductions on hierarchical paths too. One of the best known is Run a dictionary: assign an integer weighted by # of occurences to favor small integers for frequently encountered tokens between /.../ (all of usr and bin

Re: Metadata size constraints wrt. parentdir symlink deps, Was: [CVS] RPM: rpm/ CHANGES rpm/lib/ rpmts.c

2010-12-15 Thread Anders F Björklund
Jeff Johnson wrote: I was recently looking at making a manifest for FreeBSD, which consists of a simple files listing for *each package*. ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.1-release/All/*.tbz I was looking at the Slackware MANIFEST as a reference, which is just a

Re: distepoch problem with latest snapshot of 5.2

2011-01-26 Thread Anders F Björklund
Matthew Dawkins wrote: I recently updated my snapshot of 5.2 to build around a perl upgrade to 5.12.2, but I didn't expect any problems really. Well pkgs that have requires like the following: Provides: libpq = %{version}-%{release} now also have this half distepoch after it :2011.1

  1   2   >