Commit Graph

70 Commits

Author SHA1 Message Date
Joey Hess
38bf42863d Support extracting lzma compressed RPMs. (Patch by unnamed person on some bug tracking system I don't frequent.) 2010-05-17 20:24:19 -04:00
Joey Hess
55edc3f59a typo 2010-04-18 15:44:14 -04:00
Joey Hess
e75140dc5f Fix empty field fix, to take into account that "0" is a false value
Instead, avoid populating fields with empty strings if rpm fails to
get a field value, either due to not knowing the field, or due to the
field not being set.
2010-04-18 15:27:03 -04:00
Alexey Khoroshilov
2f50988983 RPM Copyright tag has been deprecated in favour of License tag since rpm 4.0 2010-04-18 15:17:25 -04:00
Alexey Khoroshilov
6049930109 Fix if conditions in sanity checks: if a field was not found it is defined, but it is empty 2010-04-18 15:17:12 -04:00
Pavel Roskin
9c28b11e6c Fix support for recent versions of rpm
Recent versions of rpm (such as 4.7.0) ignore the buildroot setting in
the spec file.  Use the --buildroot option to ensure the correct
buildroot is used.
2009-07-08 13:52:49 -04:00
Joey Hess
f456bbf8b6 In rpm permission fixup code, avoid processing symlinks since that would result in the file the link points to being "fixed". Closes: #535586 2009-07-06 13:35:03 -04:00
Joey Hess
5b605e1960 Fix bash shebang and recognise bash scripts as editable shell scripts when converting to deb. Closes: #532330 (Thanks, Bruce Stephens) 2009-06-08 13:22:30 -04:00
Joey Hess
edcd96f80f Modify maintainer scripts from rpm files to use /bin/bash rather than /bin/sh. Many such scripts are only tested on systems where /bin/sh is bash, and contain bashisms, which can cause trouble when converting the rpm to be used on eg, the Debian family of distributions, where /bin/sh can legitimatly be dash. Closes: #495971 2009-05-06 17:20:44 -04:00
Joey Hess
5e1d2c9fa4 * Deal with rpms that relocate ie, /usr into /usr/local, and don't
try to move /usr into /usr/local in this case. Closes: #470905
2008-03-14 13:35:41 -04:00
Joey Hess
3c8631f8fd don't try to modify a constant value 2008-03-12 11:10:09 -04:00
Joey Hess
17bcd710f7 * Extract prefixes field before extracting scripts so that
RPM_INSTALL_PREFIX gets set.
2008-03-12 11:05:39 -04:00
joey
ffcb91fa04 * Show output of installation of package with -i, since some packages
install scripts may have important output or even be interactive.
  Closes; #425732
2007-05-23 18:03:47 +00:00
joey
c1a3316e71 * Add support for rpm scripts that use RPM_INSTALL_PREFIX, by setting
RPM_INSTALL_PREFIX as part of the converted script. Closes: #400863
2006-12-15 18:34:39 +00:00
joey
33a60c1974 releasing version 8.63 2006-02-14 18:36:15 +00:00
joey
fa41ec6234 releasing version 8.61 2006-01-07 18:44:04 +00:00
joey
4572a96112 releasing version 8.60 2005-11-27 22:41:08 +00:00
joey
1a3ed01c30 releasing version 8.59 2005-11-15 18:14:37 +00:00
joey
da40f906b0 releasing version 8.58 2005-11-08 21:11:32 +00:00
joey
da55970dc2 releasing version 8.57 2005-11-08 18:40:30 +00:00
joey
1c337c3e20 releasing version 8.55 2005-07-19 20:17:34 +00:00
joey
c667e71653 releasing version 8.52 2005-04-21 15:44:50 +00:00
joey
86cdea2939 releasing version 8.51 2005-03-09 21:19:55 +00:00
joey
d3a6c37a03 releasing version 8.49 2004-12-06 21:41:44 +00:00
joey
f4e9d3eb50 releasing version 8.48 2004-11-25 02:15:15 +00:00
joey
8e3d7b6a91 * x86_64 rpms become amd64 debs 2004-08-04 00:59:28 +00:00
joey
1d5b6b9a90 releasing version 8.46 2004-08-02 00:53:46 +00:00
joey
85b9e8b042 * Don't add line about permissions fixup code to postinst if there is not
code to add.
   * Don't assume that just because we know of a user or are root, that files
     can go into the deb owned by that user, and come out right on install.
     Instead, assume that any non-root user will not be on the target system
     the rpm is installed on, and that it might be created in the preinst or
     something, so add permissions fixup code for all such users.
2004-03-25 04:01:40 +00:00
joey
3ad7dafcde minor 2004-02-27 03:04:40 +00:00
joey
d9b05102c4 * Include the version of alien that generated a deb or rpm in the
description. Closes: #220763
   * Also put it in the changelog of debian packages.
2003-11-18 04:21:20 +00:00
joey
09057d6d33 * Fix a couple more mistakes in the code added in 8.36. 2003-11-12 02:57:17 +00:00
joey
ec560cf2a2 * Patch from aj to fix permissions of setuid files that have their owners
created in the preinst.
   * Alien's repository has moved from CVS to subversion.
2003-10-15 20:02:38 +00:00
joey
7e6421c8e4 * Added -v to enable verbose mode, which lists each shell command
as it is run. Also added --veryverbose for verbose with command
     output too.
   * Use -V for version. (-v used to be documented, but never worked)
2003-05-14 22:14:29 +00:00
joey
06371a53ca * Support rpms that contain no files. Closes: #184714 2003-03-16 05:35:36 +00:00
joey
40e12efe45 * Corrected precidence problem that made alien not catch mkdir of the work
directory failing if the directory already existed (and let it delete the
     existing directory). Closes: #181061
   * Fixed several other instances of the same precidence problem in the code.
2003-02-15 20:46:09 +00:00
joey
8b6a5ed7f8 * Use rpmbuild -bb instead of rpm -bb, as it seems that rpm -bb has stopped
working in recent versions of rpm, as shipped by red hat (Debian's rpm,
     confusingly, continues to support rpm -bb, possibly because of how I hack
     its popt stuff up for debian.) This may fail with older, pre-rpmbuild
     rpm's; if so you should upgrade to a more current version I guess.
   * Updated js2k patch from Gerald Turner.
2003-02-03 19:40:25 +00:00
joey
ed7a39e3d1 * Added support inspired by aj for converted rpm packages that create
users/groups in their preinst, and which alien therefore cannot ship the
     files with proper ownerships in the .deb. In this case alien will now
     insert appropriate chown commands into the postinst script of the
     converted package.
   * That only works when converting rpm to deb, not the other way around,
     for now.
   * Removed the cpio directory permissions fixup code, which was probably
     broken, and is obsolete since I get directory perms from the rpm now.
2002-08-25 19:10:56 +00:00
joey
21393f2767 * When converting from rpm, do parent directory 755 chmods first, then
known permissions setting from rpm --queryformat, so that it can override
     any directories that do indeed have a permission set.
   * Fixed MakeFile.PL to work with perl 5.8.
2002-08-19 16:53:30 +00:00
joey
c6b855ed5c * Fixed rpm unpacking. 2002-07-12 23:29:49 +00:00
joey
eb41790008 * Fix a longstanding bug I was only recently told about: When converting
from rpm, ignore the icky file owners and perms from the cpio archive,
     and query rpm for the real set that it overrides in the control data
     structure. Closes: #151546
2002-07-09 00:54:38 +00:00
joey
8f2fe8eb22 * Fixed an unfortunate typo in Rpm.pm, Closes: #140742 2002-04-01 04:06:14 +00:00
joey
8a569fb405 * Should avoid warning message, Closes: #140286
* README and description updates.
2002-03-28 19:37:18 +00:00
joey
da98291614 * Made more robust in the face of empty rpms. Closes: #138969 2002-03-24 02:35:58 +00:00
joey
a38606b975 * The "vmware and dpkg on drugs" release.
* If a preinstall script in a rpm starts like this:
     # BEGINNING_OF_POST_DOT_SH
     #!/bin/sh
     Add anther hashbang at the top, so dpkg doesn't croak on it.
     Closes: #137032
2002-03-06 17:59:15 +00:00
joey
ea30cb70c6 * LSB package support. It can generate LSB packages (not guarenteed
fully conformant with the LSB), and it can take LSB packages and convert
     them into other formats. Unlike all the other conversions, lsb packages's
     dependancy (on lsb) and their package scripts are preserved in the
     generated packages (when allowed by the target package format). This means
     your distribution will need to have a package named 'lsb' for the result
     to be installable. (Debian will have one soon..)
   * Suggest rpm-lsb, which is the preferred rpm to build lsb packages with.
     Use it if it's present, plain old rpm otherwise.
2002-02-11 19:19:44 +00:00
joey
ea55014024 * Use --target noarch instead of --target=noarch when building rpms.
The latter used to work, but no longer does, due to some change in rpm or
     popt. It also has to come after the -bb.
   * Trap stderr of rpm and debian/rules building packages, and only display if
     the build fails.
2002-01-04 21:12:41 +00:00
joey
97355db858 * Moved as many system calls as I can over to shellless execution.
There are still a lot that use shell tricks. Should deal with screwey
     rpms and file names better though. Closes: #105283
   * Display build logs after build failures.
2001-07-15 14:23:13 +00:00
joey
208a920b24 * Treat 'armv4l' arch rpm's as arm architecture. 2001-06-18 17:42:39 +00:00
joey
ce19a0f864 remove perlbug workarounds 2001-06-15 03:10:13 +00:00
joey
caf849173f * Modification to match changes in rpm 4's parser; need to use
--target=noarch, rather than --target noarch.
2001-04-10 20:46:29 +00:00