dzz007 / photivo

Automatically exported from code.google.com/p/photivo
GNU General Public License v3.0
3 stars 0 forks source link

Creating DEB for Photivo #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I decide to make DEB package for Photivo - Ubuntu 10.10, Gnome 2.32
I compile Photivo - http://photivo.org/photivo/download_and_setup/linux and 
test software... all is OK... works fine...

With the help of Synaptic I download pbuilder and install it... then open in 
gedit the file ~/.pbuilderrc and add the following:

------------------

# Distro names - Debian
UNSTABLE_CODENAME="unstable"
TESTING_CODENAME="testing"
STABLE_CODENAME="stable"
DEBIAN_SUITES=($UNSTABLE_CODENAME $TESTING_CODENAME $STABLE_CODENAME
     "sid" "squeeze" "lenny")

# Distro names - Ubuntu
UBUNTU_SUITES=("jaunty" "intrepid" "hardy" "gutsy")

DEBIAN_MIRROR="ftp.us.debian.org"
UBUNTU_MIRROR="mirrors.kernel.org"

# selecting distro
: ${DIST:="$(lsb_release --short --codename)"}
# and architecture
: ${ARCH:="$(dpkg --print-architecture)"}
# distro components
COMPONENTS="main contrib non-free"

# give the "image" name
NAME="$DIST"
  if [ -n "${ARCH}" ]; then
  NAME="$NAME-$ARCH"
# for different architecrures
  DEBOOTSTRAPOPTS=("--arch" "$ARCH" "${DEBOOTSTRAPOPTS[@]}")
fi

# where we will compile and find this image 
BASETGZ="/home/torkvemada/pbuilder/$NAME-base.tgz"
DISTRIBUTION="$DIST"
# location of the compiled packages 
BUILDRESULT="/home/srg/pbuilder/$DIST/result/"
# location of the downloaded packages
APTCACHE="/home/srg/pbuilder/$NAME/aptcache/"
# loacation for unpacked images
BUILDPLACE="/home/srg/pbuilder/build/"

# for Debian, download here...
if $(echo ${DEBIAN_SUITES[@]} | grep -q $DIST); then
  MIRRORSITE="http://$DEBIAN_MIRROR/debian/"
  COMPONENTS="main contrib non-free"
  # for Ubuntu, download here...
elif $(echo ${UBUNTU_SUITES[@]} | grep -q $DIST); then
  MIRRORSITE="http://$UBUNTU_MIRROR/ubuntu/"
  COMPONENTS="main restricted universe multiverse"

else
  echo "unknown Distro: $DIST"
  exit 1
fi
.  
------------------

then create the image:
$ sudo ARCH=i386 DIST=hardy pbuilder --create

so, image was successfully created - > hardy-i386-base.tdz

then...
$ cd /home/srg/photivo
$ sudo DIST=hardy ARCH=i386 pdebuild

