Ubuntu :: Alien Converting RPM With %defattr In Spec And Maintaining Permissions?
Nov 10, 2010
Just joined the group to post this question as I can't find a good answer for it.I have an RPM that has the following in the spec:
%defattr(-,someuser,someuser)
/opt/myapplication
When I go to install the RPM, the file permissions for everything in /opt/myapplication are set to root:root. This RPM installs properly in RPM based distros and maintains the correct permissions.
When I run alien -i --scripts --veryverbose myapplication.rpm as root, I can see it chmod'ing everything to 755. Has anyone else had this problem? I tried --fixperms as well and that did nothing.
I am using alien to convert an rpm package to a debian package. I need the deb package to check for installed package dependencies and notify the user if the dependent software is not found. In the rpm .spec file there is a section that you can use to specify dependencies such as:
%Requires: java
This dependency is flagged when I install with rpm, but my deb file created by alien doesn't indicate there is a failure.
I have converted a i336.rpm file into .deb file in ubuntu using alien successfully. but I am getting the following error while converting i586.rpm file of the same application into .deb file
Unpacking of 'app-1-1.i586.rpm' failed at /usr/share/perl5/Alien/Package/Rpm.pm line 155.
I have an Ubuntu machine running NFS4 server and a plugapps (arch linux) machine connecting as the client. The plugbox is running an rsync job to backup the home directory from Ubuntu to a local USB HDD.
All of the files in the destination have owner nobody and group nobody.
how I can mantain the file owners. I have the UID's and passwords sync'd between the two machines for both root and the user who's home dir is being backed up.
I am trying to use ffmpeg to split a number of videos of different types (WMV, MPG, AVI). I do not want to change anything else, just split them into smaller chunks. The video is split, but the quality of the output file is terrible. I would describe it as "blocky" (I think the correct term is "pixelated"). When I make the player (KMPlayer) much smaller the problem naturally goes away.
I've set up a ubuntu server at home with the intention of sharing files with windows clients, so I've installed samba. I have no security issues so I've allowed public access to the shares and I can access them fine from all windows machines. I also need to preserve the dos attributes for files and folders using 'map hidden', 'map system', 'map archive' which works great for files but not for folders. I've got a number of folders from my windows box which I would like to keep hidden (for tidiness more than anything) but when I transfer them to the samba share, they become visible again and I can seem to control their visibility at all from windows or from ubuntu. Do I take it from this that samba can only manage to maintain dos flags on files and not on directories?
This is the relevant part of the samba.conf file Code:
I have set up a home network using a modem/router, which my devices connect to via ethernet and wireless. I have got it working but i'm still not happy (stick with me...)!
I have settings configured so as to utilise DHCP, so IP addresses for the different machines are automatically assigned by the modem/router (as i understand it). I then obtained these auto-assigned IPs by running ifconfig on each device. I tested connections between the devices by pinging each other using these IPs (ie ping 192.168.2.2).
BUT I want to be able to use hostnames (ie ping dandelion) instead, and the only way I can make this work is to add hosts and corresponding IPs into the /etc/hosts file.
I have made it work in this way, but doesn't this method defeat the idea of DHCP, as I will now presumably have to manually maintain the /etc/hosts files on each device.
We (like many people) have a QA environment and a production environment consisting of several servers. We want to be able to make sure before we do any yum updates on the production machines that we've tested everything in QA. Unfortunately, yum gets the latest software when you run it, so you could run it two hours apart and up with different releases of some software. We need a solution.
I *think* what I have to do is create my own yum repository. There are a variety of articles on how to do that. But before I go through all that, I wanted to make sure I was on the right track. So the process would probably end up being:
1. Create a fresh repository 2. Upgrade QA from that repository, test, etc. 3. Upgrade production from that repository
Can someone verify this is the correct approach, or is there something easier? It also seems like step 1 is going to take a significant amount of time, plus it will continue to take a significant amount of time every cycle.
when i try to load ubunto after a few moments i get a message on the screen saying "sync out of spec". I have looked for a fix for this problem and it is suggested that i run a X86config file. Where do i get this file and how do i run it if i cant see anything on the screen.
I'm trying to install radare and under the binary section for fedora it has a .spec file. It this a sort of script for the rpm command? I found a lot of info on how to make spec files but nothing on what they are or how to use them. So I have a radare.spec file, how can I use it to install the program?
I got a new computer at work this week. I'm determined to get switched to 64 bit this time around, but what held me up last time was getting my email client to work.
We use Novell Groupwise 7, which is available as a 32bit rpm. alien installed it fine in 32 bit Ubuntu, but when I try the same in 64-bit I get this error:
Code: dpkg-gencontrol: error: current host architecture 'amd64' does not appear in package's architecture list (i386)
I want to change some thing inside the post install script of an existing rpm.there is any way to create a nearest spec file of this rpm, in order to change a bit the post install script inside this spec and then create again the rpm with the fixed spec file? no body wrote any program that can create spec file(99% identical from the orig spec file?)?
I have had for a test installed Feodora but was so silly checking the box for encryption the HD. Now I tested all for removing Feodora (no data anymore on the disc) but even the test unlocking this from my ubuntu system failed with the following error:Error unlocking device: cryptsetup exited with exit code 251: Command failed: Failed to setup dm-crypt key mapping.Check kernel for support for the aes-xts-plain64 cipher spec and verify that /dev/sdb2 contains at least 508 sectorsI installed some encryption packages in the meantime - but non was helpful.Would some kind person - who understands this better than I - please provide the detailed steps needed to mount and unlock the encrypted Feodora installed hard disc. Maybe one of you know which packege I have to install.
I found that "autospec" can construct a spec file. But autospec-0.8-1 is not compatible with python 2.7.1 Moreover autospec seems to be considered as deprecated. Is there a more recent version or some other equivalent utility?
I build simple spec file and build rpmI transfer the new rpm to other Linux machine in order to install the new rpmaccording to the spec file the new rpm -> test.sh-6.2-2.i386.rpm should create the /tmp/MY_RPM_TESTS directory , but this rpm not create the MY_RPM_TESTS and sub directoriesplease advice why , what I need to fix in the spec file? RPM installation:
[root@linux1 rpm -Uvh /root/rpmbuild/RPMS/i386/test.sh-6.2-2.i386.rpm Preparing... ########################################### [100%] This is preinstall script
I am interested in package building rpms, just stumped on how packagers such as remi and atomic rocket get their spec files. Are these written from other packagers or do you need to write each spec file yourself to be considered as a "packager".
is it possible to write ksh script in the spec file? the target is after I perform rpm -i my_rpm.rpm according to the spec file , ksh script will do some installation & configuration for example run other script and edit some files
What is the minimum computer spec for playing 1080p flash files via a web browser smoothly at least 25fps? We all know that flash is not very good on Linux. On my old computer, I can play 720p flash files in the browser at arount 25fps on Windows, but on Ubuntu on the same computer via dual OS installation, it struggles to play 420p flash files in the browser. So basically, I want to build a new computer and have Ubuntu as the only OS, but this computer needs to be able to play 1080p flash files via the browser (not by downloading and converting them), but straight from the browser smoothly. Is this possible and what would the minimum computer spec need to be to achieve this?
I have just been bothered by a fairly small issue for some time now. I am trying to search (using find -name) for some .jpg files recursively. This is a Redhat environment with bash.
I get this job done though I need to copy ALL of them and put them in a separate folder BUT I also need to keep the order intact after copying.
For e.g - If I get a JPG file under /home/usr/new/1/ then the destination also needs to be /test/old/new/1/.
At the moment, I am simply putting all files under /test/old/ and I can't somehow get the later /new/1/ folder path created under /test/old/
I understand this could well be done using while OR if else loop, though if someone can just guide me with a hint, I would be really grateful.
I will complete the rest of the steps and was asking here since I am still not comfortable with the shell/bash scripts yet and planning to be really good at it over the next couple of months.
I'm trying to create a set of rpm files to install the requirements for a program.I found a great utility named cpanspec that will create a spec file for perl modules and have started building rpm files. I was able to create an rpm file for Business::CreditCard as a regular user. Now I'm trying to build another module that requires B::CC, and rpmbuild -ba fails saying that I am missing B::CC. I don't want to install it just to create another rpm file.Is there a way to make rpmbuild "think" that B::CC is installed in the build environment without installing it on the system?
I have written a spec file for packaging my application in an rpm, but it reports a conflict when I am trying to update my service script in /etc/init.d/. This is a file that I do need to update/replace so how might I force the rpm to do that?
Code:
Summary: A program that increases WAN performance. Name: packetsqueezer Version: 0.3.05 Release: 1
This is from Centos 5.5 so I apologize to anyone who may be offended.I installed my system and it came with kernel 2.6.18-194.el5. I installed the src.rpm of this kernel with rpm, patched, and built it. Then I did a yum -y install kernel.i686 which installed kernel-2.6.18-194.32.1.el5.centos.plus.src.rpm. Since this was a yum install, why doesn't this new kernel version show in the BUILD and SPEC directory?
Having downloaded alien for the first time, and attempted to use it to convert an rpm file to a deb file (specifically asymptote located at [URL]), instead I found that it failed to do so. I've searched on google for a long while, and found that while this appears to be a problem encountered by multiple people, but there are no workarounds posted anywhere. Here is the error message that I am getting:
Unpacking of 'asymptote-1.92-1.fc12.i686.rpm' failed at /usr/share/perl5/Alien/Package/Rpm.pm line 153.
I've tried running the following variants of commands and all fail with the same error:
The errors reported by others are on a variety of packages, so it seems to me that it is an bug with alien itself and not with the package, but that is only a guess.
And related to this, Alien is version 8.69, perl 5.8.8 and ubuntu is 8.04.
I want to install Alien Arena in my ubuntu 10.10, when insert this into my terminal to install it. Code: sudo apt-get build-dep alien-arena this come out
Code: adib@maizuddin35:~$ sudo apt-get build-dep alien-arena Reading package lists... Done Building dependency tree Reading state information... Done E: Could not open file /var/lib/apt/lists/ppa.launchpad.net_meerkat_stable_ubuntu_dists_maverick_main_source_Sources - open (2: No such file or directory)
Alien Arena is seriously awesome in the latest incarnation. Unfortunately sound was disabled after the upgrade. Running from terminal provides the following information:
------- sound initialization ------- dlopen() on libopenal.so.1 failed Sound failed: Unable to start OpenAL. Game will continue without sound.
That error message is actually quite good - the first line is the technical problem, the second is what it means, and the last is the result of the problem. Errors involving a "lib" usually mean the lib is not installed (or broken). OpenAL is a sophisticated free software audio API. Using this system is A Good Thing. A quick check in synaptic shows that the libraries are not installed.
I wanted to convert some deb package to rpm for fedora 15 that I couldn't find an rpm for, I was using alien for that task on ubuntu but when moved to fedora I couldn't find it in the repositories or an easy installable package, I don't know anything about building from source as it's the only way in front of me how to install that program 'alien' on fedora