ufw packaging error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ufw |
Fix Released
|
Wishlist
|
Jamie Strandboge | ||
ufw (Arch Linux) |
Fix Released
|
Undecided
|
Unassigned | ||
ufw (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: ufw
Hi,
I was trying to port ufw to Arch Linux, so I first made a package for the needed init-scripts which worked fine, however when you make a package in ArchLinux you have to make all the steps for installing as if you were gonna install it into another directory instead of the default one, (in this case ./pkg from where you run the packaging script), in resume you MUST INSTALL ANY PACKAGE INTO A DIR, THEN WHEN YOU INSTALL WITH THE PACKAGE MANAGER IT GOES TO THE "DEFAULT" PATH.
i.e. You install python to /home/user/
Somehow, ufw just won't work because even it's copied to another folder, it keeps asking for itself in the pkg folder.
Here's more info on this bug:
http://
I don't know python, but I guess that the setup.py script makes some change to the ufw script so that it looks for itself where you chose the --root parameter. If that's right, then portability would be easy to be done simply by changing some of the code.
I'm using ufw 0.16.2 tarball.
Thanks in advance.
Related branches
Changed in ufw: | |
status: | New → Confirmed |
Changed in ufw: | |
status: | New → Invalid |
Changed in ufw: | |
status: | Fix Committed → Fix Released |
Changed in ufw: | |
status: | Confirmed → Fix Released |
Thank you for using ufw and taking the time to report a bug. The is actually fixed up in setup.py: /debian/ ufw -type f -exec sed "s#$(CURDIR) /debian/ ufw##g" -i {} \;
# strip out beginning of path since setup.py doens't support dest-dir
# yet
find $(CURDIR)
You may also note:
# make sure the version is in sync with our changelog
sed -i "s/^ufw_version = .*/ufw_version = '$(UBUVERS)'/" ./setup.py
Ideally, these should be fixed in setup.py, but it is rather low on my TODO list. I'll gladly accept patches though.