in case of success... the compiled DEB package must be in:   
$ ls ~/pbuilder/hardy/result/*.deb
/home/torkvemada/pbuilder/hardy/result/photivo-1_i386.deb

but I have a mistake....
E. Cannot find ./debian dir

any ideas?

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by serge.on...@gmail.com on 16 Jan 2011 at 7:16

GoogleCodeExporter commented 9 years ago
sorry for my English :) and I d't know how to edit my message/issue (Photino to 
Photivo and etc...)

Original comment by serge.on...@gmail.com on 16 Jan 2011 at 7:30

GoogleCodeExporter commented 9 years ago
Hi, 
sorry I have never used pbuilder. It seems to me your problem is related to it 
and not to Photivo.

But Photivo works well with checkinstall. For testing I uploaded one for 64bit 
here: 
http://code.google.com/p/photivo/downloads/detail?name=photivo_20110116-1_amd64.
deb

greets mike

Original comment by m...@mm-log.com on 16 Jan 2011 at 9:35

GoogleCodeExporter commented 9 years ago
Thanks for the reply Mike, 

I'll try the checkinstall... 32bit DEB... we compile now only the 32bit Ubuntu 
distro (with PAE)...

Original comment by serge.on...@gmail.com on 16 Jan 2011 at 9:44

GoogleCodeExporter commented 9 years ago
ha.... checkinstall, 3 min and I create DEB :))) test it - uninstalling Photivo 
and install it again via new DEB.... all is OK :)) 

Thanks again...

btw... do U need the help in localization to Russian language the Photivo?  

Original comment by serge.on...@gmail.com on 16 Jan 2011 at 10:00

GoogleCodeExporter commented 9 years ago
Very good. Will you packages be compatible with regular Ubuntu. Will you also 
provide lcms2 and graphicsmagick 16bit?

Any help on localization would be very welcome. Please contact Brother John for 
further help about this.

greets mike

Original comment by m...@mm-log.com on 16 Jan 2011 at 10:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
It appears the latest update to graphicsmagick in the Ubuntu 10.10 repos 
(1.3.12-1) works just fine with Photivo. I had originally installed 16bit 
graphicsmagick manually to work with Photivo, but subsequently removed it and 
installed graphicsmagick from the Maverick repos after I saw that there was an 
update. That update seems to work fine with Photivo. Maybe this will make it 
easier to package Photivo for Ubuntu?

Original comment by jimbus...@gmail.com on 9 Feb 2011 at 4:02

GoogleCodeExporter commented 9 years ago
Well, I'm not sure if the version in the repos is the 16 bit version. You could 
test it by rescaling an image in Photivo, since this uses GraphicsMagick. If 
the histogram gets a comb like structure afterwards it is the 8 bit version. No 
other filters should be active for this test, and you should make sure, that 
Photivo is linked against the lib provided in the package.

greets mike

Original comment by m...@mm-log.com on 9 Feb 2011 at 8:46

GoogleCodeExporter commented 9 years ago
I could help with Ubuntu 10.10 32 bit binaries as well, although I have no 
experience in making .deb files.

Original comment by giannisl...@yahoo.com on 13 Feb 2011 at 12:27

GoogleCodeExporter commented 9 years ago
IMO - the main problem - is not to make the final 32/64 DEB-package, but to 
"include" in this package "separate" 16bit GraphicsMagick and Lcms2... without 
"normal" PPA this amazing software will be only available for advanced Ubuntu 
users... no installations via Synaptic Package Manager, automatic updates and 
etc.

Original comment by serge.on...@gmail.com on 13 Feb 2011 at 1:40

GoogleCodeExporter commented 9 years ago
Ok, I see, PPA is the best approach. But is there any technical problem in 
including the compiled GraphicsMagick and Lcms2 into a deb file along with 
Photivo binary?

Original comment by giannisl...@yahoo.com on 13 Feb 2011 at 4:50

GoogleCodeExporter commented 9 years ago
I tried to compile 3 separate DEB packages - one for Lcms2, 2nd for GM16 and 
for Photivo after the overall installation... :) I compile DEB without any 
problem only for Photivo and for other two components the result was 
unsuccessful... This stand-alone deb was installed on clear Ubuntu 10.10 but 
Photivo d't started... Also I tried to  collect dependencies and compile 
"summary" Photivo's DEB via pbuilder, but the result was negative - a lot of 
mistakes... 

Original comment by serge.on...@gmail.com on 13 Feb 2011 at 5:09

GoogleCodeExporter commented 9 years ago
Hi Serge, 

could you elaborate a bit more? Where were the problems, which were the 
mistakes, which packages were installed during compilation and on the new 
system?

greets mike

Original comment by m...@mm-log.com on 13 Feb 2011 at 7:38

GoogleCodeExporter commented 9 years ago
Where can i find .deb for x86 ?

because i try this way 
http://www.flickr.com/groups/photivo/discuss/72157626170578959/

but i didn't work with debian 6 x86 : "Fatal error: Wrong GraphicsMagick 
quantum depth! Found quantum depth 8. Photivo needs at least 16."

I have added graphicsmagick, but it doesn't works too.

Original comment by lc.barri...@gmail.com on 4 Feb 2012 at 9:10

GoogleCodeExporter commented 9 years ago
Well, I don't know of official Debian packages and I don't know if the Ubuntu 
packages by Dariusz https://launchpad.net/~dhor are compatible with Debian. If 
not I would recommend following the compile instructions 
(http://photivo.org/photivo/download_and_setup/linux) which shouldn't be too 
hard on any linux system. 

greets mike

Original comment by m...@mm-log.com on 4 Feb 2012 at 5:13