Commit Graph

75 Commits

Author SHA1 Message Date
Guillem Jover
93ad8ae367 Update deb support in fallback code
Add support for control.tar, control.tar.xz, data.tar, data.tar.xz,
data.tar.bz2 (deprecated) and data.tar.lzma (deprecated), so that the
fallback code is in line with current dpkg-deb.

The deprecated members are supported because there might be such binary
packages laying around.
2014-05-18 12:20:18 -04:00
Joey Hess
2fb28d27d2 Ensure that version numbers begin with well, a number, when building a deb, otherwise dpkg-deb will refuse to build it. 2012-08-09 14:14:59 -04:00
Joey Hess
b69f536367 Fix adding of postinst script to deb, containing rpm permissions fixups code. Closes: #667651 2012-04-05 13:51:24 -04:00
Joey Hess
5e4e122d58 Filter out illegal characters in version number when building a deb. Closes: #648531 2011-11-12 13:12:25 -04:00
Joey Hess
585fc93270 Avoid breaking on spaces in filenames. Closes: #618636
The runpipe interface is not a good one, it would be better to use
something that does not expose to the shell.

As a quick fix, quote filenames in runpipe calls. Too bad if you have a
quote character in a file though. Later need to find a better interface
or do full shell escaping.
2011-06-11 13:00:34 -04:00
Joey Hess
1ca19300b4 Squash an uninitialized value when creating a deb. 2011-01-06 13:49:40 -04:00
Joey Hess
0d765b965d Correct handling of arch all packages in deb arch check. Closes: #596209 2010-09-09 08:24:54 -04:00
Joey Hess
3a44b767ac Print a nice error message when attempting to build a deb from a package of an unsupported architecture. Closes: #592625 2010-08-30 17:02:26 -04:00
Joey Hess
66b2a2a226 debhelper updates
* Use debhelper compat level v7 when building packages. All changes
  since v4 seem safe for alien's generated rules files.
* Use dh_prep instead of deprecated dh_clean -k.
2010-05-23 18:56:57 -04:00
Joey Hess
b4bdd3818d Avoid uninitialized value warning when debian/rules fails to run due to alien being run in a noexec directory. Closes: #579216
* Avoid uninitialized value warning when debian/rules fails to run
  due to alien being run in a noexec directory. Closes: #579216
* Prevent DESTROY stomping on alien's exit code sometimes.
2010-04-28 11:30:44 -04:00
Joey Hess
78734c0523 Don't allow whitespace in package version when parsing debian/changelog. 2009-06-17 13:07:18 -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
cbf330f982 Avoid using hostname -f for portability to unix systems, such as Solaris, where any options _set_ the hostname. 2009-05-29 13:03:17 -04:00
Joey Hess
0f8fa0df54 pod fixes 2009-02-15 19:56:50 -05:00
Joey Hess
ecabe240bc When generating a debian changelog file, work around bug #478925 by including the alien changelog text inside the debian changelog entry. 2008-05-01 15:40:57 -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
a712ba401f releasing version 8.66 2007-03-22 21:46:04 +00:00
joey
7382aaf75f * Fix alien's own spec file, s/Copyright/License/. 2006-12-14 22:35:37 +00:00
joey
b12afcb1b7 releasing version 8.56 2005-07-20 00:57:38 +00:00
joey
1c337c3e20 releasing version 8.55 2005-07-19 20:17:34 +00:00
joey
c9a355e498 releasing version 8.53 2005-06-13 18:13:12 +00:00
joey
c667e71653 releasing version 8.52 2005-04-21 15:44:50 +00:00
joey
dd009e920a releasing version 8.50 2004-12-08 21:20:13 +00:00
joey
d774821a56 releasing version 8.45 2004-07-29 17:17:18 +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
2c1589bd7e * Do not register conffiles in /etc when generating a deb; debhelper v3
takes care of that.
2004-01-16 03:21:43 +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
5a3b423267 sheesh 2003-11-03 21:16:22 +00:00
joey
531201ff80 fix perms I hope 2003-11-03 21:13:24 +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
f43eea0d89 updates & sync 2003-07-11 19:24:18 +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
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
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
48400e6418 * Added upsated jdk patches from Gerald Turner.
* Allow fallback to different debian revisions w/o --anypatch.
   * Add a changelog parser so I can work out the built version of a package.
     Ugh. Closes: #157971
2002-08-23 23:58:36 +00:00
joey
a295c7ad14 * Be stricter about which patch files to apply by default. For old behavior
use --anypatch.
   * Minor perl 5.8 fix.
2002-08-22 16:04:41 +00:00
joey
b56e80e565 updates... 2002-06-14 03:26:52 +00:00
joey
15b992c58f * Fix for extracting control files from debs on systems w/o dpkg-deb.
Don't try to extract "file", just "./file".
2002-06-12 17:37:36 +00:00
joey
7c4159cba2 * Deal with packages with strange characters in their filenames.
Closes: #146017
2002-05-24 02:41:24 +00:00
joey
451483bc02 * Added --test parameter, Closes: #145520 2002-05-03 00:12:13 +00:00
joey
ddc50f48fb * Added --fixperms option. Closes: #142850 2002-04-22 02:24:42 +00:00
joey
53652741bc * Support rpms with a description consisting of just blank lines. 2002-04-01 18:35:19 +00:00
joey
da98291614 * Made more robust in the face of empty rpms. Closes: #138969 2002-03-24 02:35:58 +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
cf29615520 * Support ancient (bo-era) debs with upper-case field names. Closes: #130736 2002-01-25 04:42:41 +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
0aa7015f37 * Thanks to the excellent work of Mark A. Hershberger <mah@everybody.org>,
alien now supports converting to and from Solaris "pkg" packages (which
     are really SysV packages). You probably need to run it on Solaris for this
     to work, though. This brings the number of possible conversions alien can
     do up from 12 to a monstrous 20!
   * Mark also had to patch Deb.pm a bit so the by-hand deb extraction could
     work with solaris's ar and tar.
   * Documented the EMAIL environment variable. Closes: #116754
   * Threw out a lot of old patches, circa 1999. Probably useless today.
   * When converting to debs, move files as follows, if possible, for better
     FHS compliance:
   	/usr/man	=> /usr/share/man
         /usr/info	=> /usr/share/info
         /usr/doc'	=> /usr/share/doc
   * Also moves files as follows, to avoid possibly confusing dpkg with
     installing over symlinks (?). Closes: #40012
         /usr/bin/X11 should be /usr/X11R6/bin
         /usr/lib/X11 should be /usr/X11R6/lib/X11
         /usr/include/X11 should be /usr/X11R6/include/X11
   * Reverse these moves in the cleantree stage.
   * Debian users who have installed alien packages in the past may want to
     re-convert and reinstall them, to take advantage of the new FHS
     conversions.
2001-11-07 17:14:27 +00:00
joey
e106d96664 prerelease 2001-10-26 18:28:28 +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