[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: help using apt-build



Hello,

El 6 de marzo de 2016 15:14:12 CET, Michael Fothergill <michael.fothergill@googlemail.com> escribió:
>On 6 March 2016 at 11:06, Javier Barroso <javibarroso@gmail.com> wrote:
>
>> Hello  Michael,
>>
>> On Sun, Mar 6, 2016 at 11:42 AM, Michael Fothergill
>> <michael.fothergill@googlemail.com> wrote:
>> >
>> >
>> > On 5 March 2016 at 20:00, Javier Barroso <javibarroso@gmail.com>
>wrote:
>> >>
>> >> Hello,
>> >>
>> >> On Sat, Mar 5, 2016 at 3:48 PM, Michael Fothergill
>> >> <michael.fothergill@googlemail.com> wrote:
>> >> >
>> >> >
>> >> > On 23 February 2016 at 18:46, Javi Barroso
><javibarroso@gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> Hello,
>> >> >>
>> >> >> El 23 de febrero de 2016 18:08:32 CET, Michael Fothergill
>> >> >> <michael.fothergill@googlemail.com> escribió:
>> >> >> >Dear Folks,
>> >> >> >
>> >> >> >I tried using apt-build to install a source file:
>> >> >> >
>> >> >> >root@rhubarb:/home/michaelmikef/Downloads# ls -l adun*
>> >> >> >
>> >> >> >-rw-r--r-- 1 michaelmikef michaelmikef 1395 Feb 23 16:36
>> >> >> >adun.app_0.81-6.dsc
>> >> >> >
>> >> >> >root@rhubarb:/home/michaelmikef/Downloads# apt-build install
>> >> >> >adun.app_0.81-6.dsc
>> >> >> >
>> >> >> >W: Unable to locate package adun.app_0.81-6.dsc
>> >> >> >Unable to find source candidate for adun.app_0.81-6.dsc
>> >> >> >
>> >> >> >What am I doing wrong here?
>> >> >>
>> >> >> I think you need add deb-src line to your apt source list, so
>it can
>> >> >> download from internet (I think you need the name of the
>package and
>> >> >> not the
>> >> >> name of the file) and then build the package
>> >> >>
>> >> >> Maybe you can use --source to tell apt-build to not download
>the
>> >> >> source.
>> >> >> See the man page and its sinopsis
>> >> >
>> >> >
>> >> > I couldn't make apt-build work but the apt build dep command did
>work
>> >> > -however I think that some dependencies are missing in stretch
>that
>> >> > would be
>> >> > there in jessie....
>> >> >
>> >> > I have a jessie install and I will use that instead for this.
>> >>
>> >> Hello,
>> >>
>> >> At debian sid apt-build is working:
>> >>
>> >> # apt update
>> >> # apt-build source-build adun.app
>> >> # ls /var/cache/apt-build/repository/
>> >> adun.app_0.81-7+aptbuild1_amd64.deb
>> >> adun-core_0.81-7+aptbuild1_amd64.deb     Packages.gz
>> >> adun.app-dbg_0.81-7+aptbuild1_amd64.deb  dists/
>> >>            Release
>> >>
>> >> Build directory on /var/cache/apt-build/build
>> >
>> >
>> > I did apt update:
>> >
>> > It worked OK except for a gripe about some i386 packages -
>> >
>> > Reading package lists... Done
>> > N: Skipping acquire of configured file 'main/binary-i386/Packages'
>as
>> > repository 'http://dl.google.com/linux/chrome/deb stable InRelease'
>> doesn't
>> > support architecture 'i386'
>>
>> To fix it, you need to change
>> /etc/apt/sources.list.d/google-chrome.list to read:
>>
>> deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
>>
>>
>> > W: Failed to fetch
>> >
>>
>file:/var/cache/apt-build/repository/dists/apt-build/main/binary-i386/Packages
>> > File not found -
>> >
>/var/cache/apt-build/repository/dists/apt-build/main/binary-i386/Packages
>> > (2: No such file or directory)
>> > E: Some index files failed to download. They have been ignored, or
>old
>> ones
>> > used instead.
>> >
>> > I then checked the repository directory:
>> >
>> > root@rhubarb:/var/cache/apt-build/build# ls
>> /var/cache/apt-build/repository
>> >
>> > dists  Packages.gz  Release
>> >
>> > I then tried the command
>> >
>> > root@rhubarb:/var/cache/apt-build/build# apt-build build-source
>adun.app
>> > E: Unable to find a source package for adun.app
>> > Some error occured building package
>> >
>> > What I am doing wrong here?
>>
>> Seems like adun.app was removed from stretch [1], but that it is on
>> sid [2] but cannot be installed/migrated on/to stretch [3]
>>
>> Maybe you can try to add deb-src unstable (sid) line to sources.list
>> and try again (not sure if all build depends will be on stretch).
>>
>
>​I changed the deb-src entry to unstable from stretch........​
>
>​Then I tried the apt-build command:​
>
>root@rhubarb:/var/cache/apt-build/build# apt-build build-source
>adun.app
>Building the following packages from source:
>-----> Installing build dependencies (for adun.app=(none)) <-----
>sh: 1: Syntax error: "(" unexpected
>-----> Updating package lists <-----
>Get:1 file:/var/cache/apt-build/repository apt-build InRelease
>Ign:1 file:/var/cache/apt-build/repository apt-build InRelease
>Get:2 file:/var/cache/apt-build/repository apt-build Release [107 B]
>Get:2 file:/var/cache/apt-build/repository apt-build Release [107 B]
>Get:3 file:/var/cache/apt-build/repository apt-build Release.gpg
>Ign:3 file:/var/cache/apt-build/repository apt-build Release.gpg
>Get:4 file:/var/cache/apt-build/repository apt-build/main amd64
>Packages
>Ign:4 file:/var/cache/apt-build/repository apt-build/main amd64
>Packages
>Get:5 file:/var/cache/apt-build/repository apt-build/main i386 Packages
>Ign:5 file:/var/cache/apt-build/repository apt-build/main i386 Packages
>Get:6 file:/var/cache/apt-build/repository apt-build/main all Packages
>Ign:6 file:/var/cache/apt-build/repository apt-build/main all Packages
>Get:7 file:/var/cache/apt-build/repository apt-build/main
>Translation-en_GB
>Ign:7 file:/var/cache/apt-build/repository apt-build/main
>Translation-en_GB
>Get:8 file:/var/cache/apt-build/repository apt-build/main
>Translation-en
>Ign:8 file:/var/cache/apt-build/repository apt-build/main
>Translation-en
>Get:4 file:/var/cache/apt-build/repository apt-build/main amd64
>Packages
>Ign:4 file:/var/cache/apt-build/repository apt-build/main amd64
>Packages
>Get:5 file:/var/cache/apt-build/repository apt-build/main i386 Packages
>Ign:5 file:/var/cache/apt-build/repository apt-build/main i386 Packages
>Get:6 file:/var/cache/apt-build/repository apt-build/main all Packages
>Ign:6 file:/var/cache/apt-build/repository apt-build/main all Packages
>Get:7 file:/var/cache/apt-build/repository apt-build/main
>Translation-en_GB
>Ign:7 file:/var/cache/apt-build/repository apt-build/main
>Translation-en_GB
>Get:8 file:/var/cache/apt-build/repository apt-build/main
>Translation-en
>Ign:8 file:/var/cache/apt-build/repository apt-build/main
>Translation-en
>Get:4 file:/var/cache/apt-build/repository apt-build/main amd64
>Packages
>Ign:4 file:/var/cache/apt-build/repository apt-build/main amd64
>Packages
>Get:5 file:/var/cache/apt-build/repository apt-build/main i386 Packages
>Ign:5 file:/var/cache/apt-build/repository apt-build/main i386 Packages
>Get:6 file:/var/cache/apt-build/repository apt-build/main all Packages
>Ign:6 file:/var/cache/apt-build/repository apt-build/main all Packages
>Get:7 file:/var/cache/apt-build/repository apt-build/main
>Translation-en_GB
>Ign:7 file:/var/cache/apt-build/repository apt-build/main
>Translation-en_GB
>Get:8 file:/var/cache/apt-build/repository apt-build/main
>Translation-en
>Ign:8 file:/var/cache/apt-build/repository apt-build/main
>Translation-en
>Get:4 file:/var/cache/apt-build/repository apt-build/main amd64
>Packages
>[20 B]
>Get:5 file:/var/cache/apt-build/repository apt-build/main i386 Packages
>Ign:5 file:/var/cache/apt-build/repository apt-build/main i386 Packages
>Get:6 file:/var/cache/apt-build/repository apt-build/main all Packages
>Ign:6 file:/var/cache/apt-build/repository apt-build/main all Packages
>Get:7 file:/var/cache/apt-build/repository apt-build/main
>Translation-en_GB
>Ign:7 file:/var/cache/apt-build/repository apt-build/main
>Translation-en_GB
>Get:8 file:/var/cache/apt-build/repository apt-build/main
>Translation-en
>Ign:8 file:/var/cache/apt-build/repository apt-build/main
>Translation-en
>Get:5 file:/var/cache/apt-build/repository apt-build/main i386 Packages
>Ign:5 file:/var/cache/apt-build/repository apt-build/main i386 Packages
>Get:6 file:/var/cache/apt-build/repository apt-build/main all Packages
>Ign:6 file:/var/cache/apt-build/repository apt-build/main all Packages
>Get:7 file:/var/cache/apt-build/repository apt-build/main
>Translation-en_GB
>Ign:7 file:/var/cache/apt-build/repository apt-build/main
>Translation-en_GB
>Get:8 file:/var/cache/apt-build/repository apt-build/main
>Translation-en
>Ign:8 file:/var/cache/apt-build/repository apt-build/main
>Translation-en
>Get:5 file:/var/cache/apt-build/repository apt-build/main i386 Packages
>Err:5 file:/var/cache/apt-build/repository apt-build/main i386 Packages
>  File not found -
>/var/cache/apt-build/repository/dists/apt-build/main/binary-i386/Packages
>(2: No such file or directory)
>Get:6 file:/var/cache/apt-build/repository apt-build/main all Packages
>Ign:6 file:/var/cache/apt-build/repository apt-build/main all Packages
>Hit:9 http://mirror.lchost.net/debian stretch InRelease
>Ign:10 http://dl.google.com/linux/chrome/deb stable InRelease
>
>Hit:11 http://security.debian.org stretch/updates InRelease
>
>Hit:12 http://mirror.lchost.net/debian unstable InRelease
>
>Hit:13 http://dl.google.com/linux/chrome/deb stable Release
>Reading package lists... Done
>N: Skipping acquire of configured file 'main/binary-i386/Packages' as
>repository 'http://dl.google.com/linux/chrome/deb stable InRelease'
>doesn't
>support architecture 'i386'
>W: Failed to fetch
>file:/var/cache/apt-build/repository/dists/apt-build/main/binary-i386/Packages
> File not found -
>/var/cache/apt-build/repository/dists/apt-build/main/binary-i386/Packages
>(2: No such file or directory)
>E: Some index files failed to download. They have been ignored, or old
>ones
>used instead.
>-----> Downloading source adun.app (0.81-7) <-----
>Reading package lists... Done
>NOTICE: 'adun.app' packaging is maintained in the 'Svn' version control
>system at:
>svn://anonscm.debian.org/debian-med/trunk/packages/adun.app/trunk/
>Need to get 4,574 kB of source archives.
>Get:1 http://mirror.lchost.net/debian unstable/main adun.app 0.81-7
>(dsc)
>[2,176 B]
>Get:2 http://mirror.lchost.net/debian unstable/main adun.app 0.81-7
>(tar)
>[4,554 kB]
>Get:3 http://mirror.lchost.net/debian unstable/main adun.app 0.81-7
>(diff)
>[17.7 kB]
>Fetched 4,574 kB in 5s (870 kB/s)
>dpkg-source: info: extracting adun.app in adun.app-0.81
>dpkg-source: info: unpacking adun.app_0.81.orig.tar.gz
>dpkg-source: info: unpacking adun.app_0.81-7.debian.tar.xz
>dpkg-source: info: applying 05_no-plugin-script.patch
>dpkg-source: info: applying 15_link-properly.patch
>dpkg-source: info: applying 20_paths.patch
>dpkg-source: info: applying fix-implicit-pointer.patch
>dpkg-source: info: applying gcc-warnings.patch
>dpkg-source: info: applying enable-scripting-extension.patch
>dpkg-source: info: applying enable-sql-extension.patch
>W: Can't drop privileges for downloading as file 'adun.app_0.81-7.dsc'
>couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission
>denied)
>-----> Building adun.app <-----
>dpkg-buildpackage: source package adun.app
>dpkg-buildpackage: source version 0.81-7+aptbuild1
>dpkg-buildpackage: source distribution UNRELEASED
>dpkg-buildpackage: source changed by root <root@rhubarb.frog>
>dpkg-buildpackage: host architecture amd64
> dpkg-source --before-build adun.app-0.81
>dpkg-checkbuilddeps: error: Unmet build dependencies: gnustep-make (>=
>2.6.6-2) libgnustep-gui-dev libsteptalk-dev libsqlclient-dev
>libgsl0-dev
>dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied;
>aborting
>dpkg-buildpackage: warning: (Use -d flag to override.)
libsteptalk-dev is not on stretch, you would need to add (not replace) unstable repo tó your sources.list. But only do if you know what are you doing

See information about pinning and about mixing repositories before make such change

Regards,



Reply to: